ZLibStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) メソッド

定義

非同期の書き込み操作を開始します。

public:
 override IAsyncResult ^ BeginWrite(cli::array <System::Byte> ^ buffer, int offset, int count, AsyncCallback ^ asyncCallback, System::Object ^ asyncState);
public override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback? asyncCallback, object? asyncState);
override this.BeginWrite : byte[] * int * int * AsyncCallback * obj -> IAsyncResult
Public Overrides Function BeginWrite (buffer As Byte(), offset As Integer, count As Integer, asyncCallback As AsyncCallback, asyncState As Object) As IAsyncResult

パラメーター

buffer
Byte[]

データの書き込み元となるバッファー。

offset
Int32

書き込むデータの開始位置を示す buffer 内のバイト オフセット。

count
Int32

書き込む最大バイト数。

asyncCallback
AsyncCallback

書き込みの操作完了時に呼び出されるオプションの非同期コールバック。

asyncState
Object

この特定の非同期書き込み要求を他の要求と区別するために使用するユーザー指定のオブジェクト。

戻り値

まだ保留中である可能性がある非同期の書き込み操作を表すオブジェクト。

例外

buffernullです。

offset が 0 未満です。

または

offsetcount は配列の範囲外でした。

- または -

countoffset から最後の buffer までの要素の数を超えています。

適用対象