Click or drag to resize

NetDataWriterEnsureFit Method

Ensures the internal buffer can accommodate additionalSize more Bytes.

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

Parameters

additionalSize  Int32
The number of additional Bytes to fit.
Remarks
This checks against the current _position. If the capacity is insufficient, the buffer grows to either the required size or doubles its current size.
See Also