Click or drag to resize

NetDataWriterReset(Int32) Method

Resets the _position to 0 and ensures the internal buffer has at least the specified size.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public void Reset(
	int size
)

Parameters

size  Int32
The minimum capacity required for the internal buffer.
Remarks
If the current buffer is smaller than size, ResizeIfNeed(Int32) will allocate a larger Byte array.
See Also