Skip to main content

Module wire

Module wire 

Source
Expand description

Wire types for the Crous binary format.

Each field in a Crous document is prefixed with a tag byte encoding:

  • Low 4 bits: wire type (the physical encoding of the data)
  • High 4 bits: flags (reserved, currently used for null/optional markers)

Wire types define how data is serialized on the wire, independent of the logical schema type. This enables forward-compatible skipping of unknown fields: a decoder that doesn’t know a field’s schema type can still determine how many bytes to skip.

Modules§

flags
Tag byte flags (high 4 bits).

Enums§

BlockType
Block type identifiers.
CompressionType
Compression type identifiers for block headers. Citation: https://facebook.github.io/zstd/ and https://github.com/lz4/lz4
WireType
Wire type identifiers (low 4 bits of tag byte).