Expand description
The Affinity archive: header, the chain of file allocation tables (one per save) and
bounded, CRC-checked extraction of named entries such as doc.dat and raster tiles.
Structs§
- Archive
- Entry
- One FAT record, as of the newest table that mentions its id.
- Header
- The container header, all integers little-endian.
- Limits
- Decompression budget for one import. Every entry declares its size, which is checked against these limits before anything is allocated, and the decoded length must match it exactly.
Constants§
- MAGIC
- VERSIONS
- Oldest and newest container versions seen in real documents (Affinity 1.x writes 8, Affinity 3 writes 12). Version 7 is described by afread but no sample exists.
Functions§
- header
- Check the signature, version and document kind.
- is_
affinity - True when
bytesstart with the Affinity container signature (documents and libraries).