Buffer interface, which does not have any internal cursors unlike ByteBuffer of Java library.
This error is thrown when the user tries to read an integer value using a smaller types.
This error is thrown when the user tries to read an integer value using a smaller types. For example, calling MessageUnpacker.unpackInt() for an integer value that is larger than Integer.MAX_VALUE will cause this exception.
Base class for message pack errors
Provides a buffered output stream that writes sequence of WriteBuffer instances.
Provides a buffered output stream that writes sequence of WriteBuffer instances.
A Sink implementation has total control of the buffer memory so that it can reuse buffer memory, use buffer pools, or use memory-mapped files.
Mutable cursor for Unpacker.
Message Packer interface
MessageUnpacker interface
MessagePack prefix codes
Describes the list of the message format types defined in the MessagePack specification.
Write MessagePack code at a given position on the buffer and return the written byte length
Read a message pack data from a given offset in the buffer.
Read a message pack data from a given offset in the buffer. The last read byte length can be checked by calling ReadCursor.lastReaadByteLength method.
Representation of MessagePack types.
Representation of MessagePack types.
MessagePack uses hierarchical type system. Integer and Float are subypte of Number, Thus #isNumberType()
returns true if type is Integer or Float. String and Binary are subtype of Raw. Thus #isRawType()
returns
true if type is String or Binary.
Buffer interface, which does not have any internal cursors unlike ByteBuffer of Java library.
- The read methods read the buffer data from the given position. - The write methods write data to the specified position in the buffer and return the written byte length.
If the buffer capacity is insufficient, these read/write methods throw an InsufficientBufferException. If this exception is thrown, the user code should feed more data, and then resume reading.