Skip to main content

Module encoding

Module encoding 

Source
Expand description

Order-preserving key encoding and row encoding for non-PK column storage.

Enums§

RawColumn

Functions§

decode_column_raw
decode_column_with_offset
Like decode_column_raw but also returns the byte offset (usize::MAX if NULL).
decode_columns
decode_columns_into
decode_composite_key
Decode a composite key into multiple values.
decode_key_value
Decode a single key value, returning the value and the number of bytes consumed.
decode_pk_integer
decode_pk_into
decode_row
decode_row_into
encode_composite_key
Encode a composite key (multiple values concatenated).
encode_composite_key_into
encode_key_value
Encode a single value into an order-preserving byte sequence.
encode_row
Encode non-PK columns. Format: [col_count:u16][null_bitmap][type(u8)+len(u32)+data per col]
encode_row_into
patch_at_offset
Patch at a known byte offset. Ok(false) if size mismatch or NULL offset.
patch_column_in_place
Patch column in-place if value size unchanged. Ok(false) = size mismatch, use patch_row_column.
patch_row_column
Patch a single column in encoded row, writing result into out. Copies others unchanged.
row_non_pk_count
Returns the number of non-PK columns stored in a row value blob.