Module Msgpck.String
MessagePack library decoding from strings and writing in bytes.
val read : ?pos:int -> buf_in -> int * tread ?pos bufis(nb_read, t), wherenb_readis the number of bytes read frombufat pos?pos, andtis the decoded MessagePack value.@raiseInvalid_argument "msg" when there is no valid MessagePack value to be read frombufat positionpos.
val read_all : ?pos:int -> buf_in -> int * t listread_all ?pos bufreads all messages found inbuf. @returns a tuple(pos, l)whereposis the new position in the buffer, andlis the list of read messages.@raiseInvalid_argument "msg" when there is no valid MessagePack value to be read frombufat positionpos.