Skip to content

Documentation doesn't explicitly explain what packInt / packByte / etc do #483

Open
@Ben-Cutler

Description

@Ben-Cutler

I hit an issue a few days ago with the fact that the MessageBufferPacker's packInt method (and other pack methods ) pack a number to take as little space on the wire as possible (So your i32 could be serialized as a u16, a u8,i8, etc) . This caused an issue with another library that was type sensitive.

While this is a reasonable implementation, the documentation here
https://static.javadoc.io/org.msgpack/msgpack-core/0.8.2/org/msgpack/core/MessagePacker.html
Should mention that packInt , packByte , etc do not guarantee the binary header of that type

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions