class Crystar::Header
- Crystar::Header
- Reference
- Object
Defined in:
tar/header.crConstructors
Instance Method Summary
- #==(other : self)
-
#access_time : Time
Modification time
-
#access_time=(access_time : Time)
Modification time
-
#change_time : Time
Access time (requires either PAX or GNU support)
-
#change_time=(change_time : Time)
Access time (requires either PAX or GNU support)
- #dev_major : Int64
- #dev_major=(dev_major : Int64)
-
#dev_minor : Int64
Major device number (valid for CHAR or BLOCK)
-
#dev_minor=(dev_minor : Int64)
Major device number (valid for CHAR or BLOCK)
-
#file_info
file_info returns an File::Info for the header
-
#flag : UInt8
Typeflag is the type of header entry.
-
#flag=(flag : UInt8)
Typeflag is the type of header entry.
- #flag=(v : Int)
- #format : Format
- #format=(format : Format)
-
#gid : Int32
User ID of owner
-
#gid=(gid : Int32)
User ID of owner
- #gid=(v : Int)
-
#gname : String
User name of owner
-
#gname=(gname : String)
User name of owner
- #hash(hasher)
- #io : IO
-
#link_name : String
Name of file entry
-
#link_name=(link_name : String)
Name of file entry
-
#mod_time : Time
If the Format is unspecified, then Writer.WriteHeader rounds ModTime to the nearest second and ignores the AccessTime and ChangeTime fields.
-
#mod_time=(mod_time : Time)
If the Format is unspecified, then Writer.WriteHeader rounds ModTime to the nearest second and ignores the AccessTime and ChangeTime fields.
-
#mode : Int64
Logical file size in bytes
-
#mode=(mode : Int64)
Logical file size in bytes
- #name : String
- #name=(name : String)
-
#pax_records : Hash(String, String)
PAXRecords is a map of PAX extended header records.
-
#pax_records=(pax_records : Hash(String, String))
PAXRecords is a map of PAX extended header records.
- #size : Int64
- #size=(size : Int64)
- #size=(v : Int)
-
#uid : Int32
Permission and mode bits
- #uid=(v : Int)
-
#uid=(uid : Int32)
Permission and mode bits
-
#uname : String
Group ID of owner
-
#uname=(uname : String)
Group ID of owner
- #xattr : Hash(String, String)
- #xattr=(xattr : Hash(String, String))
Constructor Detail
Instance Method Detail
Typeflag is the type of header entry. The zero value is automatically promoted to either TypeReg or TypeDir depending on the presence of a trailing slash in Name.
Typeflag is the type of header entry. The zero value is automatically promoted to either TypeReg or TypeDir depending on the presence of a trailing slash in Name.
If the Format is unspecified, then Writer.WriteHeader rounds ModTime to the nearest second and ignores the AccessTime and ChangeTime fields.
To use AccessTime or ChangeTime, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.
If the Format is unspecified, then Writer.WriteHeader rounds ModTime to the nearest second and ignores the AccessTime and ChangeTime fields.
To use AccessTime or ChangeTime, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.
PAXRecords is a map of PAX extended header records.
User-defined records should have keys of the following form: VENDOR.keyword Where VENDOR is some namespace in all uppercase, and keyword may not contain the '=' character (e.g., "GOLANG.pkg.version"). The key and value should be non-empty UTF-8 strings.
When Writer.WriteHeader is called, PAX records derived from the other fields in Header take precedence over PAXRecords.
PAXRecords is a map of PAX extended header records.
User-defined records should have keys of the following form: VENDOR.keyword Where VENDOR is some namespace in all uppercase, and keyword may not contain the '=' character (e.g., "GOLANG.pkg.version"). The key and value should be non-empty UTF-8 strings.
When Writer.WriteHeader is called, PAX records derived from the other fields in Header take precedence over PAXRecords.