StreamManipulator.CopyBytes Method

Copies length bytes from input buffer to output buffer starting at output[offset]. You have to make sure, that the buffer is byte aligned. If not enough bytes are available, copies fewer bytes.

[Visual Basic]
Public Function CopyBytes( _
   ByVal output As Byte(), _
   ByVal offset As Integer, _
   ByVal length As Integer _
) As Integer
[C#]
public int CopyBytes(
   byte[] output,
   int offset,
   int length
);

Parameters

output

the buffer.

offset

the offset in the buffer.

length

the length to copy, 0 is allowed.

Return Value

the number of bytes copied, 0 if no byte is available.

See Also

StreamManipulator Class | StreamManipulator Members | ICSharpCode.SharpZipLib.Zip.Compression.Streams Namespace