Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
BinaryMemoryStream..::.SetLength Method
BinaryMemoryStream Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Sets the length of the current stream to the specified value.

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

# Syntax

C#
    public override void SetLength(
    	long value
    )

#### Parameters

value
  Type: System..::.Int64
  The value at which to set the length.

# Exceptions

Exception | Condition
--- | ---
System..::.NotSupportedException | The current stream is not resizable and value is larger than the current capacity or the current stream does not support writing.
System..::.ArgumentOutOfRangeException | Value is negative or is greater than the maximum length of the stream, where the maximum length is (System.Int32.MaxValue - origin), and origin is the index into the underlying buffer at which the stream starts.

# See Also

BinaryMemoryStream Class
Tangosol.Util Namespace