TarOutputStream.Write Method

SharpZip Compression Library

SharpZip Compression Library

TarOutputStream.Write Method 

Writes bytes to the current tar archive entry. This method is aware of the current entry and will throw an exception if you attempt to write bytes past the length specified for the current entry. The method is also (painfully) aware of the record buffering required by TarBuffer, and manages buffers that are not a multiple of recordsize in length, including assembling records from small buffers.

public override void Write(
   byte[] wBuf,
   int wOffset,
   int numToWrite
);

Parameters

wBuf
The buffer to write to the archive.
wOffset
The offset in the buffer from which to get bytes.
numToWrite
The number of bytes to write.

See Also

TarOutputStream Class | ICSharpCode.SharpZipLib.Tar Namespace