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. ReturnsNonefor unknown bytes;Some(DataType::Nullable)for the dedicated null marker0. - type_
tag - On-disk tag byte for a value.