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

◆ ToInt16() [2/2]

static short System.BitConverter.ToInt16 ( ReadOnlySpan< byte > value)
inlinestatic

Definition at line 238 of file BitConverter.cs.

239 {
240 if (value.Length < 2)
241 {
242 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
243 }
244 return Unsafe.ReadUnaligned<short>(ref MemoryMarshal.GetReference(value));
245 }

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