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:
“A personality is an indefinite quantum of traits which is subject to constant flux, change, and growth from the birth of the individual in the world to his death. A character, on the other hand, is a fixed and definite quantum of traits which, though it may be interpreted with slight differences from age to age and actor to actor, is nevertheless in its essentials forever fixed.”
—Hubert C. Heffner (19011985)
“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)
“While waiting to get married, several forms of employment were acceptable. Teaching kindergarten was for those girls who stayed in school four years. The rest were secretaries, typists, file clerks, or receptionists in insurance firms or banks, preferably those owned or run by the family, but respectable enough if the boss was an upstanding Christian member of the community.”
—Barbara Howar (b. 1934)
“Vashtar: So its finished. A structure to house one man and the greatest treasure of all time.
Senta: And a structure that will last for all time.
Vashtar: Only history will tell that.
Senta: Sire, will he not be remembered?
Vashtar: Yes, hell be remembered. The pyramidll keep his memory alive. In that he built better than he knew.”
—William Faulkner (18971962)