Click or drag to resize

NetDataWriterPutNullableUnmanagedT Method

Writes a nullable value of type T into the internal byte buffer at the current position, first writing a Boolean indicating whether the value is present, and then writing the value itself if it exists.
Advances the position by 1 byte for the presence flag plus the size of T if the value is present.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public void PutNullableUnmanaged<T>(
	T? value
)
where T : struct, new()

Parameters

value  NullableT
The nullable value to write into the buffer. If , only a flag is written.

Type Parameters

T
An unmanaged value type to write into the buffer.
See Also