PacketReaderConsume Method |
Returns a new packet pointing to the next length bytes, and advances the current packet position.
Implies Ensure(length).
Namespace: Demo3D.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic IPacketReader Consume(
int length,
string description
)
Parameters
- length Int32
- The number of bytes to consume.
- description String
- Printable packet/message/connection descrition.
Return Value
IPacketReaderA new PacketReader containing the consumed data.
Implements
IPacketReaderConsume(Int32, String)
See Also