package msgpck
Fast MessagePack (http://msgpack.org) library
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.tar.gz
sha256=8b596b49081ef87841dc236139c434e1812ad61afca2dc79e3c61a571734a2f3
md5=4fa1a6fbfbf9927c34a14f3c55d8a278
doc/msgpck/Msgpck/BytesBuf/index.html
Module Msgpck.BytesBuf
MessagePack library decoding from bytes and writing in Buffers.
type buf_in = Bytes.t
Type of input buffer (where MessagePack data will be read)
type buf_out = Buffer.t
Type of input buffer (where MessagePack data will be read)
Type of output buffer (where MessagePack data will be written)
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
.
val size : t -> int
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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>