Packmatic.Field.Shared.Unix (Packmatic v2.0.0)
View SourceRepresents 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
| Size | Content |
|---|---|
| 2 bytes | Signature |
| 2 bytes | Size of Rest of Field (Bytes) |
| 1 byte | Version (1) |
| 1 byte | Size of UID |
| N bytes | UID |
| 1 byte | Size of GID |
| N bytes | GID |
Summary
Types
@type t() :: %Packmatic.Field.Shared.Unix{ gid: non_neg_integer(), uid: non_neg_integer() }