class

Crystar::Header

Inherits Reference < Object

Constructors

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

access_time
Source
access_time=(access_time : Time)
Source
change_time
Source
change_time=(change_time : Time)
Source
dev_major
Source
dev_major=(dev_major : Int64)
Source
dev_minor
Source
dev_minor=(dev_minor : Int64)
Source
file_info

file_info returns an File::Info for the header

Source
flag

Typeflag is the type of header entry. The zero value is automatically promoted to either REG or DIR depending on the presence of a trailing slash in Name.

Source
flag=(flag : UInt8)

Typeflag is the type of header entry. The zero value is automatically promoted to either REG or DIR depending on the presence of a trailing slash in Name.

Source
flag=(v : Int)
Source
format
Source
format=(format : Format)
Source
gid=(gid : Int32)
Source
gid=(v : Int)
Source
gname
Source
gname=(gname : String)
Source
hash(hasher)

See Object#hash(hasher)

mod_time

If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.

To use access_time or change_time, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.

Source
mod_time=(mod_time : Time)

If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.

To use access_time or change_time, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.

Source
mode
Source
mode=(mode : Int64)
Source
name
Source
name=(name : String)
Source
pax_records

pax_records 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., "CRYSTAL.mod.version"). The key and value should be non-empty UTF-8 strings.

When Writer#write_header is called, PAX records derived from the other fields in Header take precedence over PAXRecords.

Source
pax_records=(pax_records : Hash(String, String))

pax_records 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., "CRYSTAL.mod.version"). The key and value should be non-empty UTF-8 strings.

When Writer#write_header is called, PAX records derived from the other fields in Header take precedence over PAXRecords.

Source
size
Source
size=(size : Int64)
Source
size=(v : Int)
Source
uid=(uid : Int32)
Source
uid=(v : Int)
Source
uname
Source
uname=(uname : String)
Source
xattr

xattr stores extended attributes as PAX records under the "SCHILY.xattr." namespace.

The following are semantically equivalent: h.Xattrs[key] = value h.PAXRecords["SCHILY.xattr."+key] = value

When Writer#write_header is called, the contents of xattr will take precedence over those in PAXRecords.

Source
xattr=(xattr : Hash(String, String))

xattr stores extended attributes as PAX records under the "SCHILY.xattr." namespace.

The following are semantically equivalent: h.Xattrs[key] = value h.PAXRecords["SCHILY.xattr."+key] = value

When Writer#write_header is called, the contents of xattr will take precedence over those in PAXRecords.

Source