Quantum Archive File Structure
File header
Bytes | Description |
---|---|
2 | Quantum signature: 0x44 0x53 |
1 | Quantum major version number |
1 | Quantum minor version number |
2 | number of files within this archive |
1 | table size required for decompression |
1 | compression flags |
This is immediately followed by the list of files:
Bytes | Description |
---|---|
variable | length of file name, see (*) below |
variable | file name, variable length string, not zero-terminated |
variable | length of comment field, see (*) below |
variable | comment field, variable length string, not zero-terminated |
4 | fully expanded file size in bytes |
2 | file time (DOS format) |
2 | file date (DOS format) |
Immediately following the list of files is the compressed data.
(*) Strings are prefixed with their length. If the length is less than 128 then it is stored directly in one byte. If it is greater than 127 then the high bit of the first byte is set to 1 and the remaining fifteen bits contain the actual length in big-endian format.
Read more about this topic: Quantum Compression
Famous quotes containing the words quantum, archive, file and/or structure:
“But how is one to make a scientist understand that there is something unalterably deranged about differential calculus, quantum theory, or the obscene and so inanely liturgical ordeals of the precession of the equinoxes.”
—Antonin Artaud (18961948)
“To a historian libraries are food, shelter, and even muse. They are of two kinds: the library of published material, books, pamphlets, periodicals, and the archive of unpublished papers and documents.”
—Barbara Tuchman (19121989)
“Probably nothing in the experience of the rank and file of workers causes more bitterness and envy than the realization which comes sooner or later to many of them that they are stuck and can go no further.”
—Mary Barnett Gilson (1877?)
“There is no such thing as a language, not if a language is anything like what many philosophers and linguists have supposed. There is therefore no such thing to be learned, mastered, or born with. We must give up the idea of a clearly defined shared structure which language-users acquire and then apply to cases.”
—Donald Davidson (b. 1917)