TarHeader.GetNameBytes Method (StringBuilder, Int32, Byte[], Int32, Int32)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

TarHeader.GetNameBytes Method (StringBuilder, Int32, Byte[], Int32, Int32)

Add name to the buffer as a collection of bytes

public static int GetNameBytes(
   StringBuilder name,
   int nameOffset,
   byte[] buffer,
   int bufferOffset,
   int length
);

Parameters

name
The name to add
nameOffset
The offset of the first character
buffer
The buffer to add to
bufferOffset
The index of the first byte to add
length
The number of characters/bytes to add

Return Value

The next free index in the buf

See Also

TarHeader Class | ICSharpCode.SharpZipLib.Tar Namespace | TarHeader.GetNameBytes Overload List