We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey,
I have some issues implementing my expected behavior.
I'd like to pack a number as uint8. How can I do that? Using byte as a type doesn't seem to work.
byte
The example shows packing an object into MsgPack. I'd like to pack my own structure which looks like
{ someUInt8Key: someUInt8Value }
or
{ someUInt8Key: [someUInt8Value, someOtherUInt8Value] }
Can I achieve it with MoshiPack?
Following the example, I modified it to have
data class MessagePackWebsitePlug(var compact: Byte? = null)
which packs to bytes [0x80] which means that it's a map with length 0. Is there any way to pack nulls?
[0x80]
Let me know your thoughts :)
The text was updated successfully, but these errors were encountered:
On nulls, I think you'll need to pass in a Moshi instance configured to serialize nulls.
Sorry, something went wrong.
No branches or pull requests
Hey,
I have some issues implementing my expected behavior.
1. Unsigned integers
I'd like to pack a number as uint8. How can I do that? Using
byte
as a type doesn't seem to work.2. Integer based keys
The example shows packing an object into MsgPack. I'd like to pack my own structure which looks like
or
Can I achieve it with MoshiPack?
3. Packing nulls
Following the example, I modified it to have
which packs to bytes
[0x80]
which means that it's a map with length 0. Is there any way to pack nulls?Let me know your thoughts :)
The text was updated successfully, but these errors were encountered: