BinaryMemoryStreamSetLength Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Sets the length of the current stream to the specified value.
Namespace:
Tangosol.Util
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic override void SetLength(
long value
)
Parameters
- value
- Type: SystemInt64
The value at which to set the length.
ExceptionsException | Condition |
---|
NotSupportedException |
The current stream is not resizable and value is larger than the
current capacity or the current stream does not support writing.
|
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