System::Net::Sockets::NetworkStream::BeginRead method

NetworkStream::BeginRead method

Initiates an asynchronous read operation.

System::SharedPtr<IAsyncResult> System::Net::Sockets::NetworkStream::BeginRead(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, AsyncCallback callback, System::SharedPtr<Object> state) override
ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>The byte array where the read bytes will be written.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes to read.
callbackAsyncCallbackA callback to be called when the operation completes.
stateSystem::SharedPtr<Object>User-provided data used to uniquely identify each asynchronous read operation.

ReturnValue

An IAsyncResult object representing the initiated asynchronous read operation.

See Also