Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToHalf() [2/2]

static unsafe Half System.BitConverter.ToHalf ( ReadOnlySpan< byte > value)
inlinestatic

Definition at line 358 of file BitConverter.cs.

359 {
360 if (value.Length < sizeof(Half))
361 {
362 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
363 }
364 return Unsafe.ReadUnaligned<Half>(ref MemoryMarshal.GetReference(value));
365 }

References System.ThrowHelper.ThrowArgumentOutOfRangeException(), and System.value.