Packmatic.Field.Central.DirectoryEnd (Packmatic v1.2.0) View Source

Represents the End of Central Directory record.

Within this implementation, the Zip64 standard always adopted, so the Zip64 End of Central Directory Record, and the Zip64 End of Central Directory Record Locator, are also emitted.

Structure

Zip64 End of Central Directory Record

SizeContent
4 bytesSignature
8 bytesSize of Record (excluding leading 12 bytes)
2 bytesVersion made by
2 bytesVersion needed to extract
4 bytesNumber of this disk
4 bytesNumber of the disk with the start of the Central Directory
8 bytesTotal number of entries in the Central Directory on this disk
8 bytesTotal number of entries in the Central Directory
8 bytesSize of the Central Directory
8 bytesOffset of start of Central Directory with respect to the starting disk number
VariableZip64 extensible data sector (variable, but empty in this implementation)

Zip64 End of Central Directory Locator

SizeContent
4 bytesSignature
4 bytesNumber of the disk with the start of the Zip64 End of Central Directory
8 bytesRelative offset of the Zip64 End of Central Directory record
4 bytesTotal number of disks

End of Central Directory Record

SizeContent
4 bytesSignature
2 bytesNumber of this disk
2 bytesNumber of the disk with the start of the Central Directory
2 bytesTotal number of entries in the Central Directory on this disk
2 bytesTotal number of entries in the Central Directory
4 bytesSize of the Central Directory
4 bytesOffset of start of Central Directory with respect to the starting disk number
2 bytesFile comment length
VariableFile comment (64KB max.)

Notes

  1. File comments are not emitted by Packmatic.

Link to this section Summary

Link to this section Types

Specs

t() :: %Packmatic.Field.Central.DirectoryEnd{
  entries_count: non_neg_integer(),
  entries_offset: non_neg_integer(),
  entries_size: non_neg_integer()
}