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

SharpZip Compression Library

SharpZip Compression Library

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

Add an entry name to the buffer

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

Parameters

name
The name to add
buf
The buffer to add to
offset
The offset into the buffer from which to start adding
length
The number of header bytes to add

Return Value

The index of the next free byte in the buffer

See Also

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