MultiBufferMemoryStream Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a multi-buffer stream whose backing store is memory.
public class MultiBufferMemoryStream : System.IO.Stream
type MultiBufferMemoryStream = class
inherit Stream
Public Class MultiBufferMemoryStream
Inherits Stream
- Inheritance
-
MultiBufferMemoryStream
Constructors
MultiBufferMemoryStream(IBufferManager, Int32) |
Initializes a new instance of the MultiBufferMemoryStream class with the specified buffer manager. |
Properties
CanRead |
Gets a value indicating whether the current stream supports reading. |
CanSeek |
Gets a value indicating whether the current stream supports seeking. |
CanWrite |
Gets a value indicating whether the current stream supports writing. |
Length |
Gets the length in bytes of the stream. |
Position |
Gets or sets the position within the current stream. |
Methods
BeginFastCopyTo(Stream, Nullable<DateTime>, AsyncCallback, Object) |
Begins an asynchronous fast-copy operation. |
BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) |
Begins an asynchronous read operation. |
BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) |
Begins an asynchronous write operation. |
ComputeCRC64Hash() |
Computes the hash value for this stream. |
ComputeMD5Hash() |
Computes the hash value for this stream. |
Dispose(Boolean) |
Releases all resources used by the MultiBufferMemoryStream. |
EndFastCopyTo(IAsyncResult) |
Ends an asynchronous copy operation. |
EndRead(IAsyncResult) |
Waits for the pending asynchronous read to complete. |
EndWrite(IAsyncResult) |
Ends an asynchronous write operation. |
FastCopyTo(Stream, Nullable<DateTime>) |
Reads the bytes from the current stream and writes them to another stream. This method writes directly to the destination stream, rather than copying the data into a temporary buffer. |
FastCopyToAsync(Stream, Nullable<DateTime>, CancellationToken) |
Reads the bytes from the current stream and writes them to another stream. This method writes directly to the destination stream, rather than copying the data into a temporary buffer. |
Flush() |
Does not perform any operation, as the stream is an in-memory stream. |
Read(Byte[], Int32, Int32) |
Reads a block of bytes from the current stream and writes the data to a buffer. |
Seek(Int64, SeekOrigin) |
Sets the position within the current stream. |
SetLength(Int64) |
Sets the length of the current stream. |
Write(Byte[], Int32, Int32) |
Writes a block of bytes to the current stream using data read from a buffer. |