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)
ParameterType描述
缓冲区System::ArrayPtr<uint8_t>用于读取的缓冲区
offsetintbuffer 中的 0 基偏移,指示从何处开始写入读取的数据位置
countint要读取的字节数
回调System::AsyncCallback操作完成时要调用的回调。
状态System::SharedPtr<System::Object>用于唯一标识每个异步读取操作的用户提供数据。

ReturnValue

一个表示已启动的异步读取操作的 IAsyncResult 对象

另见