Click or drag to resize

NetDataWriterCopyData Method

Creates a Byte array containing the current data from the internal buffer.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public byte[] CopyData()

Return Value

Byte
A new Byte array of length _position.
Remarks
This method performs a heap allocation and copies the data using BlockCopy(Array, Int32, Array, Int32, Int32).
See Also