40 references to ToInt32
csc (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
76return 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.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.CodeAnalysis (2)
CodeGen\ILBuilderEmit.cs (1)
828int int32 = BitConverter.ToInt32(BitConverter.GetBytes(floatValue), 0);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
50size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
972int i2 = BitConverter.ToInt32(BitConverter.GetBytes(f), startIndex: 0);
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoReader.cs (1)
50size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
65var uncompressedSize = BitConverter.ToInt32(embeddedTextBytes, 0);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
50size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
210int 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)
967int trainingExamples = BitConverter.ToInt32(buffer, 0); 969int 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)
Replay (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
RepoTasks (2)
Uuid.cs (2)
28int timeLow = IPAddress.HostToNetworkOrder(BitConverter.ToInt32(namespaceBytes, 0)); 53timeLow = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(hash, 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.Drawing.Common (3)
System\Drawing\Icon.cs (2)
772int iconSignature1 = BitConverter.ToInt32(_iconData, (int)_bestImageOffset); 773int iconSignature2 = BitConverter.ToInt32(_iconData, (int)_bestImageOffset + 4);
System\Drawing\ImageInfo.cs (1)
68int delay = BitConverter.ToInt32(values, i) * 10;
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
885readEvent.wd = BitConverter.ToInt32(_buffer, _bufferPos);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
637public static uint ToUInt32(byte[] value, int startIndex) => unchecked((uint)ToInt32(value, startIndex)); 786public static float ToSingle(byte[] value, int startIndex) => Int32BitsToSingle(ToInt32(value, startIndex));
vbc (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
VBCSCompiler (1)
src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);