System::IO::Stream::BeginRead method

Stream::BeginRead method

Initiates an asynchronous read operation.

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)
ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>A buffer to read to
offsetintA 0-based offset in buffer indicating the position from which to start writing the read data
countintThe number of bytes to read
callbackSystem::AsyncCallbackA callback to be called when the operation completes
stateSystem::SharedPtr<System::Object>User-provided data used to uniquely identify each asynchronous read operation

ReturnValue

An IAsyncResult object representing the initiated asynchronous read operation

See Also