TarHeader.GetAsciiBytes Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

TarHeader.GetAsciiBytes Method 

Add a string to a buffer as a collection of ascii bytes.

public static int GetAsciiBytes(
   string toAdd,
   int nameOffset,
   byte[] buffer,
   int bufferOffset,
   int length
);

Parameters

toAdd
The string to add
nameOffset
The offset of the first character to add.
buffer
The buffer to add to.
bufferOffset
The offset to start adding at.
length
The number of ascii characters to add.

Return Value

The next free index in the buffer.

See Also

TarHeader Class | ICSharpCode.SharpZipLib.Tar Namespace