Click or drag to resize

BaseTransportReadAsync Method (Byte, 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 = 0
)

Parameters

buffer
Type: SystemByte
The buffer to write into
offset (Optional)
Type: SystemInt32
Position to start writing on in the buffer

Return Value

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

Implements

IBaseTransportReadAsync(Byte, Int32)
See Also