Click or drag to resize

IBaseTransportReadAsync Method (Byte, Int32, Int32)

Read data from the transport into the buffer

Namespace:  Crosser.Common.Server.Transport
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
Task<int> ReadAsync(
	byte[] buffer,
	int offset,
	int length
)

Parameters

buffer
Type: SystemByte
The buffer to write into
offset
Type: SystemInt32
Position to start writing on in the buffer
length
Type: SystemInt32
The maximum length to read from the transport

Return Value

Type: TaskInt32
Task with the number of bytes that was written into the buffer
See Also