Expand description
The tagged object stream inside doc.dat: a self-describing tree of objects whose fields carry
a type code and a four-character tag. Parsing needs no schema; unknown fields are kept, so the
document mapping can name what it could not import.
Structs§
Enums§
Constants§
- MAX_
DEPTH - Deepest object nesting accepted; real documents stay well below (each layer level adds three).
- MAX_
VALUES - Most values (fields and array elements) one stream may decode. A value takes about 40 bytes in memory however few it took in the file (a bool array packs eight in a byte), so the size of the input alone doesn’t bound what parsing allocates: a small compressed entry could otherwise ask for tens of gigabytes. Real documents stay far below.
Functions§
- parse
- Parse a stream (
00 FF 4B 53header). Bytes after the root’s terminator are ignored.
Type Aliases§
- ObjId
- Index of an object in
Stream::objects.