Skip to main content

Module block

Module block 

Source
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§

BlockReader
A parsed block read from binary data.
BlockWriter
Builder for a single block’s payload, with framing support.