TarBuffer Members

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

TarBuffer Members

TarBuffer overview

Public Static Fields

BlockSize The size of a block in a tar archive in bytes.
DefaultBlockFactor The number of blocks in a default record.
DefaultRecordSize The size in bytes of a default record.

Public Static Methods

CreateInputTarBufferOverloaded. Create TarBuffer for reading with default BlockFactor
CreateOutputTarBufferOverloaded. Construct TarBuffer for writing with default BlockFactor

Public Instance Properties

BlockFactor Get the Blocking factor for the buffer
CurrentBlock Get the current block number, within the current record, zero based.
CurrentRecord Get the current record number.
RecordSize Get the record size for this buffer

Public Instance Methods

Close Close the TarBuffer. If this is an output buffer, also flush the current block before closing.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetBlockFactorObsolete. Get the TAR Buffer's block factor
GetCurrentBlockNumObsolete. Get the current block number, within the current record, zero based.
GetCurrentRecordNumObsolete. Get the current record number.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetRecordSizeObsolete. Get the TAR Buffer's record size.
GetType (inherited from Object) Gets the Type of the current instance.
IsEOFBlock Determine if an archive block indicates End of Archive. End of archive is indicated by a block that consists entirely of null bytes. All remaining blocks for the record should also be null's However some older tars only do a couple of null blocks (Old GNU tar for one) and also partial records
ReadBlock Read a block from the input stream.
SkipBlock Skip over a block on the input stream.
ToString (inherited from Object) Returns a String that represents the current Object.
WriteBlockOverloaded. Write a block of data to the archive.

Protected Instance Constructors

TarBuffer Constructor Construct a default TarBuffer

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

TarBuffer Class | ICSharpCode.SharpZipLib.Tar Namespace