Create a growable memory stream.
Optionalinitial: Uint8Array<ArrayBufferLike>
Optional initial contents to copy into the stream.
Whether the stream supports reading.
Whether the stream supports writing.
Whether the stream supports seeking.
The length of the stream, in bytes.
The current position within the stream.
Set the current position within 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.
Release resources. Base implementation does nothing.
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.
ProtectedthrowRead bytes from the 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 stream.
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.
Set the length of the stream.
The desired length in bytes.
The stream's contents as a copy.
The copied stream contents.
Substrate shim for System.IO.MemoryStream: a growable, seekable in-memory stream used pervasively by tests and by ported code that buffers content.