Expand description
The program data chunk (SPEC.md, section 13): each program’s own
documents, by program name and subject, a node or the whole file.
The documents are carried without being read: what one holds belongs to the program that wrote it. Every entry’s program name is checked, every subject is a node of the scene or the whole file, and no two entries have the same program and subject.
entries u32 count, then per entry:
u32 length, the program's name
u32 the node index the entry is about, or FFFFFFFF for the file
u32 the program's own version of the document
u32 length, the documentStructs§
- Program
Entry - One program’s document about the whole file or one node.
Enums§
- Decode
Program Data Error - Why a program data payload could not be decoded.
- Encode
Program Data Error - Why a list of program data entries could not be encoded.
Constants§
- PROGRAM_
TAG - The tag of the program data chunk.
- PROGRAM_
VERSION - The program data payload layout this build writes and reads.
Functions§
- decode_
program_ data - Decodes a program data payload, checking it against
scene, the scene of the same file. - encode_
program_ data - Encodes
entriesas a program data payload, in their order, checking them againstscene. - is_
program_ name - Whether
nameis a program name (SPEC.md, section 13.1): 1 to 64 lowercase ASCII letters, digits,.,-and_, the first a letter. The program data, the surface paint and the volumes name their programs this way.