Changes between Version 19 and Version 20 of Obsolete/MovedToTree/PackageManagement/FileFormat
- Timestamp:
- Oct 5, 2013, 11:06:00 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Obsolete/MovedToTree/PackageManagement/FileFormat
v19 v20 109 109 ||1||B_HPKG_COMPRESSION_ZLIB||zlib (LZ77) compression|| 110 110 111 The uncompressed heap data are divided into equally sized chunks (64 KiB). Each individual chunk may be stored compressed or not. A uint16 array at the end of the heap contains the actual in-file (compressed) size of each chunk , save for the last one, which is omitted since it is implied. A chunk is only stored compressed, if compression actually saves space. That is if the chunk's compressed size equals its uncompressed size, the data aren't compressed.111 The uncompressed heap data are divided into equally sized chunks (64 KiB). Each individual chunk may be stored compressed or not. A uint16 array at the end of the heap contains the actual in-file (compressed) size of each chunk (minus 1 -- 0 means 1 byte), save for the last one, which is omitted since it is implied. A chunk is only stored compressed, if compression actually saves space. That is if the chunk's compressed size equals its uncompressed size, the data aren't compressed. 112 112 113 113 The TOC and the package attributes sections are stored (in this order) at the end of the uncompressed heap. The offset of the package attributes section data is therefore `heap_size_uncompressed - attributes_length` and the offset of the TOC section data `heap_size_uncompressed - attributes_length - toc_length`.