Packmatic.Field.Shared.ExtendedInformation (Packmatic v1.2.0) View Source

Represents the Zip64 Extended Information Extra Field, which can be emitted in both Local and Central File Headers, but in practice only used in the Central File Header within Packmatic, due to its streaming nature.

Furthermore, disregarding the APPNOTE’s indication that the field should only be used if the sizes are set to 0xFF 0xFF / 0xFF 0xFF 0xFF 0xFF, since Packmatic always skips the file sizes in the Local File Header (due to the archive being generated in a streaming fashionn), and always emits the sizes in the Central Directory File Header as 0xFF 0xFF 0xFF 0xFF for simplicity, the Zip64 Extended Information Extra Field is never emitted by Packmatic in the Local File Header, and always emitted by Packmatic in the Central Directory File Header, with both Uncompressed and Compressed Sizes.

Structure

Shared Zip64 Extended Information

SizeContent
2 bytesSignature
2 bytesSize of Rest of Field (Bytes)
8 bytesOriginal Size (Bytes)
8 bytesCompressed Size (Bytes)

Link to this section Summary

Link to this section Types

Specs

t() :: %Packmatic.Field.Shared.ExtendedInformation{
  size: non_neg_integer(),
  size_compressed: non_neg_integer()
}