Packmatic.Field.Shared.Unix (Packmatic v2.0.0)

View Source

Represents the Info-ZIP New Unix Extra Field, which is emitted in the Central File Headers. The field is emitted only when both the UID and GID are set via the Entry Attributes, otherwise it will not be emitted. The size is 4 bytes for both the UID and GID, same as what Erlang’s zip module emits.

Structure

Info-ZIP New Unix Extra Field

SizeContent
2 bytesSignature
2 bytesSize of Rest of Field (Bytes)
1 byteVersion (1)
1 byteSize of UID
N bytesUID
1 byteSize of GID
N bytesGID

Summary

Types

t()

@type t() :: %Packmatic.Field.Shared.Unix{
  gid: non_neg_integer(),
  uid: non_neg_integer()
}