Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf - uintXX packed array can't be serialized / deserialized #2418

Open
Dogacel opened this issue Aug 23, 2023 · 0 comments
Open

Protobuf - uintXX packed array can't be serialized / deserialized #2418

Dogacel opened this issue Aug 23, 2023 · 0 comments

Comments

@Dogacel
Copy link
Contributor

Dogacel commented Aug 23, 2023

Describe the bug

Types repeated uint32 and repeated uint64 that are packed can't be serialized / deserialized.

To Reproduce

    @ProtoNumber(77) @ProtoPacked val packedUint32: List<UInt> = emptyList(),
    @ProtoNumber(78) @ProtoPacked val packedUint64: List<ULong> = emptyList(),

Results in

Expected wire type 0, but found 2

Expected behavior

Should serialize and deserialize correctly.

Environment

  • Kotlin version: 1.9.0
  • Library version: 1.6.1
  • Kotlin platforms: All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant