Whether the stream supports reading.
A measuring stream is not readable.
Whether the stream supports writing.
A measuring stream is always writable.
Whether the stream supports seeking.
A measuring stream is always seekable.
Whether I/O operations can time out.
The number of bytes that have been written to the stream.
The current position within the stream.
Since seeking is possible, the position may differ from the length, although typically it is the same.
Set the current position within the stream.
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.
Write bytes to the measuring stream.
Increments the position by the number of bytes written. If the updated position is greater than the current length, the length is updated to match the position.
The buffer to write.
The offset of the first byte to write.
The number of bytes to write.
Set the position within the stream.
The offset relative to origin.
The reference point used to obtain the new position.
The new position within the stream.
Flush the stream.
Dispose the stream.
Copy data from this stream to another stream.
The stream that will receive the copied data.
The temporary buffer size to use while copying.
Protectedthrow
A stream useful for measuring the amount of data written.
A measuring stream tracks the number of bytes written to it. This is useful when you need to know how large a message is without writing it to disk or a memory buffer.