Click or drag to resize

PacketReaderConsume Method

Returns a new packet pointing to the next length bytes, and advances the current packet position. Implies Ensure(length).

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public IPacketReader Consume(
	int length,
	string description
)

Parameters

length
Type: SystemInt32
The number of bytes to consume.
description
Type: SystemString
Printable packet/message/connection descrition.

Return Value

Type: IPacketReader
A new PacketReader containing the consumed data.

Implements

IPacketReaderConsume(Int32, String)
See Also