Expand description
Little-endian byte codec shared by the base and WAL formats. All readers
return Error::Format rather than panicking on truncated or hostile
input, and every length-driven preallocation is capped by
Reader::remaining — the two rules the fuzz targets enforce.
Structs§
- Reader
- A bounds-checked forward reader over untrusted bytes.
Functions§
- align_
up - Round
nup to the next multiple ofalign(power of two). - get_u16
- Read a
u16at a known-good offset (caller has already bounds-checked). - get_u32
- Read a
u32at a known-good offset. - get_u64
- Read a
u64at a known-good offset. - put_
blob - Append a
u32-length-prefixed UTF-8 string (large values: SQL, text). - put_f32
- Append an
f32LE. - put_
len_ prefixed - Append
u32-length-prefixed bytes. - put_str
- Append a
u16-length-prefixed UTF-8 string (caller guarantees<= u16::MAX). - put_u8
- Append helpers (writers never fail).
- put_u16
- Append a
u16LE. - put_u32
- Append a
u32LE. - put_u64
- Append a
u64LE. - put_
varint - Append an unsigned LEB128 varint.