Create a bounded stream.
If endBoundary is less than 0, then the end of the stream is unbounded.
The underlying stream.
The offset in the base stream that marks the start of this substream.
The offset in the base stream that marks the end of this substream.
Whether to leave baseStream open after this stream is disposed.
ReadonlybaseThe underlying stream.
All I/O is performed on the base stream.
ReadonlystartThe byte offset into baseStream that marks the beginning of the substream.
The byte offset into baseStream that marks the end of the substream, or -1 if unbound.
Whether the stream supports reading.
The bounded stream only supports reading if the underlying stream supports it.
Whether the stream supports writing.
The bounded stream only supports writing if the underlying stream supports it.
Whether the stream supports seeking.
The bounded stream only supports seeking if the underlying stream supports it.
Whether I/O operations can time out.
The length of the bounded stream, in bytes.
If endBoundary is non-negative, the length is endBoundary - startBoundary.
If the end is unbound, the length is based on the underlying stream length.
The current position within the bounded stream, relative to startBoundary.
Set the current position within the bounded stream.
Read bytes from the bounded stream.
The buffer to read data into.
The offset into the buffer to start reading data.
The number of bytes to read.
The total number of bytes read into the buffer, or zero if the end of the stream has been reached.
Write bytes to the bounded stream.
The buffer to write.
The offset of the first byte to write.
The number of bytes to write.
Set the position within the bounded stream.
The offset relative to origin.
The reference point used to obtain the new position.
The new position within the bounded stream.
Flush writes to the underlying stream.
Dispose the bounded stream, disposing the underlying stream unless leaveOpen was set.
Copy data from this stream to another stream.
The stream that will receive the copied data.
The temporary buffer size to use while copying.
Protected StaticvalidateValidate buffer, offset, and count arguments for stream read/write operations.
The buffer supplied by the caller.
The starting offset in the buffer.
The number of bytes to read or write.
Protectedthrow
A bounded stream confined to reading and writing data in a limited subset of an underlying stream.
Wraps an arbitrary stream, limiting I/O operations to a subset of the source stream. If endBoundary is
-1, then the end of the stream is unbound.