Expand description
Tape parser for simdjson DOM tape format.
The simdjson DOM parser serializes parsed JSON into a “tape” - an array of 64-bit words. Each word encodes its node type in the top 8 bits and a payload (e.g., string offset, number of elements, or sibling index) in the lower 56 bits.
§Tape type byte values (top 8 bits of each tape word)
| Char | Hex | Meaning |
|---|---|---|
r | 0x72 | Root node (always first and last entries) |
{ | 0x7B | Start of object (payload = end-of-scope index) |
} | 0x7D | End of object (payload = start index) |
[ | 0x5B | Start of array (payload = end-of-scope index) |
] | 0x5D | End of array (payload = start index) |
" | 0x22 | String (payload = byte offset into string_buf) |
l | 0x6C | Signed integer (next tape word = i64 bits) |
u | 0x75 | Unsigned integer(next tape word = u64) |
d | 0x64 | Double (next tape word = f64 bits) |
t | 0x74 | Boolean true |
f | 0x66 | Boolean false |
n | 0x6E | Null |
Structs§
- TapeRef
- A cursor over the simdjson DOM tape.
Enums§
- Error
- The error type returned by Tape operations.
- Tape
Type - Tape type byte values encoded in the top 8 bits of each tape word.
- Value
- A zero-copy representation of a JSON value parsed from the simdjson tape.
Traits§
- Tape
Visitor - Callback-based visitor interface for the simdjson tape.