NetDataWriterEnsureFit Method |
Ensures the internal buffer can accommodate
additionalSize more
Bytes.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic 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