Expand description
A value’s first byte: what it is.
Constants§
- ALL
- Every tag, by its name (what other languages’ readers are generated from).
- BYTES
- Bytes: a length, then them.
- FALSE
false.- FLOAT
- A float, an
f64little-endian. - FLOAT32
- A float that is an
f32exactly, 4 bytes. - FLOATS
- Lists of floats without a tag each.
- FLOAT
S32 - Lists of
f32s without a tag each. - INT
- An integer, zigzag varint.
- INTS
- A list of ints without a tag each: what a schema of numbers writes its lists as.
- INT_
INLINE - Version 2: the first of 128 tags that are an int by themselves,
tag - INT_INLINE + INLINE_INT_MIN(-16 to 111): no payload. - LIST
- A list: a count, then the values.
- MAP
- A map: a count, then key and value pairs.
- MAP_
SHAPE - Version 2: a map whose keys are a shape (listed once, then named by number): the shape, then one value per key.
- NULL
- Null.
- RECORDS
- Version 2: a list of maps that all have one shape: a count, the shape, then each map’s values with no tag of their own.
- REF
- A reference: its kind and id strings.
- STR
- A string: new (its bytes) or the table’s.
- STREAM
- A list in a body of its own (its own strings): read lazily, cut out whole (
crate::Stream). - STR_
INDEX - Version 2: the first of 32 tags that are a string already in the table,
by its index
tag - STR_INDEX(0 to 31): no payload. - TRUE
true.