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

◆ ToSingle() [2/2]

static float System.BitConverter.ToSingle ( ReadOnlySpan< byte > value)
inlinestatic

Definition at line 373 of file BitConverter.cs.

374 {
375 if (value.Length < 4)
376 {
377 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
378 }
379 return Unsafe.ReadUnaligned<float>(ref MemoryMarshal.GetReference(value));
380 }

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