Expand description
Segment binary format definitions.
The segment file format is designed for mmap and sequential SIMD scans:
- Little-endian, fixed header
- Offset table to SoA blocks
- BPS stored as block-major SoA
- RDF posting lists stored in VID-striped chunks
Structs§
- Block
Scale - Block quantization scale
- Posting
List Entry - RDF posting list directory entry
- Segment
Flags - Segment feature flags
- Segment
Header - Segment header - fixed size at file start
Functions§
- align_
to - Align a value to the next multiple of alignment
- bps_
offset - Compute the offset of BPS data for a specific block and vector