37 references to ToInt32
csc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
127var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
74return BitConverter.ToInt32(_data, 0);
Microsoft.AspNetCore.Antiforgery.Test (1)
BinaryBlobTest.cs (1)
115var expectedHashCode = BitConverter.ToInt32(blobData, 0);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
187var keyLength = BitConverter.ToInt32(keyLengthBuffer, 0);
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
580result = BitConverter.ToInt32(bytes, 0 /* start index */);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
127var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.CodeAnalysis (2)
CodeGen\ILBuilderEmit.cs (1)
774int int32 = BitConverter.ToInt32(BitConverter.GetBytes(floatValue), 0);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
48size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoReader.cs (1)
48size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
64var uncompressedSize = BitConverter.ToInt32(embeddedTextBytes, 0);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
48size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
209int uncompressedSize = BitConverter.ToInt32(bytes, 0);
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
284int uncompressedSize = BitConverter.ToInt32(bytes, 0);
Microsoft.DotNet.Build.Tasks.Workloads (2)
Utils.cs (2)
133int timeLow = IPAddress.HostToNetworkOrder(BitConverter.ToInt32(namespaceBytes, 0)); 158timeLow = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(hash, 0));
Microsoft.ML.FastTree (1)
Utils\ToByteArrayExtensions.cs (1)
105int a = BitConverter.ToInt32(buffer, position);
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
983int trainingExamples = BitConverter.ToInt32(buffer, 0); 985int featureFileRecordSize = sizeof(float) * BitConverter.ToInt32(buffer, 0);
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\VBMath.vb (4)
29rndSeed = BitConverter.ToInt32(BitConverter.GetBytes(Number), 0) 55lValue = BitConverter.ToInt32(BitConverter.GetBytes(sngTimer), 0) 79lValue = BitConverter.ToInt32(BitConverter.GetBytes(Number), 4) 81lValue = BitConverter.ToInt32(BitConverter.GetBytes(Number), 0)
MSBuild (1)
CommunicationsUtilities.cs (1)
580result = BitConverter.ToInt32(bytes, 0 /* start index */);
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
580result = BitConverter.ToInt32(bytes, 0 /* start index */);
Replay (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
127var length = BitConverter.ToInt32(lengthBuffer, 0);
System.Data.Odbc (7)
Common\System\Data\ProviderBase\DbBuffer.cs (4)
753buffer[0] = BitConverter.ToInt32(bits, 4); // low 754buffer[1] = BitConverter.ToInt32(bits, 8); // mid 755buffer[2] = BitConverter.ToInt32(bits, 12); // high 756if (0 != BitConverter.ToInt32(bits, 16))
System\Data\Odbc\OdbcConnection.cs (3)
425retval = BitConverter.ToInt32(buffer, 0); 466resultValue = BitConverter.ToInt32(buffer, 0); 474return BitConverter.ToInt32(buffer, 0);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
834readEvent.wd = BitConverter.ToInt32(_buffer, _bufferPos);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
608public static uint ToUInt32(byte[] value, int startIndex) => unchecked((uint)ToInt32(value, startIndex)); 732public static float ToSingle(byte[] value, int startIndex) => Int32BitsToSingle(ToInt32(value, startIndex));
vbc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
127var length = BitConverter.ToInt32(lengthBuffer, 0);
VBCSCompiler (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
127var length = BitConverter.ToInt32(lengthBuffer, 0);