SyncMemoryStream Class

Definition

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[])

Initializes a new non-resizable instance of the SyncMemoryStream class based on the specified 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[], Int32, Int32)

Initializes a new non-resizable instance of the SyncMemoryStream class based on the specified region (index) of a 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.

Applies to