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: 10.0.0.0 (10.0.0.0)
Syntaxpublic PacketReader Consume(
int length
)
Parameters
- length
- Type: SystemInt32
The number of bytes to consume.
Return Value
Type:
PacketReaderA new PacketReader containing the consumed data.
See Also