System::Net::Sockets::NetworkStream::BeginWrite 方法

NetworkStream::BeginWrite method

启动异步写入操作。

System::SharedPtr<IAsyncResult> System::Net::Sockets::NetworkStream::BeginWrite(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, AsyncCallback callback, System::SharedPtr<Object> state) override
ParameterType描述
缓冲区System::ArrayPtr<uint8_t>包含待写入数据的缓冲区。
offsetint32_t指定数组中的字节偏移量。
sizeint32_t要写入的字节数。
回调AsyncCallback操作完成时将被调用的回调函数。
状态System::SharedPtr<Object>用户提供的数据,用于唯一标识每个异步写入操作。

ReturnValue

一个表示已启动的异步写入操作的 IAsyncResult 对象。

另见