Expand description
Block-level framing for the Crous binary format.
Blocks are the fundamental container for data in a Crous file. Each block has:
- A type byte identifying the block kind (data, index, schema, etc.)
- A varint-encoded length
- A compression type byte
- An 8-byte XXH64 checksum of the (uncompressed) payload
- The payload bytes
This module provides BlockWriter for building blocks incrementally
and BlockReader for reading them from a byte slice.
Structs§
- Block
Reader - A parsed block read from binary data.
- Block
Writer - Builder for a single block’s payload, with framing support.