Click or drag to resize

NetDataReaderPeekRemainingBytes Method

Reads all remaining Bytes and returns them as a new array without advancing the reader _position.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public byte[] PeekRemainingBytes()

Return Value

Byte
A new Byte array containing the remaining data.
Remarks
This method performs a heap allocation by copying the data into a new array.
See Also