Skip to main content

Module value_codec

Module value_codec 

Source
Expand description

Re-export shim for the Value byte codec.

Value::to_bytes/from_bytes delegate to this codec, so it travelled with the logical type vocabulary into the neutral keystone crate reddb_types (ADR 0052). This shim keeps the historical storage::schema::value_codec path resolving so existing call-sites stay untouched.

Functions§

decode
Decode a single value from data, returning the value and the number of bytes consumed.
encode
Encode a value into out, appending its on-disk byte sequence.
type_for_tag
Reverse lookup for type_tag. Returns None for unknown bytes; Some(DataType::Nullable) for the dedicated null marker 0.
type_tag
On-disk tag byte for a value.

Type Aliases§

ValueKind
Alias kept for callers that prefer the registry’s own name. The on-disk tag space is owned by DataType; ValueKind reads better in registry contexts where the type name is the schema label rather than a parser concept.