Returns a new packet pointing to the next length bytes, but does not advance the current packet position.
Implies Ensure(length).
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 18.03.00
Syntaxpublic IPacketReader Peek(
int length,
string description
)
Parameters
- length
- Type: SystemInt32
The number of bytes to peek. - description
- Type: SystemString
Printable packet/message/connection descrition.
Return Value
Type:
IPacketReaderA new PacketReader containing the peeked data.
Implements
IPacketReaderPeek(Int32, String)
See Also