System::IO::Stream::BeginRead メソッド

Stream::BeginRead method

非同期読み取り操作を開始します。

virtual System::SharedPtr<System::IAsyncResult> System::IO::Stream::BeginRead(System::ArrayPtr<uint8_t> buffer, int offset, int count, System::AsyncCallback callback, System::SharedPtr<System::Object> state)
パラメーター説明
バッファSystem::ArrayPtr<uint8_t>読み取り先のバッファ
offsetintbuffer 内の 0 ベースオフセットで、読み取ったデータの書き込み開始位置を示します。
countint読み取るバイト数
コールバックSystem::AsyncCallback操作が完了したときに呼び出されるコールバック
状態System::SharedPtr<System::Object>各非同期読み取り操作を一意に識別するためにユーザーが提供するデータ

ReturnValue

開始された非同期読み取り操作を表すIAsyncResultオブジェクト

参照