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

◆ ToUInt16() [2/2]

static ushort System.BitConverter.ToUInt16 ( ReadOnlySpan< byte > value)
inlinestatic

Definition at line 309 of file BitConverter.cs.

310 {
311 if (value.Length < 2)
312 {
313 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
314 }
315 return Unsafe.ReadUnaligned<ushort>(ref MemoryMarshal.GetReference(value));
316 }

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