Packmatic.Field.Local.DataDescriptor (Packmatic v1.2.0) View Source
Represents the Data Descriptor, which is used to facilitate streaming. This is requried since Packmatic assembles the files on the fly, so it does not know the size until the entire source has been read.
Structure
Data Descriptor
Size | Content |
---|---|
4 bytes | Signature |
4 bytes | Checksum (CRC-32) |
4 bytes | Compressed Size (Bytes) |
4 bytes | Original Size (Bytes) |
Notes
- Although the APPNOTE indicates that Zip64 format should be used, 8-byte sizes crash the Unarchiver process on macOS High Sierra, but a truncated one works totally fine.
Link to this section Summary
Link to this section Types
Specs
t() :: %Packmatic.Field.Local.DataDescriptor{ checksum: non_neg_integer(), size: non_neg_integer(), size_compressed: non_neg_integer() }