Click or drag to resize

NetDataReaderGetNullableUnmanagedT Method

Reads a nullable value of type T from the internal byte buffer at the current position, first reading a Boolean indicating whether the value is present, and then reading 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 T? GetNullableUnmanaged<T>()
where T : struct, new()

Type Parameters

T
An unmanaged value type to read from the buffer.

Return Value

NullableT
The nullable value of type T read from the buffer. Returns if the presence flag indicates no value.
Exceptions
ExceptionCondition
IndexOutOfRangeException
See Also