Click or drag to resize

NetDataWriterPutSpanT Method

Serializes a SpanT of unmanaged values to 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 void PutSpan<T>(
	Span<T> span
)
where T : struct, new()

Parameters

span  SpanT
The span of data to write.

Type Parameters

T
The unmanaged type of the span elements.
Remarks
Writes a 2-byte UInt16 length header followed by the raw binary data.
See Also