Skip to content
On this page

File format

The enassi file format is a bit like the ZIP file format, stored in little-endian ordering.

It has 2 parts:

  • File header: only have one.
  • Item file: currently only one is used. document

File header (30 bytes)

usagelengthremark
File header signature4 bytes'PK\x03\x04'
File format version2 bytesDefaults 1
User data structure version2 bytesDefaults 1
CRC-324 bytesCan be 0
File last modification UTC timestamp8 bytesMax: 2286-11-21 01:46:39
Empty10 bytes0

Item header (50 bytes)

usagelengthremark
Item header signature4 bytes'PK\x01\x02'
CRC-324 bytescrc32(sha256(file content))
Item last modification UTC timestamp8 bytesMax: 2286-11-21 01:46:39
Item file name length2 bytesMax: 32767
Item file data length4 bytesMax: 2147483647(2T)
Empty28 bytes0

Item body

usagelengthremark
Item file namevariableCan be none
Item file datavariableCan be none

Item tail (20 bytes)

usagelengthremark
End of item signature4 bytes'PK\x05\x06'
Empty16 bytes0