MemoryStreamSetLength Method |
Sets the length of the current stream to the specified value.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic override void SetLength(
long value
)
Parameters
- value Int64
-
The value at which to set the length.
Exceptions| Exception | 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 CrestronIO.MemoryStream,
where the maximum length is(System.Int32.MaxValue - origin), and origin is
the index into the underlying buffer at which the stream starts.
|
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also