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

◆ ToInt32() [1/2]

static int System.BitConverter.ToInt32 ( byte[] value,
int startIndex )
inlinestatic

Definition at line 247 of file BitConverter.cs.

248 {
249 if (value == null)
250 {
251 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value);
252 }
253 if ((uint)startIndex >= (uint)value.Length)
254 {
255 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
256 }
257 if (startIndex > value.Length - 4)
258 {
259 ThrowHelper.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall, ExceptionArgument.value);
260 }
261 return Unsafe.ReadUnaligned<int>(ref value[startIndex]);
262 }

References System.startIndex, System.ThrowHelper.ThrowArgumentException(), System.ThrowHelper.ThrowArgumentNullException(), System.ThrowHelper.ThrowArgumentOutOfRangeException(), and System.value.

Referenced by Terraria.Social.WeGame.IPCMessage.BuildFrom(), System.Net.WebSockets.ManagedWebSocket.CombineMaskBytes(), System.Security.Cryptography.ECCng.ExportNamedCurveParameters(), System.Security.Cryptography.DSAImplementation.DSACng.ExportParameters(), System.Security.Cryptography.DSACng.ExportParameters(), System.Security.Cryptography.RSAImplementation.RSACng.ExportParameters(), System.Security.Cryptography.RSACng.ExportParameters(), System.Security.Cryptography.ECCng.ExportPrimeCurveParameters(), Internal.Cryptography.Helpers.GetPropertyAsDword(), Internal.NativeCrypto.CapiHelper.GetProviderParameter(), Internal.NativeCrypto.CapiHelper.GetProviderParameterWorker(), System.Net.Security.NegotiateStream.ReadAsync< TAdapter >(), System.Net.Sockets.IOControlKeepAlive.Set(), System.BitConverter.ToSingle(), and System.BitConverter.ToUInt32().