Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
Binary..::.ToByteArray Method (Int32, Int32)
Binary Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Get a portion of the contents of the Binary as a byte array.

Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.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

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

# See Also

Binary Class
ToByteArray Overload
Tangosol.Util Namespace