NetDataWriterResizeIfNeed Method |
Ensures the internal buffer is at least newSize.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic 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