Demo3D 2022 API Documentation
Demo3D 2022 API Documentation
Demo3D Namespaces
Demo3D.IO Namespaces
Demo3D.IO
PacketReader Class
PacketReader Methods
Close Method
Consume Method
Create Method
EnsureAsync Method
MarkPosition Method
Peek Method
Prune Method
PacketReader
Consume 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#
Copy
public
IPacketReader
Consume
(
int
length
,
string
description
)
Parameters
length
Type:
System
Int32
The number of bytes to consume.
description
Type:
System
String
Printable packet/message/connection descrition.
Return Value
Type:
IPacketReader
A new PacketReader containing the consumed data.
Implements
IPacketReader
Consume(Int32, String)
See Also
Reference
PacketReader Class
Demo3D.IO Namespace
© Emulate3D Ltd. All rights reserved.
Send comments on this topic to
support@demo3d.com