Click or drag to resize

AutoResetStream.SetLength Method

When overridden in a derived class, sets the length of the current stream.

Namespace:  BionicCode.Utilities.Net.Standard.IO
Assembly:  BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
Syntax
public override void SetLength(
	long value
)

Parameters

value
Type: System.Int64
The desired length of the current stream in bytes.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md