Click or drag to resize

BaseTransportReadAsync Method (Byte, Int32, Int32)

Overwrite this in your custom transport to read from the transport

Namespace:  Crosser.Server.Modules.Transport
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public abstract 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

Implements

IBaseTransportReadAsync(Byte, Int32, Int32)
See Also