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

◆ ToInt32() [2/2]

static int System.BitConverter.ToInt32 ( ReadOnlySpan< byte > value)
inlinestatic

Definition at line 265 of file BitConverter.cs.

266 {
267 if (value.Length < 4)
268 {
269 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
270 }
271 return Unsafe.ReadUnaligned<int>(ref MemoryMarshal.GetReference(value));
272 }

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