Shared Cache is high performance distributed and replication cache system built for .Net applications running in server farms.
Copies 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.

Namespace:  SharedCache.WinServiceCommon.SharpZipLib.Zip.Compression.Streams
Assembly:  SharedCache.WinServiceCommon (in SharedCache.WinServiceCommon.dll) Version: 3.0.5.1 (3.0.5.1)

Syntax

C#
public int CopyBytes(
	byte[] output,
	int offset,
	int length
)
Visual Basic (Declaration)
Public Function CopyBytes ( _
	output As Byte(), _
	offset As Integer, _
	length As Integer _
) As Integer
Visual C++
public:
int CopyBytes(
	array<unsigned char>^ output, 
	int offset, 
	int length
)

Parameters

output
Type: array< System..::.Byte >[]()[]
The buffer to copy bytes to.
offset
Type: System..::.Int32
The offset in the buffer at which copying starts
length
Type: System..::.Int32
The length to copy, 0 is allowed.

Return Value

The number of bytes copied, 0 if no bytes were available.

Remarks

[Missing <remarks> documentation for "M:SharedCache.WinServiceCommon.SharpZipLib.Zip.Compression.Streams.StreamManipulator.CopyBytes(System.Byte[],System.Int32,System.Int32)"]

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeException Length is less than zero
System..::.InvalidOperationException Bit buffer isnt byte aligned

See Also