Click or drag to resize

NetDataWriterPutArray(Array, Int32) Method

Serializes an Array prefixed with a 2-byte UInt16 length.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public void PutArray(
	Array arr,
	int sz
)

Parameters

arr  Array
The source array to serialize.
sz  Int32
The size of a single element in Bytes.
Remarks
If the array is , a length of 0 is written.
The total payload size is calculated as length * sz.
See Also