Skip to main content

Module op_codec

Module op_codec 

Source
Expand description

MessagePack encode/decode for ArrayOp and batches thereof.

Uses zerompk (the workspace’s MessagePack codec) so that encoding is consistent with the rest of the internal transport layer.

Functions§

decode_op
Decode a single ArrayOp from MessagePack bytes.
decode_op_batch
Decode a Vec<ArrayOp> from MessagePack bytes produced by encode_op_batch.
encode_op
Encode a single ArrayOp to MessagePack bytes.
encode_op_batch
Encode a slice of ArrayOps as a single MessagePack value (array).