53 references to ToInt32
csc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
dotnet (2)
Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
145int serializerId = BitConverter.ToInt32(_messageBuffer.GetBuffer(), 0);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26377.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
ILCompiler.Compiler (2)
Compiler\ObjectWriter\Dwarf\DwarfFde.cs (1)
59int cfiOffset = BitConverter.ToInt32(blobData, offset);
Compiler\TypePreinit.cs (1)
2427public override int AsInt32() => BitConverter.ToInt32(AsExactByteCount(4), 0);
ILCompiler.RyuJit (1)
JitInterface\CorInfoImpl.RyuJit.cs (1)
143int cfiOffset = BitConverter.ToInt32(blobData, offset);
Microsoft.AspNetCore.Antiforgery (1)
Internal\BinaryBlob.cs (1)
76return BitConverter.ToInt32(_data, 0);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
187var keyLength = BitConverter.ToInt32(keyLengthBuffer, 0);
Microsoft.Build.Framework (1)
BackEnd\CommunicationsUtilities.cs (1)
553result = HandshakeResult.Success(BitConverter.ToInt32(bytes, 0 /* start index */));
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\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\roslyn\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.Features (2)
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
59var uncompressedSize = BitConverter.ToInt32(embeddedTextBytes, 0);
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
50size = BitConverter.ToInt32(bytes, offset + 4);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
214int uncompressedSize = BitConverter.ToInt32(bytes, 0);
Microsoft.DotNet.Build.Tasks.Workloads (2)
Utils.cs (2)
136int timeLow = IPAddress.HostToNetworkOrder(BitConverter.ToInt32(namespaceBytes, 0)); 161timeLow = 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.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
CryptoRandom.cs (1)
28return BitConverter.ToInt32(_uint32Buffer, 0) & 0x7FFFFFFF;
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)
RepoTasks (2)
Uuid.cs (2)
28int timeLow = IPAddress.HostToNetworkOrder(BitConverter.ToInt32(namespaceBytes, 0)); 53timeLow = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(hash, 0));
rzc (1)
ServerProtocol\ServerRequest.cs (1)
129var 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.Data.OleDb (4)
System\Data\ProviderBase\DbBuffer.cs (4)
706buffer[0] = BitConverter.ToInt32(bits, 4); // low 707buffer[1] = BitConverter.ToInt32(bits, 8); // mid 708buffer[2] = BitConverter.ToInt32(bits, 12); // high 709if (0 != BitConverter.ToInt32(bits, 16))
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)
894readEvent.wd = BitConverter.ToInt32(_buffer, _bufferPos);
System.Private.CoreLib (2)
src\runtime\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));
System.Security.Cryptography (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (1)
329KeyBlobMagicNumber magic = (KeyBlobMagicNumber)BitConverter.ToInt32(dsaBlob, 0);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (1)
178KeyBlobMagicNumber magic = (KeyBlobMagicNumber)BitConverter.ToInt32(ecBlob, 0);
System\Security\Cryptography\CapiHelper.Windows.cs (2)
350impTypeReturn = BitConverter.ToInt32(impType, 0); 392permissionsReturn = BitConverter.ToInt32(permissions, 0);
vbc (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
129var length = BitConverter.ToInt32(lengthBuffer, 0);