SyncMemoryStream 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.
This class provides APM Read/Write overrides for memory stream to improve performance.
public class SyncMemoryStream : System.IO.MemoryStream
type SyncMemoryStream = class
inherit MemoryStream
Public Class SyncMemoryStream
Inherits MemoryStream
- Inheritance
-
SyncMemoryStream
Constructors
SyncMemoryStream() |
Initializes a new instance of the SyncMemoryStream class with an expandable capacity initialized to zero. |
SyncMemoryStream(Byte[], Int32, Int32) |
Initializes a new non-resizable instance of the SyncMemoryStream class based on the specified region (index) of a byte array. |
SyncMemoryStream(Byte[], Int32) |
Initializes a new non-resizable instance of the SyncMemoryStream class based on the specified region (index) of a byte array. |
SyncMemoryStream(Byte[]) |
Initializes a new non-resizable instance of the SyncMemoryStream class based on the specified byte array. |
Methods
BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) |
Begins an asynchronous read operation. |
BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) |
Begins an asynchronous write operation. |
EndRead(IAsyncResult) |
Waits for the pending asynchronous read to complete. |
EndWrite(IAsyncResult) |
Ends an asynchronous write operation. |