Skip to main content

Module stream

Module stream 

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

Object
Stream
Tag
A four-character tag in its readable order (Desc, Chld).

Enums§

Kind
Value

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 53 header). Bytes after the root’s terminator are ignored.

Type Aliases§

ObjId
Index of an object in Stream::objects.