Get a portion of the contents of the Binary as a byte array.

Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 12.1.2.0 (12.1.2.0)

Syntax

C#
public byte[] ToByteArray(
	int of,
	int cb
)

Parameters

of
Type: System..::..Int32
The beginning index, inclusive.
cb
Type: System..::..Int32
The number of bytes to include in the resulting byte array.

Return Value

A byte array containing the specified portion of this Binary.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException If of or cb is negative, or
CopyC#
of + cb
is larger than the length of this Binary.

See Also