TarHeader Members

SharpZip Compression Library

SharpZip Compression Library

TarHeader Members

TarHeader overview

Public Static Fields

CHKSUMLEN The length of the checksum field in a header buffer.
CHKSUMOFS Offset of checksum in a header buffer.
DEVLEN The length of the devices field in a header buffer.
GIDLEN The length of the group id field in a header buffer.
GNAMELEN The length of the group name field in a header buffer.
GNU_TMAGIC The magic tag representing an old GNU tar archive where version is included in magic and overwrites it
LF_ACL Solaris access control list file type
LF_BLK Block device file type.
LF_CHR Character device file type.
LF_CONTIG Contiguous file type.
LF_DIR Directory file type.
LF_EXTATTR Solaris Extended Attribute File
LF_FIFO FIFO (pipe) file type.
LF_GHDR Posix.1 2001 global extended header
LF_GNU_DUMPDIR GNU dir dump file type This is a dir entry that contains the names of files that were in the dir at the time the dump was made
LF_GNU_LONGLINK Identifies the next file on the tape as having a long link name
LF_GNU_LONGNAME Identifies the next file on the tape as having a long name
LF_GNU_MULTIVOL Continuation of a file that began on another volume
LF_GNU_NAMES For storing filenames that dont fit in the main header (old GNU)
LF_GNU_SPARSE GNU Sparse file
LF_GNU_VOLHDR GNU Tape/volume header ignore on extraction
LF_LINK Link file type.
LF_META Inode (metadata only) no file content
LF_NORMAL Normal file type.
LF_OLDNORM The "old way" of indicating a normal file.
LF_SYMLINK Symbolic link file type.
LF_XHDR Posix.1 2001 extended header
MAGICLEN The length of the magic field in a header buffer.
MODELEN The length of the mode field in a header buffer.
MODTIMELEN The length of the modification time field in a header buffer.
NAMELEN The length of the name field in a header buffer.
SIZELEN The length of the size field in a header buffer.
TMAGIC The magic tag representing a POSIX tar archive. (includes trailing NULL)
UIDLEN The length of the user id field in a header buffer.
UNAMELEN The length of the user name field in a header buffer.
VERSIONLEN The length of the version field in a header buffer.

Public Static Methods

GetAsciiBytes Add a string to a buffer as a collection of ascii bytes.
GetLongOctalBytes Put an octal representation of a value into a buffer
GetNameBytesOverloaded. Add name to the buffer as a collection of bytes
GetOctalBytes Put an octal representation of a value into a buffer
ParseName Parse a name from a header buffer.
ParseOctal Parse an octal string from a header buffer.
ResetValueDefaults Reset value defaults to initial values.
SetValueDefaults Set defaults for values used when constructing a TarHeader instance.

Public Instance Constructors

TarHeader Constructor Initialise a default TarHeader instance

Public Instance Properties

Checksum Get the entry's checksum. This is only valid/updated after writing or reading an entry.
DevMajor Get/set the entry's major device number.
DevMinor Get/set the entry's minor device number.
GroupId Get/set the entry's group id.
GroupName Get/set the entry's group name.
IsChecksumValid Get value of true if the header checksum is valid, false otherwise.
LinkName The entry's link name.
Magic Get/set the entry's magic tag.
Mode Get/set the entry's Unix style permission mode.
ModTime Get/set the entry's modification time.
Name Get/set the name for this tar entry.
Size Get/set the entry's size.
TypeFlag Get/set the entry's type flag.
UserId The entry's user id.
UserName The entry's user name.
Version The entry's version.

Public Instance Methods

Clone Clone a TAR header.
Equals Determines if this instance is equal to the specified object.
GetHashCode Get a hash code for the current object.
GetNameObsolete. Get the name of this entry.
GetType (inherited from Object) Gets the Type of the current instance.
ParseBuffer Parse TarHeader information from a header buffer.
ToString (inherited from Object) Returns a String that represents the current Object.
WriteHeader 'Write' header information to buffer provided, updating the check sum.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

TarHeader Class | ICSharpCode.SharpZipLib.Tar Namespace