NetDataReaderTryGetUnmanagedT Method |
Attempts to read a value of type T from the internal byte buffer at the current position,
advancing the position by the size of T if successful.
Namespace: LiteNetLib.UtilsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic bool TryGetUnmanaged<T>(
out T result
)
where T : struct, new()
Parameters
- result T
- When this method returns, contains the value read from the buffer, or the default value if the read failed.
Type Parameters
- T
- An unmanaged value type to read from the buffer.
Return Value
Boolean if enough data was available to read the value; otherwise,
.
See Also