Click or drag to resize

NetDataWriterResizeIfNeed Method

Ensures the internal buffer is at least newSize.

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

Parameters

newSize  Int32
The required minimum size of the buffer.
Remarks
If an allocation is necessary, the buffer grows to either newSize or doubles its current size, whichever is larger.
See Also