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

SharpZip Compression Library

SharpZip Compression Library

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

Add name to the buffer as a collection of bytes

public static int GetNameBytes(
   string name,
   int nameOffset,
   byte[] buf,
   int bufferOffset,
   int length
);

Parameters

name
The name to add
nameOffset
The offset of the first character
buf
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