package msgpck
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Msgpck.Bytes
Source
MessagePack library decoding from bytes and writing in bytes.
read ?pos buf
is (nb_read, t)
, where nb_read
is the number of bytes read from buf
at pos ?pos
, and t
is the decoded MessagePack value.
@raise
Invalid_argument "msg" when there is no valid MessagePack value to be read from buf
at position pos
.
read_all ?pos buf
reads all messages found in buf
.
@raise
Invalid_argument "msg" when there is no valid MessagePack value to be read from buf
at position pos
.
size msg
is the size in bytes of the MessagePack serialization of message msg
.
write ?pos buf msg
is nb_written
, the number of bytes written on buf
at position ?pos
. The serialization of msg
have been written to buf
starting at ?pos
.