Click or drag to resize

IPacketReaderPeek Method

Returns a new packet reader 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: 19.00.00
Syntax
C#
IPacketReader Peek(
	int length,
	string description
)

Parameters

length  Int32
The number of bytes to peek.
description  String
Printable packet/message/connection descrition.

Return Value

IPacketReader
A new packet reader containing the peeked data.
See Also