|
Class TapeArchive::RecordHeader
|
|
This class represents the header record for a single tar entry. It is also
used to represent an "empty block", which pads the end of a tar
file. This class should almost never be instantiated directly.
| chksum |
[RW] |
|
| devmajor |
[RW] |
|
| devminor |
[RW] |
|
| gid |
[RW] |
|
| gname |
[RW] |
|
| linkflag |
[RW] |
|
| linkname |
[RW] |
|
| magic |
[RW] |
|
| mode |
[RW] |
|
| mtime |
[RW] |
|
| name |
[RW] |
|
| prefix |
[RW] |
|
| size |
[RW] |
|
| uid |
[RW] |
|
| uname |
[RW] |
|
| version |
[RW] |
|
ParameterValidator
Instantiate an empty header record, composed entirely of null bytes.
Read the record header from the given stream and instantiate it.
Instantiate a new record header from the given keyword arguments.
Compute the extra padding needed to bring a block of size
‘size’ to RECORD_SIZE bytes.
Query whether this header is nil.
Convert the header to its string value, which will be written to a file. If
checksumming is true, then the chksum field will be left blank so that a
checksum can be computed.
Compute the checksum for this header.
A convenience function for converting a number to octal, with the given
width (padded with 0’s).