Skip to main content

Module vector_value_codec

Module vector_value_codec 

Source
Expand description

Large-value codec for vector/B-tree persisted payloads.

This byte-slice codec knows nothing about pages, MVCC, or overflow chains. It stores either raw bytes or an LZ4 block prefixed with the original length.

Enums§

ValueCodecError
ValueFlag
One-byte tag stored alongside the encoded payload.

Functions§

decode
Decode a (flag, bytes) pair produced by encode.
encode
Encode input for storage. Returns the flag and stored bytes.
would_encode_to
Return the on-disk size encode would choose without returning the bytes.