1 instantiation of UInt32
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11915DefaultConstructor = delegate () { return new System.UInt32(); },
2464 references to UInt32
Aspire.Dashboard (2)
Otlp\Model\OtlpHelpers.cs (2)
162var difference = ((value & 0xF0U) << 4) + (value & 0x0FU) - 0x8989U; 163var packedResult = (((uint)-(int)difference & 0x7070U) >> 4) + difference + 0xB9B9U | 0x2020U;
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
446if (uint.TryParse(Environment.GetEnvironmentVariable(TimeoutEnvironmentKey), out var timeoutInSeconds))
csc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
323var length = BitConverter.ToUInt32(lengthBuffer, 0);
dotnet-svcutil-lib (39)
FrameworkFork\Microsoft.CodeDom\Compiler\IndentTextWriter.cs (1)
468public override void WriteLine(UInt32 value)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1328else if (e.Value is UInt32) 1330Output.Write(((UInt32)e.Value).ToString());
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
3293map[(int)BinXmlToken.XSD_UNSIGNEDINT] = typeof(UInt32); 4427private UInt32 GetUInt32(int pos) 4430return (UInt32)(data[pos] | data[pos + 1] << 8 | data[pos + 2] << 16 | data[pos + 3] << 24);
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
858if (type == typeof(UInt32)) return "uint";
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
1690return UInt32.TryParse(str, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out n);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
951if (value < (long)UInt32.MinValue || value > (long)UInt32.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
331else if (type == typeof(UInt32))
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
152WriteElementStringRaw(@"unsignedInt", @"", Microsoft.Xml.XmlConvert.ToString((System.UInt32)((System.UInt32)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
538AddPrimitive(typeof(UInt32), "unsignedInt", "UInt32", TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 634AddSoapEncodedPrimitive(typeof(UInt32), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
269type == typeof(UInt32) ||
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
361return typeof(UInt32); 425return typeof(UInt32); 773value = default(Nullable<UInt32>);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
314value = XmlConvert.ToString((UInt32)o);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
771public static string ToString(UInt32 value) 1094public static UInt32 ToUInt32(string s) 1096return UInt32.Parse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1100internal static Exception TryToUInt32(string s, out UInt32 result) 1102if (!UInt32.TryParse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ExtensionQuery.cs (2)
120if (value is UInt32) return (double)(UInt32)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\TypeCode.cs (1)
43else if (type == typeof(UInt32))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (5)
471internal UInt32 ReadElementContentAsUnsignedInt() 477private UInt32 ToUInt32(long value) 479if (value < UInt32.MinValue || value > UInt32.MaxValue) 483return (UInt32)value;
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (1)
442return (((Int64)idHigh) << 32) | ((UInt32)idLow);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (4)
389Int64 lo = (UInt32)ReadInt32(); 390Int64 hi = (UInt32)ReadInt32(); 1060Int64 lo = (UInt32)(((((b4 << 8) + b3) << 8) + b2) << 8) + b1; 1065Int64 hi = (UInt32)(((((b4 << 8) + b3) << 8) + b2) << 8) + b1;
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
140if (type == typeof(UInt32))
http2cat (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IIS.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IIS.LongTests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IIS.NewHandler.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IIS.NewShim.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IIS.ShadowCopy.Tests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
IISExpress.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
illink (2)
Metrics (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Metrics.Legacy (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (2)
462var lowSurrogate = (uintChar - 0x00010000) % 0x0400 + 0xDC00; 463var highSurrogate = (uintChar - 0x00010000) / 0x0400 + 0xD800;
Microsoft.AspNetCore.App.CodeFixes (70)
src\Shared\HashCode.cs (70)
87var hc1 = (uint)(value1?.GetHashCode() ?? 0); 89var hash = MixEmptyState(); 100var hc1 = (uint)(value1?.GetHashCode() ?? 0); 101var hc2 = (uint)(value2?.GetHashCode() ?? 0); 103var hash = MixEmptyState(); 115var hc1 = (uint)(value1?.GetHashCode() ?? 0); 116var hc2 = (uint)(value2?.GetHashCode() ?? 0); 117var hc3 = (uint)(value3?.GetHashCode() ?? 0); 119var hash = MixEmptyState(); 132var hc1 = (uint)(value1?.GetHashCode() ?? 0); 133var hc2 = (uint)(value2?.GetHashCode() ?? 0); 134var hc3 = (uint)(value3?.GetHashCode() ?? 0); 135var hc4 = (uint)(value4?.GetHashCode() ?? 0); 137Initialize(out var v1, out var v2, out var v3, out var v4); 144var hash = MixState(v1, v2, v3, v4); 153var hc1 = (uint)(value1?.GetHashCode() ?? 0); 154var hc2 = (uint)(value2?.GetHashCode() ?? 0); 155var hc3 = (uint)(value3?.GetHashCode() ?? 0); 156var hc4 = (uint)(value4?.GetHashCode() ?? 0); 157var hc5 = (uint)(value5?.GetHashCode() ?? 0); 159Initialize(out var v1, out var v2, out var v3, out var v4); 166var hash = MixState(v1, v2, v3, v4); 177var hc1 = (uint)(value1?.GetHashCode() ?? 0); 178var hc2 = (uint)(value2?.GetHashCode() ?? 0); 179var hc3 = (uint)(value3?.GetHashCode() ?? 0); 180var hc4 = (uint)(value4?.GetHashCode() ?? 0); 181var hc5 = (uint)(value5?.GetHashCode() ?? 0); 182var hc6 = (uint)(value6?.GetHashCode() ?? 0); 184Initialize(out var v1, out var v2, out var v3, out var v4); 191var hash = MixState(v1, v2, v3, v4); 203var hc1 = (uint)(value1?.GetHashCode() ?? 0); 204var hc2 = (uint)(value2?.GetHashCode() ?? 0); 205var hc3 = (uint)(value3?.GetHashCode() ?? 0); 206var hc4 = (uint)(value4?.GetHashCode() ?? 0); 207var hc5 = (uint)(value5?.GetHashCode() ?? 0); 208var hc6 = (uint)(value6?.GetHashCode() ?? 0); 209var hc7 = (uint)(value7?.GetHashCode() ?? 0); 211Initialize(out var v1, out var v2, out var v3, out var v4); 218var hash = MixState(v1, v2, v3, v4); 231var hc1 = (uint)(value1?.GetHashCode() ?? 0); 232var hc2 = (uint)(value2?.GetHashCode() ?? 0); 233var hc3 = (uint)(value3?.GetHashCode() ?? 0); 234var hc4 = (uint)(value4?.GetHashCode() ?? 0); 235var hc5 = (uint)(value5?.GetHashCode() ?? 0); 236var hc6 = (uint)(value6?.GetHashCode() ?? 0); 237var hc7 = (uint)(value7?.GetHashCode() ?? 0); 238var hc8 = (uint)(value8?.GetHashCode() ?? 0); 240Initialize(out var v1, out var v2, out var v3, out var v4); 252var hash = MixState(v1, v2, v3, v4); 335var val = (uint)value; 339var previousLength = _length++; 340var position = previousLength % 4; 374var length = _length; 379var position = length % 4; 384var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.AspNetCore.Components.Server (17)
src\SignalR\common\Shared\BinaryMessageParser.cs (1)
33var length = 0U;
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (2)
681var data32 = (UInt32)data64;
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (2)
186/// Reads an <see cref="UInt32"/> as big endian. 188/// <returns>False if there wasn't enough data for an <see cref="UInt32"/>.</returns>
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (12)
123/// Reads an <see cref="UInt32"/> value from: 130public UInt32 ReadUInt32() 138return checked((UInt32)byteResult); 141return checked((UInt32)sbyteResult); 144return checked((UInt32)ushortResult); 147return checked((UInt32)shortResult); 150return checked((UInt32)uintResult); 153return checked((UInt32)intResult); 156return checked((UInt32)ulongResult); 159return checked((UInt32)longResult); 163return checked((UInt32)unchecked((sbyte)code)); 168return (UInt32)code;
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RenderBatchWriterTest.cs (1)
360var result = (uint)0;
Microsoft.AspNetCore.DataProtection (10)
Cng\CbcAuthenticatedEncryptor.cs (5)
154var cbEncryptedData = checked(cbCiphertext - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _hmacAlgorithmDigestLengthInBytes)); 164var cbTempSubkeys = checked(_symmetricAlgorithmSubkeyLengthInBytes + _hmacAlgorithmSubkeyLengthInBytes); 306var cbTempSubkeys = checked(_symmetricAlgorithmSubkeyLengthInBytes + _hmacAlgorithmSubkeyLengthInBytes); 312var cbKeyModifierAndIV = checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes); 338var cbOutputCiphertext = GetCbcEncryptedOutputSizeWithPadding(symmetricKeyHandle, pbPlaintext, cbPlaintext);
Cng\CngGcmAuthenticatedEncryptor.cs (1)
127var cbPlaintext = checked(cbCiphertext - (KEY_MODIFIER_SIZE_IN_BYTES + NONCE_SIZE_IN_BYTES + TAG_SIZE_IN_BYTES));
Secret.cs (2)
140var numTotalBytesToAllocate = cbPlaintext; 141var numBytesPaddingRequired = CRYPTPROTECTMEMORY_BLOCK_SIZE - (numTotalBytesToAllocate % CRYPTPROTECTMEMORY_BLOCK_SIZE);
SP800_108\SP800_108_CTR_HMACSHA512Extensions.cs (1)
12var cbCombinedContext = checked((uint)contextHeader.Length + cbContext);
SP800_108\SP800_108_CTR_HMACSHA512Util.cs (1)
41var secretLengthInBytes = checked((uint)kdk.Length);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (70)
src\Shared\HashCode.cs (70)
87var hc1 = (uint)(value1?.GetHashCode() ?? 0); 89var hash = MixEmptyState(); 100var hc1 = (uint)(value1?.GetHashCode() ?? 0); 101var hc2 = (uint)(value2?.GetHashCode() ?? 0); 103var hash = MixEmptyState(); 115var hc1 = (uint)(value1?.GetHashCode() ?? 0); 116var hc2 = (uint)(value2?.GetHashCode() ?? 0); 117var hc3 = (uint)(value3?.GetHashCode() ?? 0); 119var hash = MixEmptyState(); 132var hc1 = (uint)(value1?.GetHashCode() ?? 0); 133var hc2 = (uint)(value2?.GetHashCode() ?? 0); 134var hc3 = (uint)(value3?.GetHashCode() ?? 0); 135var hc4 = (uint)(value4?.GetHashCode() ?? 0); 137Initialize(out var v1, out var v2, out var v3, out var v4); 144var hash = MixState(v1, v2, v3, v4); 153var hc1 = (uint)(value1?.GetHashCode() ?? 0); 154var hc2 = (uint)(value2?.GetHashCode() ?? 0); 155var hc3 = (uint)(value3?.GetHashCode() ?? 0); 156var hc4 = (uint)(value4?.GetHashCode() ?? 0); 157var hc5 = (uint)(value5?.GetHashCode() ?? 0); 159Initialize(out var v1, out var v2, out var v3, out var v4); 166var hash = MixState(v1, v2, v3, v4); 177var hc1 = (uint)(value1?.GetHashCode() ?? 0); 178var hc2 = (uint)(value2?.GetHashCode() ?? 0); 179var hc3 = (uint)(value3?.GetHashCode() ?? 0); 180var hc4 = (uint)(value4?.GetHashCode() ?? 0); 181var hc5 = (uint)(value5?.GetHashCode() ?? 0); 182var hc6 = (uint)(value6?.GetHashCode() ?? 0); 184Initialize(out var v1, out var v2, out var v3, out var v4); 191var hash = MixState(v1, v2, v3, v4); 203var hc1 = (uint)(value1?.GetHashCode() ?? 0); 204var hc2 = (uint)(value2?.GetHashCode() ?? 0); 205var hc3 = (uint)(value3?.GetHashCode() ?? 0); 206var hc4 = (uint)(value4?.GetHashCode() ?? 0); 207var hc5 = (uint)(value5?.GetHashCode() ?? 0); 208var hc6 = (uint)(value6?.GetHashCode() ?? 0); 209var hc7 = (uint)(value7?.GetHashCode() ?? 0); 211Initialize(out var v1, out var v2, out var v3, out var v4); 218var hash = MixState(v1, v2, v3, v4); 231var hc1 = (uint)(value1?.GetHashCode() ?? 0); 232var hc2 = (uint)(value2?.GetHashCode() ?? 0); 233var hc3 = (uint)(value3?.GetHashCode() ?? 0); 234var hc4 = (uint)(value4?.GetHashCode() ?? 0); 235var hc5 = (uint)(value5?.GetHashCode() ?? 0); 236var hc6 = (uint)(value6?.GetHashCode() ?? 0); 237var hc7 = (uint)(value7?.GetHashCode() ?? 0); 238var hc8 = (uint)(value8?.GetHashCode() ?? 0); 240Initialize(out var v1, out var v2, out var v3, out var v4); 252var hash = MixState(v1, v2, v3, v4); 335var val = (uint)value; 339var previousLength = _length++; 340var position = previousLength % 4; 374var length = _length; 379var position = length % 4; 384var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.AspNetCore.Http.ValidationsGenerator (70)
src\Shared\HashCode.cs (70)
87var hc1 = (uint)(value1?.GetHashCode() ?? 0); 89var hash = MixEmptyState(); 100var hc1 = (uint)(value1?.GetHashCode() ?? 0); 101var hc2 = (uint)(value2?.GetHashCode() ?? 0); 103var hash = MixEmptyState(); 115var hc1 = (uint)(value1?.GetHashCode() ?? 0); 116var hc2 = (uint)(value2?.GetHashCode() ?? 0); 117var hc3 = (uint)(value3?.GetHashCode() ?? 0); 119var hash = MixEmptyState(); 132var hc1 = (uint)(value1?.GetHashCode() ?? 0); 133var hc2 = (uint)(value2?.GetHashCode() ?? 0); 134var hc3 = (uint)(value3?.GetHashCode() ?? 0); 135var hc4 = (uint)(value4?.GetHashCode() ?? 0); 137Initialize(out var v1, out var v2, out var v3, out var v4); 144var hash = MixState(v1, v2, v3, v4); 153var hc1 = (uint)(value1?.GetHashCode() ?? 0); 154var hc2 = (uint)(value2?.GetHashCode() ?? 0); 155var hc3 = (uint)(value3?.GetHashCode() ?? 0); 156var hc4 = (uint)(value4?.GetHashCode() ?? 0); 157var hc5 = (uint)(value5?.GetHashCode() ?? 0); 159Initialize(out var v1, out var v2, out var v3, out var v4); 166var hash = MixState(v1, v2, v3, v4); 177var hc1 = (uint)(value1?.GetHashCode() ?? 0); 178var hc2 = (uint)(value2?.GetHashCode() ?? 0); 179var hc3 = (uint)(value3?.GetHashCode() ?? 0); 180var hc4 = (uint)(value4?.GetHashCode() ?? 0); 181var hc5 = (uint)(value5?.GetHashCode() ?? 0); 182var hc6 = (uint)(value6?.GetHashCode() ?? 0); 184Initialize(out var v1, out var v2, out var v3, out var v4); 191var hash = MixState(v1, v2, v3, v4); 203var hc1 = (uint)(value1?.GetHashCode() ?? 0); 204var hc2 = (uint)(value2?.GetHashCode() ?? 0); 205var hc3 = (uint)(value3?.GetHashCode() ?? 0); 206var hc4 = (uint)(value4?.GetHashCode() ?? 0); 207var hc5 = (uint)(value5?.GetHashCode() ?? 0); 208var hc6 = (uint)(value6?.GetHashCode() ?? 0); 209var hc7 = (uint)(value7?.GetHashCode() ?? 0); 211Initialize(out var v1, out var v2, out var v3, out var v4); 218var hash = MixState(v1, v2, v3, v4); 231var hc1 = (uint)(value1?.GetHashCode() ?? 0); 232var hc2 = (uint)(value2?.GetHashCode() ?? 0); 233var hc3 = (uint)(value3?.GetHashCode() ?? 0); 234var hc4 = (uint)(value4?.GetHashCode() ?? 0); 235var hc5 = (uint)(value5?.GetHashCode() ?? 0); 236var hc6 = (uint)(value6?.GetHashCode() ?? 0); 237var hc7 = (uint)(value7?.GetHashCode() ?? 0); 238var hc8 = (uint)(value8?.GetHashCode() ?? 0); 240Initialize(out var v1, out var v2, out var v3, out var v4); 252var hash = MixState(v1, v2, v3, v4); 335var val = (uint)value; 339var previousLength = _length++; 340var position = previousLength % 4; 374var length = _length; 379var position = length % 4; 384var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
43{ nameof(UInt32), "number" },
Microsoft.AspNetCore.OpenApi.SourceGenerators (70)
src\Shared\HashCode.cs (70)
87var hc1 = (uint)(value1?.GetHashCode() ?? 0); 89var hash = MixEmptyState(); 100var hc1 = (uint)(value1?.GetHashCode() ?? 0); 101var hc2 = (uint)(value2?.GetHashCode() ?? 0); 103var hash = MixEmptyState(); 115var hc1 = (uint)(value1?.GetHashCode() ?? 0); 116var hc2 = (uint)(value2?.GetHashCode() ?? 0); 117var hc3 = (uint)(value3?.GetHashCode() ?? 0); 119var hash = MixEmptyState(); 132var hc1 = (uint)(value1?.GetHashCode() ?? 0); 133var hc2 = (uint)(value2?.GetHashCode() ?? 0); 134var hc3 = (uint)(value3?.GetHashCode() ?? 0); 135var hc4 = (uint)(value4?.GetHashCode() ?? 0); 137Initialize(out var v1, out var v2, out var v3, out var v4); 144var hash = MixState(v1, v2, v3, v4); 153var hc1 = (uint)(value1?.GetHashCode() ?? 0); 154var hc2 = (uint)(value2?.GetHashCode() ?? 0); 155var hc3 = (uint)(value3?.GetHashCode() ?? 0); 156var hc4 = (uint)(value4?.GetHashCode() ?? 0); 157var hc5 = (uint)(value5?.GetHashCode() ?? 0); 159Initialize(out var v1, out var v2, out var v3, out var v4); 166var hash = MixState(v1, v2, v3, v4); 177var hc1 = (uint)(value1?.GetHashCode() ?? 0); 178var hc2 = (uint)(value2?.GetHashCode() ?? 0); 179var hc3 = (uint)(value3?.GetHashCode() ?? 0); 180var hc4 = (uint)(value4?.GetHashCode() ?? 0); 181var hc5 = (uint)(value5?.GetHashCode() ?? 0); 182var hc6 = (uint)(value6?.GetHashCode() ?? 0); 184Initialize(out var v1, out var v2, out var v3, out var v4); 191var hash = MixState(v1, v2, v3, v4); 203var hc1 = (uint)(value1?.GetHashCode() ?? 0); 204var hc2 = (uint)(value2?.GetHashCode() ?? 0); 205var hc3 = (uint)(value3?.GetHashCode() ?? 0); 206var hc4 = (uint)(value4?.GetHashCode() ?? 0); 207var hc5 = (uint)(value5?.GetHashCode() ?? 0); 208var hc6 = (uint)(value6?.GetHashCode() ?? 0); 209var hc7 = (uint)(value7?.GetHashCode() ?? 0); 211Initialize(out var v1, out var v2, out var v3, out var v4); 218var hash = MixState(v1, v2, v3, v4); 231var hc1 = (uint)(value1?.GetHashCode() ?? 0); 232var hc2 = (uint)(value2?.GetHashCode() ?? 0); 233var hc3 = (uint)(value3?.GetHashCode() ?? 0); 234var hc4 = (uint)(value4?.GetHashCode() ?? 0); 235var hc5 = (uint)(value5?.GetHashCode() ?? 0); 236var hc6 = (uint)(value6?.GetHashCode() ?? 0); 237var hc7 = (uint)(value7?.GetHashCode() ?? 0); 238var hc8 = (uint)(value8?.GetHashCode() ?? 0); 240Initialize(out var v1, out var v2, out var v3, out var v4); 252var hash = MixState(v1, v2, v3, v4); 335var val = (uint)value; 339var previousLength = _length++; 340var position = previousLength % 4; 374var length = _length; 379var position = length % 4; 384var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.AspNetCore.Server.HttpSys (13)
AsyncAcceptContext.cs (2)
48var statusCode = QueueBeginGetContext(); 96var statusCode = QueueBeginGetContext();
NativeInterop\RequestQueue.cs (1)
34var flags = 0u;
RequestProcessing\ClientCertLoader.cs (2)
153var size = CertBlobSize; 160var statusCode =
RequestProcessing\RequestContext.cs (2)
320var statusCode = HttpApi.HttpGetRequestProperty( 351var statusCode = HttpApi.HttpSetRequestProperty(Server.RequestQueue.Handle, Request.RequestId, HTTP_REQUEST_PROPERTY.HttpRequestPropertyStreamError, &streamError,
RequestProcessing\Response.cs (1)
383var flags = 0u;
RequestProcessing\ResponseBody.cs (4)
129var flags = ComputeLeftToWrite(data.Count, endOfRequest); 341var flags = ComputeLeftToWrite(data.Count); 464var flags = 0u; 663var flags = ComputeLeftToWrite(count.Value);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
18private UInt32 _flag0, _flag1;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (9)
Listener\ServerOnExistingQueueTests.cs (1)
243var statusCode = PInvoke.HttpCreateRequestQueue(
ServerTests.cs (1)
47var statusCode = PInvoke.HttpCreateRequestQueue(
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
Microsoft.AspNetCore.Server.IIS (8)
Core\IISEnvironmentFeature.cs (1)
32if (uint.TryParse(configuration["IIS_SITE_ID"], out var siteId))
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
392var protocol = protocolInfo->Protocol;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
18private UInt32 _flag0, _flag1;
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (4)
IISExpressDeployer.cs (1)
494WindowsNativeMethods.GetWindowThreadProcessId(ptr, out var windowProcessId);
ProcessTracker.cs (3)
97public UInt32 ActiveProcessLimit; 99public UInt32 PriorityClass; 100public UInt32 SchedulingClass;
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\HttpHeaders.cs (1)
576if (TryReadLowerCaseUInt32(byteValue, out var result32) && result32 == chunkedEnd)
Internal\Http\HttpHeaders.Generated.cs (2)
7541var firstTerm4 = (ReadUnalignedLittleEndian_uint(ref nameStart) & 0xdfdfdfdfu); 7576var firstTerm6 = (ReadUnalignedLittleEndian_uint(ref nameStart) & 0xdfdfdfdfu);
Internal\Http2\Http2Connection.cs (3)
171var connectionWindow = (uint)http2Limits.InitialConnectionWindowSize; 1010var previousMaxFrameSize = _clientSettings.MaxFrameSize; 1479var maxStreams = MaxTrackedStreams;
Internal\Infrastructure\HttpUtilities.cs (1)
283var index = PerfectHash(value);
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
BinaryPrimitivesBenchmark.cs (2)
25var v = 0u; 36var v = 0u;
Microsoft.AspNetCore.Session (1)
SipHash.cs (1)
39var left = inlen & 7;
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
392var protocol = protocolInfo->Protocol;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
18private UInt32 _flag0, _flag1;
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
146var val = (uint)number; 147var tens = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028 155var val = (uint)number; 156var digit0 = (uint)(byte)((val * 41u) >> 12); // div100, valid to 1098 157var digits01 = (uint)(byte)((val * 205u) >> 11); // div10, valid to 1028
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
244var value = BinaryPrimitives.ReadUInt32BigEndian(payload.Slice(2));
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
46var value = setting.Value;
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\SignalR\common\Shared\BinaryMessageParser.cs (1)
33var length = 0U;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\SignalR\common\Shared\BinaryMessageParser.cs (1)
33var length = 0U;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\BinaryMessageParser.cs (1)
33var length = 0U;
Microsoft.Build (4)
BackEnd\Components\Logging\LoggingService.cs (1)
320if (UInt32.TryParse(queueCapacityEnvironment, out uint localQueueCapacity))
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
Resources\Constants.cs (1)
355availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32)));
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
496matcherOpt = TryCreateSectionNameMatcher($"{{0..{UInt32.MaxValue}}}");
Microsoft.Build.Engine.OM.UnitTests (26)
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (8)
16using ImportedLinksMap = LinkedObjectsMap<System.UInt32>; 112public UInt32 HostCollectionId => this.OwningCollection.CollectionId; 139UInt32 LocalId { get; } 151private Dictionary<UInt32, ExternalConnection> imported = new Dictionary<UInt32, ExternalConnection>(); 156this.CollectionId = (UInt32)Interlocked.Increment(ref _collecitonId); 179public UInt32 CollectionId { get; } 215Dictionary<UInt32, ExternalConnection> newMap = new Dictionary<uint, ExternalConnection>(imported);
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (16)
14private static UInt32 nextCollectionId = 0; 15private UInt32 nextLocalId = 0; 34private static Dictionary<UInt32, LinkedObjectsMap<KeyType>> collections = new Dictionary<UInt32, LinkedObjectsMap<KeyType>>(); 36private Dictionary<UInt32, WeakHolder> activeLinks = new Dictionary<UInt32, WeakHolder>(); 40private static void Remove(UInt32 collectionId, UInt32 id) 89private void AddUnderLock(LinkedObject ro, Action<UInt32> setter) 104private LinkedObject GetOrAdd(LinkedObject ro, Action<UInt32> setter) 123private LinkedObjectsMap(UInt32 id) 127private UInt32 CollectionId { get; set; } 143public void GetActive<SourceType>(UInt32 localId, out SourceType active) 261private UInt32 CollectionId { get; set; } 263public UInt32 LocalId { get; private set; } 284public UInt32 LocalLinkId { get; private set; }
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TargetUpToDateChecker_Tests.cs (1)
1008private static extern bool CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, UInt32 dwFlags);
Microsoft.Build.Framework (7)
HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
SegmentedDictionary`2.cs (6)
341var hashCode = (uint)key.GetHashCode(); 409var hashCode = (uint)comparer.GetHashCode(key); 485var hashCode = (uint)((SupportsComparerDevirtualization && comparer == null) ? key.GetHashCode() : comparer.GetHashCode(key)); 689var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode()); 761var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode()); 989var hashCode = oldEntries[i]._hashCode; // At this point, we know we have entries.
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
323var length = BitConverter.ToUInt32(lengthBuffer, 0);
Vbc.cs (1)
368uint baseAddressDecimal = UInt32.Parse(originalBaseAddress, CultureInfo.InvariantCulture);
Microsoft.Build.Tasks.Core (53)
AssemblyDependency\AssemblyInformation.cs (10)
1018var peHeaderOffset = sr.ReadUInt32(); 1036var peHeaderBase = peHeaderOffset + 4; 1052var optionalHeaderOffset = peHeaderBase + PEHeaderSize; 1078var cliHeaderRva = sr.ReadUInt32(); 1094var sectionOffset = optionalHeaderOffset + optionalPEHeaderSize; 1105var sectionSize = sr.ReadUInt32(); 1106var sectionRva = sr.ReadUInt32(); 1108var sectionDataOffset = sr.ReadUInt32(); 1132var metadataRva = sr.ReadUInt32(); 1134var metadataOffset = RvaToOffset(sections, metadataRva);
AssemblyDependency\ReferenceTable.cs (1)
3007UInt32 peHeader = reader.ReadUInt32();
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
ManifestUtil\NativeMethods.cs (2)
13public const UInt32 LOAD_LIBRARY_AS_DATAFILE = 0x00000002; 16public static extern IntPtr LoadLibraryExW(string strFileName, IntPtr hFile, UInt32 ulFlags);
NativeMethods.cs (38)
99object DefineScope([In] ref Guid rclsid, [In] UInt32 dwCreateFlags, [In] ref Guid riid); 102object OpenScope([In][MarshalAs(UnmanagedType.LPWStr)] string szScope, [In] UInt32 dwOpenFlags, [In] ref Guid riid); 105object OpenScopeOnMemory([In] IntPtr pData, [In] UInt32 cbData, [In] UInt32 dwOpenFlags, [In] ref Guid riid); 117void CountEnum(IntPtr iRef, ref UInt32 ulCount); 243int GetCustomAttributeByName(UInt32 mdTokenObj, [MarshalAs(UnmanagedType.LPWStr)] string szName, out IntPtr ppData, out uint pDataSize); 253void GetPEKind(out UInt32 pdwPEKind, out UInt32 pdwMachine); 254void GetVersionString([MarshalAs(UnmanagedType.LPArray)] char[] pwzBuf, UInt32 ccBufSize, out UInt32 pccBufSize); 272void GetAssemblyProps(UInt32 mdAsm, out IntPtr pPublicKeyPtr, out UInt32 ucbPublicKeyPtr, out UInt32 uHashAlg, [MarshalAs(UnmanagedType.LPArray)] char[] strName, UInt32 cchNameIn, out UInt32 cchNameRequired, IntPtr amdInfo, out UInt32 dwFlags); 273void GetAssemblyRefProps(UInt32 mdAsmRef, out IntPtr ppbPublicKeyOrToken, out UInt32 pcbPublicKeyOrToken, [MarshalAs(UnmanagedType.LPArray)] char[] strName, UInt32 cchNameIn, out UInt32 pchNameOut, IntPtr amdInfo, out IntPtr ppbHashValue, out UInt32 pcbHashValue, out UInt32 pdwAssemblyRefFlags); 274void GetFileProps([In] UInt32 mdFile, [MarshalAs(UnmanagedType.LPArray)] char[] strName, UInt32 cchName, out UInt32 cchNameRequired, out IntPtr bHashData, out UInt32 cchHashBytes, out UInt32 dwFileFlags); 277void EnumAssemblyRefs([In, Out] ref IntPtr phEnum, [MarshalAs(UnmanagedType.LPArray), Out] UInt32[] asmRefs, UInt32 asmRefCount, out UInt32 iFetched); 278void EnumFiles([In, Out] ref IntPtr phEnum, [MarshalAs(UnmanagedType.LPArray), Out] UInt32[] fileRefs, UInt32 fileRefCount, out UInt32 iFetched); 281void GetAssemblyFromScope(out UInt32 mdAsm); 332public UInt32 cchLocale; 334public UInt32 cProcessors; 336public UInt32 cOses; 993var driveMask = GetLogicalDrives();
Microsoft.Build.Utilities.Core (2)
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
Microsoft.CodeAnalysis (83)
CodeGen\ILBuilderEmit.cs (2)
67var token = Cci.MetadataWriter.GetRawToken(Cci.MetadataWriter.RawTokenEncoding.GreatestMethodDefinitionRowId, 0); 79var token = Cci.MetadataWriter.GetRawToken(Cci.MetadataWriter.RawTokenEncoding.DocumentRowId, module?.GetSourceDocumentIndexForIL(document) ?? 0xFFFF);
CodeGen\Win32Res.cs (7)
10using DWORD = System.UInt32; 17private readonly DWORD _codePage; 18private readonly DWORD _languageId; 26DWORD codePage, 27DWORD languageId, 50public DWORD LanguageId => _languageId; 52public DWORD CodePage => _codePage;
Compilation\Compilation.cs (6)
1968writer.Write((UInt32)0); 1969writer.Write((UInt32)0x20); 1974writer.Write((UInt32)0); //DataVersion 1977writer.Write((UInt32)0); //Version 1978writer.Write((UInt32)0); //Characteristics 1995var initial32Bits = reader.ReadUInt32();
ConstantValue.cs (2)
201public static ConstantValue Create(UInt32 value) 257public static ConstantValue CreateNativeUInt(UInt32 value)
CvtRes.cs (51)
13using DWORD = System.UInt32; 26internal DWORD DataSize; // size of data without header 27internal DWORD HeaderSize; // Length of the header 30internal DWORD DataVersion; // version of data struct 33internal DWORD Version; // Version of the resource data 34internal DWORD Characteristics; // Characteristics of the data 59var initial32Bits = reader.ReadUInt32(); 73var cbData = reader.ReadUInt32(); 74var cbHdr = reader.ReadUInt32(); 76if (cbHdr < 2 * sizeof(DWORD)) 86stream.Position += cbHdr - 2 * sizeof(DWORD); 274var symValue = reader.ReadUInt32(); 311internal DWORD dwBytesInRes; 312internal DWORD dwImageOffset; 396resWriter.Write((DWORD)iconDirEntries[i].dwBytesInRes); 397resWriter.Write((DWORD)0x00000020); 404resWriter.Write((DWORD)0x00000000); 407resWriter.Write((DWORD)0x00000000); 408resWriter.Write((DWORD)0x00000000); 442resWriter.Write((DWORD)(3 * sizeof(WORD) + count * /*sizeof(ICONRESDIR)*/ 14)); 443resWriter.Write((DWORD)0x00000020); 448resWriter.Write((DWORD)0x00000000); 451resWriter.Write((DWORD)0x00000000); 452resWriter.Write((DWORD)0x00000000); 467resWriter.Write((DWORD)iconDirEntries[i].dwBytesInRes); 516const DWORD RT_VERSION = 16; 535resWriter.Write((DWORD)dataSize); //data size 536resWriter.Write((DWORD)headerSize); //header size 541resWriter.Write((DWORD)0x00000000); //data version 544resWriter.Write((DWORD)0x00000000); //version 545resWriter.Write((DWORD)0x00000000); //characteristics 558resWriter.Write((DWORD)(manifestStream.Length)); //data size 559resWriter.Write((DWORD)0x00000020); //header size 564resWriter.Write((DWORD)0x00000000); //data version 567resWriter.Write((DWORD)0x00000000); //version 568resWriter.Write((DWORD)0x00000000); //characteristics 592private const DWORD CP_WINUNICODE = 1200; 594private const ushort sizeVS_FIXEDFILEINFO = sizeof(DWORD) * 13; 650writer.Write((DWORD)0xFEEF04BD); 651writer.Write((DWORD)0x00010000); 652writer.Write((DWORD)((uint)fileVersion.Major << 16) | (uint)fileVersion.Minor); 653writer.Write((DWORD)((uint)fileVersion.Build << 16) | (uint)fileVersion.Revision); 654writer.Write((DWORD)((uint)productVersion.Major << 16) | (uint)productVersion.Minor); 655writer.Write((DWORD)((uint)productVersion.Build << 16) | (uint)productVersion.Revision); 656writer.Write((DWORD)0x0000003F); //VS_FFI_FILEFLAGSMASK (EDMAURER) really? all these bits are valid? 657writer.Write((DWORD)0); //file flags 658writer.Write((DWORD)0x00000004); //VOS__WINDOWS32 659writer.Write((DWORD)this.FileType); 660writer.Write((DWORD)0); //file subtype 661writer.Write((DWORD)0); //date most sig 662writer.Write((DWORD)0); //date least sig
InternalUtilities\LittleEndianReader.cs (1)
25var result = ReadUInt32LittleEndian(_span);
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
StrongName\CryptoBlobParser.cs (7)
101var sigAlgId = blobReader.ReadUInt32(); 103var hashAlgId = blobReader.ReadUInt32(); 105var publicKeySize = blobReader.ReadUInt32(); 146private const UInt32 RSA1 = 0x31415352; 147private const UInt32 RSA2 = 0x32415352; 220var bitLen = br.ReadUInt32(); // Bit Length for Modulus 221var pubExp = br.ReadUInt32(); // Exponent
Microsoft.CodeAnalysis.Analyzers (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.CodeAnalysis.AnalyzerUtilities (72)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (2)
63var maxInterproceduralMethodCallChain = analyzerOptions.GetUnsignedIntegralOptionValue( 70var maxInterproceduralLambdaOrLocalFunctionCallChain = analyzerOptions.GetUnsignedIntegralOptionValue(
Microsoft.CodeAnalysis.BannedApiAnalyzers (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.CodeAnalysis.CodeStyle (7)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.Collections.Package (7)
Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.CSharp (4)
Parser\Lexer.cs (2)
1097else if (val <= UInt32.MaxValue) 1122if (val <= UInt32.MaxValue)
Utilities\ValueSetFactory.NuintValueSet.cs (2)
24/// A value of type nuint may, in a 64-bit runtime, take on values greater than <see cref="System.UInt32.MaxValue"/>. 27/// to contain all values greater than <see cref="System.UInt32.MaxValue"/> (if any).
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
454var lowSurrogate = ((uintChar - 0x00010000) % 0x0400) + 0xDC00; 455var highSurrogate = ((uintChar - 0x00010000) / 0x0400) + 0xD800;
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
31nameof(UInt32),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
LexicalAndXml\LexicalTests.cs (12)
2195var value = 123u; 2211var value = 123U; 2598var text = UInt32.MaxValue.ToString() + "U"; 2606Assert.Equal(UInt32.MaxValue, token.Value); 2613var value = ((uint)Int32.MaxValue) + 1; 2629var value = ((long)UInt32.MaxValue) + 1; 2752var value = 0x123u; 2816var value = 0xFFFFFFFF; 2832var value = 0xFFFFFFFFu; 2896var value = 0x123u; 2960var value = 0xFFFFFFFF; 2976var value = 0xFFFFFFFFu;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
454var lowSurrogate = ((uintChar - 0x00010000) % 0x0400) + 0xDC00; 455var highSurrogate = ((uintChar - 0x00010000) / 0x0400) + 0xD800;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2653var field = _emptyCompilation.GetSpecialType(SpecialType.System_UInt32).GetMembers(nameof(UInt32.MaxValue)).Single();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
BlindAggregatorFactory.cs (1)
164var result = unchecked((uint)Interlocked.Decrement(ref pThis->_refCount));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
FunctionResolver.cs (1)
124pointer = (byte*)module.GetMetaDataBytesPtr(out var size);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
147var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt32();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
147var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt32();
Microsoft.CodeAnalysis.InteractiveHost (7)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.PublicApiAnalyzers (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.CodeAnalysis.ResxSourceGenerator (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\OperationTreeVerifier.cs (1)
282if (_labelIdMap.TryGetValue(symbol, out var id))
Microsoft.CodeAnalysis.Threading.Package (7)
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerConfigTests.cs (1)
750matcherOpt = TryCreateSectionNameMatcher($"{{0..{UInt32.MaxValue}}}");
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (2)
133var flags = 197var flags = reader.ReadUInt32();
Recommendations\AbstractRecommendationServiceRunner.cs (1)
310AddSpecialTypeSymbolAndItsAliases(nameof(UInt32), SpecialType.System_UInt32);
Serialization\SerializerService.cs (1)
199var count = reader.ReadCompressedUInt();
Shared\Utilities\BloomFilter.cs (3)
124var h = (uint)(seed ^ numberOfCharsLeft); 166var h = (uint)(seed ^ numberOfCharsLeft); 216var k = c1 | (c2 << 16);
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
src\Compilers\Core\Portable\InternalUtilities\LittleEndianReader.cs (1)
25var result = ReadUInt32LittleEndian(_span);
src\Dependencies\Collections\Internal\HashHelpers.cs (1)
115var highbits = (uint)(((((multiplier * value) >> 32) + 1) * divisor) >> 32);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
412var hashCode = (uint)key.GetHashCode(); 446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1023var hashCode = entries[i]._hashCode;
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
ObjectSerializationTests.cs (21)
286TestRoundTripValue(UInt32.MaxValue); 333TestRoundTripValue<UInt32>(0); 334TestRoundTripValue<UInt32>(1); 335TestRoundTripValue<UInt32>(2); 336TestRoundTripValue<UInt32>(3); 337TestRoundTripValue<UInt32>(4); 338TestRoundTripValue<UInt32>(5); 339TestRoundTripValue<UInt32>(6); 340TestRoundTripValue<UInt32>(7); 341TestRoundTripValue<UInt32>(8); 342TestRoundTripValue<UInt32>(9); 343TestRoundTripValue<UInt32>(10); 372TestRoundTripValue<Int64>(UInt32.MinValue); 373TestRoundTripValue<Int64>(UInt32.MaxValue); 397TestRoundTripValue<UInt64>(UInt32.MinValue); 398TestRoundTripValue<UInt64>(UInt32.MaxValue); 421writer.WriteUInt32(UInt32.MaxValue); 445Assert.Equal(UInt32.MaxValue, reader.ReadUInt32()); 475writer.WriteScalarValue(UInt32.MaxValue); 513Assert.Equal(UInt32.MaxValue, (UInt32)reader.ReadScalarValue());
Microsoft.Data.Analysis (33)
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (20)
7175var convertedValue = (uint)value; 7180var convertedValue = (uint)value; 7185var convertedValue = (uint)value; 7190var convertedValue = (uint)value; 7195var convertedValue = (uint)value; 7200var convertedValue = (uint)value; 7205var convertedValue = (uint)value; 7210var convertedValue = (uint)value; 7215var convertedValue = (uint)value; 7220var convertedValue = (uint)value; 7665var convertedValue = (uint)value; 7670var convertedValue = (uint)value; 7675var convertedValue = (uint)value; 7680var convertedValue = (uint)value; 7685var convertedValue = (uint)value; 7690var convertedValue = (uint)value; 7695var convertedValue = (uint)value; 7700var convertedValue = (uint)value; 7705var convertedValue = (uint)value; 7710var convertedValue = (uint)value;
PrimitiveDataFrameColumnComputations.cs (13)
4656var ret = column.Buffers[0].ReadOnlySpan[0]; 4679var ret = uint.MinValue; 4720var ret = column.Buffers[0].ReadOnlySpan[0]; 4743var ret = uint.MaxValue; 4784var ret = (uint)1; 4807var ret = default(uint); 4848var ret = (uint)0; 4871var ret = default(uint); 4912var value = uint.MinValue; 4935var value = uint.MinValue; 4960var value = uint.MaxValue; 4983var value = uint.MaxValue; 5052var value = (uint)0;
Microsoft.DotNet.SignCheckLibrary (21)
Interop\PortableExecutable\ImageDataDirectory.cs (2)
18public UInt32 VirtualAddress; 23public UInt32 Size;
Interop\PortableExecutable\ImageDosHeader.cs (1)
90public UInt32 e_lfanew;
Interop\PortableExecutable\ImageFileHeader.cs (3)
15public UInt32 TimeDateStamp; 16public UInt32 PointerToSymbolTable; 17public UInt32 NumberOfSymbols;
Interop\PortableExecutable\ImageNTHeaders.cs (4)
13public UInt32 Signature; 23public static IMAGE_NT_HEADERS32 Read(string path, UInt32 headerOffset) 48public UInt32 Signature; 58public static IMAGE_NT_HEADERS64 Read(string path, UInt32 headerOffset)
Interop\PortableExecutable\ImageSectionHeader.cs (7)
19public UInt32 VirtualSize; 22public UInt32 VirtualAddress; 25public UInt32 SizeOfRawData; 28public UInt32 PointerToRawData; 31public UInt32 PointerToRelocations; 34public UInt32 PointerToLinenumbers; 43public UInt32 Characteristics;
Interop\PortableExecutable\PortableExecutableHeader.cs (4)
317UInt32 imageOptionalHeaderOffset = ImageNTHeadersOffset + 4 + (UInt32)Marshal.SizeOf<IMAGE_FILE_HEADER>(); 330FirstImageSectionHeaderOffset = ImageNTHeadersOffset + (UInt32)Marshal.SizeOf<IMAGE_NT_HEADERS32>(); 336FirstImageSectionHeaderOffset = ImageNTHeadersOffset + (UInt32)Marshal.SizeOf<IMAGE_NT_HEADERS64>();
Microsoft.DotNet.StrongName (8)
Constants.cs (2)
25internal const UInt32 RSA1 = 0x31415352; 26internal const UInt32 RSA2 = 0x32415352;
Signing.cs (3)
36writer.Write((UInt32)(peReader.PEHeaders.CorHeader.Flags & ~CorFlags.StrongNameSigned)); 322var bitLen = br.ReadUInt32(); // Bit Length for Modulus 323var pubExp = br.ReadUInt32(); // Exponent
Utils.cs (3)
33var sigAlgId = blobReader.ReadUInt32(); 35var hashAlgId = blobReader.ReadUInt32(); 37var publicKeySize = blobReader.ReadUInt32();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Network\WindowsTcpStateInfo.cs (1)
107var result = (uint)NTSTATUS.UnsuccessfulStatus;
Microsoft.Maui (3)
Animations\Lerp.cs (2)
74 var start = Convert.ToUInt32(s); 75 var end = Convert.ToUInt32(e);
Services\Crc64HashAlgorithm.cs (1)
189 var val = lookup32[bytes[i]];
Microsoft.Maui.Controls (3)
SwipeGestureRecognizer.cs (1)
66 var threshold = Threshold;
Xaml\TypeConversionExtensions.cs (2)
186 if (toType == typeof(UInt32)) 187 return UInt32.Parse(str, CultureInfo.InvariantCulture);
Microsoft.Maui.Controls.Build.Tasks (1)
NodeILExtensions.cs (1)
249 yield return Instruction.Create(OpCodes.Ldc_I4, unchecked((int)TryFormat(s => UInt32.Parse(s, CultureInfo.InvariantCulture), node, str)));
Microsoft.Maui.Controls.SourceGen (1)
src\Core\src\Services\Crc64HashAlgorithm.cs (1)
189 var val = lookup32[bytes[i]];
Microsoft.Maui.Controls.Xaml (2)
CreateValuesVisitor.cs (2)
361 if (nodeType == typeof(UInt32) && uint.TryParse(valuestring, NumberStyles.Number, CultureInfo.InvariantCulture, out var uint32val))
Microsoft.ML.Core (8)
Data\DataKind.cs (1)
49/// <summary>4-byte unsigned integer, type of <see cref="System.UInt32"/>.</summary>
Utilities\FloatUtils.cs (2)
244var bits = Bits & ~MaskSign; 249var exp = Bits & MaskExp;
Utilities\Random.cs (4)
121var u1 = reader.ReadUInt32(); 122var u2 = reader.ReadUInt32(); 123var u3 = reader.ReadUInt32(); 124var u4 = reader.ReadUInt32();
Utilities\Stream.cs (1)
319foreach (var v in e)
Microsoft.ML.Data (92)
Data\Conversion.cs (50)
31using U4 = UInt32; 160AddStd<U1, U4>(Convert); 171AddStd<U2, U4>(Convert); 180AddStd<U4, U1>(Convert); 181AddStd<U4, U2>(Convert); 182AddStd<U4, U4>(Convert); 183AddStd<U4, U8>(Convert); 184AddStd<U4, UG>(Convert); 185AddStd<U4, R4>(Convert); 186AddStd<U4, R8>(Convert); 187AddAux<U4, SB>(Convert); 188AddStd<U4, BL>(Convert); 189AddStd<U4, TX>(Convert); 193AddStd<U8, U4>(Convert); 204AddStd<UG, U4>(Convert); 227AddStd<TX, U4>(Convert); 288AddIsDef<U4>(IsDefault); 297AddHasZero<U4>(HasZero); 306AddTryParse<U4>(TryParse); 786private bool IsDefault(in U4 src) => src == 0; 797private bool HasZero(in VBuffer<U4> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 841public void Convert(in U4 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0; 849public void Convert(in U4 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0; 855public void Convert(in U1 src, ref U4 dst) => dst = src; 856public void Convert(in U2 src, ref U4 dst) => dst = src; 857public void Convert(in U4 src, ref U4 dst) => dst = src; 858public void Convert(in U8 src, ref U4 dst) => dst = src <= U4.MaxValue ? (U4)src : (U4)0; 859public void Convert(in UG src, ref U4 dst) => dst = src.High == 0 && src.Low <= U4.MaxValue ? (U4)src.Low : (U4)0; 865public void Convert(in U4 src, ref U8 dst) => dst = src; 873public void Convert(in U4 src, ref UG dst) => dst = new UG(src, 0); 885public void Convert(in U4 src, ref R4 dst) => dst = src; 903public void Convert(in U4 src, ref R8 dst) => dst = src; 921public void Convert(in U4 src, ref SB dst) => ClearDst(ref dst).Append(src); 946public void Convert(in U4 src, ref TX dst) => dst = src.ToString().AsMemory(); 966public void Convert(in U4 src, ref BL dst) => dst = System.Convert.ToBoolean(src); 1015public bool TryParse(in TX src, out U4 dst) 1018if (!TryParse(in src, out res) || res > U4.MaxValue) 1023dst = (U4)res; 1505private U4 ParseU4(in TX span) 1510if (res > U4.MaxValue) 1512return (U4)res; 1665public void Convert(in TX span, ref U4 value)
Data\DataViewTypeManager.cs (1)
29typeof(Int16), typeof(UInt16), typeof(Int32), typeof(UInt32),
DataLoadSave\Binary\UnsafeTypeOps.cs (7)
38_type2ops[typeof(UInt32)] = new UInt32UnsafeTypeOps(); 112private sealed class UInt32UnsafeTypeOps : UnsafeTypeOps<UInt32> 114public override int Size { get { return sizeof(UInt32); } } 115public override unsafe void Apply(ReadOnlySpan<UInt32> array, Action<IntPtr> func) 117fixed (UInt32* pArray = &MemoryMarshal.GetReference(array)) 120public override void Write(UInt32 a, BinaryWriter writer) { writer.Write(a); } 121public override UInt32 Read(BinaryReader reader) { return reader.ReadUInt32(); }
Transforms\ConversionsExtensionsCatalog.cs (2)
57/// The new column's data type will be a vector of <see cref="System.UInt32"/>, or a <see cref="System.UInt32"/> based on whether the input column data types
Transforms\Hashing.cs (24)
354var mask = (1U << _columns[iinfo].NumberOfBits) - 1; 456var mask = (1U << ex.NumberOfBits) - 1; 457var seed = ex.Seed; 468var mask = (1U << _columns[iinfo].NumberOfBits) - 1; 554var hash = seed; 588var hash = seed; 623var hash = seed; 647var hash = seed; 671var hash = seed; 695var hash = seed; 696foreach (var value in values.DenseValues()) 727var hash = seed; 761var hash = seed; 781var hash = seed; 801var hash = seed; 802foreach (var value in values.DenseValues()) 825var hash = seed; 859var hash = seed; 896var hash = seed; 916var hash = seed; 936var hash = seed; 956var hash = seed; 980var hash = seed; 1409var seed = _parent._columns[iinfo].Seed;
Transforms\KeyToValue.cs (2)
314private readonly ValueMapper<TKey, UInt32> _convertToUInt; 335_convertToUInt = Data.Conversion.Conversions.DefaultInstance.GetStandardConversion<TKey, UInt32>(typeKey, NumberDataViewType.UInt32, out identity);
Transforms\KeyToVector.cs (1)
478var src = default(uint);
Transforms\LabelIndicatorTransform.cs (1)
192var src = default(uint);
Transforms\ValueMapping.cs (3)
332var keyValue = keyTypeValueMapping[value]; 1159CastInputTo<UInt32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, NumberDataViewType.Int64); 1161CastInputTo<UInt32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
Transforms\ValueToKeyMappingTransformer.cs (1)
865CastInputToString<UInt32>(ctx, out node, out termIds, srcVariableName, iinfo, opType, labelEncoderOutput);
Microsoft.ML.FastTree (12)
Dataset\Dataset.cs (1)
27public UInt32[] DupeIds { get; private set; }
FastTreeRanking.cs (8)
683private void IgnoreNonBestDuplicates(short[] labels, double[] scores, int[] order, UInt32[] dupeIds, int begin, int numDocuments) 702UInt32 group = dupeIds[index]; 703if (group == (UInt32)DupeIdInfo.Code404 || group == (UInt32)DupeIdInfo.FormatNotSupported || 704group == (UInt32)DupeIdInfo.Unique || group == (UInt32)DupeIdInfo.NoInformation) 712UInt32 groupIndex = (UInt32)begin + group - 2;
GamTrainer.cs (1)
454var splitPoint = _subGraph.Splits[featureIndex][iteration].SplitPoint;
Training\DocumentPartitioning.cs (2)
201public unsafe void Split(int leaf, IIntArrayForwardIndexer indexer, UInt32 threshold, int gtChildIndex) 298UInt32 threshold,
Microsoft.ML.LightGbm (8)
WrappedLightGbmBooster.cs (8)
125private static UInt32[] Str2UIntArray(string str, char delimiter) 127return str.Split(delimiter).Select(x => UInt32.Parse(x, CultureInfo.InvariantCulture)).ToArray(); 130private static bool GetIsDefaultLeft(UInt32 decisionType) 136private static bool GetIsCategoricalSplit(UInt32 decisionType) 142private static bool GetHasMissing(UInt32 decisionType) 148private static double[] GetDefalutValue(double[] threshold, UInt32[] decisionType) 164private static bool FindInBitset(UInt32[] bits, int start, int end, int pos) 173private static int[] GetCatThresholds(UInt32[] catThreshold, int lowerBound, int upperBound)
Microsoft.ML.OnnxTransformer (3)
OnnxTypeParser.cs (1)
51scalarType = typeof(System.UInt32);
OnnxUtils.cs (2)
503typeof(UInt32), 519{ typeof(UInt32) , InternalDataKind.U4},
Microsoft.ML.Samples (2)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
167var index = prediction.PredictedLabel; 333public UInt32 PredictedLabel;
Microsoft.ML.Samples.GPU (2)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
167var index = prediction.PredictedLabel; 333public UInt32 PredictedLabel;
Microsoft.ML.Sweeper (1)
Parameters.cs (1)
612|| paramType == typeof(UInt32)
Microsoft.ML.TensorFlow (4)
TensorflowUtils.cs (4)
460else if (typeof(T) == typeof(UInt32)) 461return new Tensor((UInt32[])(object)data, dims, TF_DataType.TF_UINT32); 498else if (typeof(T) == typeof(UInt32)) 499return new Tensor((UInt32)(object)data, TF_DataType.TF_UINT32);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1121foreach (var r in results)
Microsoft.ML.Tests (7)
TextLoaderTests.cs (7)
908UInt32 labelPeriod = default; 909ValueGetter<UInt32> labelDelegatePeriod = cursorPeriod.GetGetter<UInt32>(columnsPeriod[0]); 915UInt32[] labels = new uint[150]; 958UInt32 labelComma = default; 959ValueGetter<UInt32> labelDelegateComma = cursorComma.GetGetter<UInt32>(columnsComma[0]);
Microsoft.ML.TorchSharp (15)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
482if (labelCol.Kind != SchemaShape.Column.VectorKind.VariableVector || labelCol.ItemType.RawType != typeof(UInt32)) 836ValueGetter<VBuffer<UInt32>> predictedLabel = (ref VBuffer<UInt32> dst) => 938public UInt32[] PredictedLabelsBuffer;
NasBert\NerTrainer.cs (3)
377private void CondenseOutput(ref VBuffer<UInt32> dst, string sentence, Tokenizer tokenizer, TensorCacher outputCacher) 424ValueGetter<VBuffer<UInt32>> classification = (ref VBuffer<UInt32> dst) =>
NasBert\TextClassificationTrainer.cs (6)
62public class TextClassificationTrainer : NasBertTrainer<UInt32, long> 155foreach (var label in labelCol) 172public sealed class TextClassificationTransformer : NasBertTransformer<UInt32, long> 361ValueGetter<UInt32> classification = (ref UInt32 dst) => 365dst = (UInt32)(outputCacher as BertTensorCacher).Result.argmax(-1).cpu().item<long>() + 1;
Utils\HashHelpers.cs (1)
13var rol5 = (uint)h1 << 5 | (uint)h1 >> 27;
Utils\ImageUtils.cs (1)
18public static void Postprocess(Tensor imgBatch, Tensor classification, Tensor regression, Tensor anchors, out UInt32[] predictedLabels, out Single[] score, out Single[] boxes, double scoreThreshold = 0.05, double overlapThreshold = 0.5)
Microsoft.ML.Transforms (12)
HashJoiningTransform.cs (6)
510var mask = (1U << _exes[iinfo].NumberOfBits) - 1; 511var hashSeed = _exes[iinfo].HashSeed; 539var mask = (1U << _exes[iinfo].NumberOfBits) - 1; 540var hashSeed = _exes[iinfo].HashSeed; 587var mask = (1U << _exes[iinfo].NumberOfBits) - 1; 588var hashSeed = _exes[iinfo].HashSeed;
KeyToVectorMapping.cs (1)
364var src = default(uint);
SvmLight\SvmLightLoader.cs (1)
379var key = keysValues[i];
Text\NgramTransform.cs (4)
276var keyCount = (uint)srcTypes[iinfo].GetItemType().GetKeyCount(); 645var unigram = ngram[iterm]; 680var keyCount = (uint)_srcTypes[iinfo].GetItemType().GetKeyCount(); 787((vectorType.RawType == typeof(VBuffer<UInt32>)) || (vectorType.RawType == typeof(VBuffer<UInt64>)) ||
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
266if (type is KeyDataViewType && actualType == typeof(UInt32)) 474return Utils.MarshalInvoke(CreateTensorValueGetter<int>, typeof(UInt32), input, isVector, colIndex, tfShape, true);
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
663var value = (uint)rune.Value;
Microsoft.VisualBasic.Core (55)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (25)
114If TypeOf Value Is UInt32 Then 115Return CBool(DirectCast(Value, UInt32)) 258If TypeOf Value Is UInt32 Then 259Return CByte(DirectCast(Value, UInt32)) 405If TypeOf Value Is UInt32 Then 406Return CSByte(DirectCast(Value, UInt32)) 548If TypeOf Value Is UInt32 Then 549Return CShort(DirectCast(Value, UInt32)) 694If TypeOf Value Is UInt32 Then 695Return CUShort(DirectCast(Value, UInt32)) 837If TypeOf Value Is UInt32 Then 838Return CInt(DirectCast(Value, UInt32)) 982If TypeOf Value Is UInt32 Then 983Return CUInt(DirectCast(Value, UInt32)) 1128If TypeOf Value Is UInt32 Then 1129Return CLng(DirectCast(Value, UInt32)) 1275If TypeOf Value Is UInt32 Then 1276Return CULng(DirectCast(Value, UInt32)) 1434If TypeOf Value Is UInt32 Then 1435Return CDec(DirectCast(Value, UInt32)) 1674If TypeOf Value Is UInt32 Then 1675Return CSng(DirectCast(Value, UInt32)) 1819If TypeOf Value Is UInt32 Then 1820Return CDbl(DirectCast(Value, UInt32)) 2396Private Shared Function CastUInt32Enum(ByVal Expression As UInt32, ByVal TargetType As Type) As Object
Microsoft\VisualBasic\CompilerServices\Operators.vb (29)
774Private Shared Function CompareUInt32(ByVal left As UInt32, ByVal right As UInt32) As CompareClass 997If TypeOf Operand Is UInt32 Then 998Return NegateUInt32(DirectCast(Operand, UInt32)) 1094Private Shared Function NegateUInt32(ByVal operand As UInt32) As Object 1237Private Shared Function NotUInt32(ByVal operand As UInt32, ByVal operandType As Type) As Object 1238Dim result As UInt32 = Not operand 1627Private Shared Function AndUInt32(ByVal left As UInt32, ByVal right As UInt32, Optional ByVal enumType As Type = Nothing) As Object 1628Dim result As UInt32 = left And right 1999Private Shared Function OrUInt32(ByVal left As UInt32, ByVal right As UInt32, Optional ByVal enumType As Type = Nothing) As Object 2000Dim result As UInt32 = left Or right 2392Private Shared Function XorUInt32(ByVal left As UInt32, ByVal right As UInt32, Optional ByVal enumType As Type = Nothing) As Object 2393Dim result As UInt32 = left Xor right 2869Private Shared Function AddUInt32(ByVal left As UInt32, ByVal right As UInt32) As Object 2873If result > UInt32.MaxValue Then 3337Private Shared Function SubtractUInt32(ByVal left As UInt32, ByVal right As UInt32) As Object 3341If result < UInt32.MinValue Then 3781Private Shared Function MultiplyUInt32(ByVal left As UInt32, ByVal right As UInt32) As Object 3785If result > UInt32.MaxValue Then 4619Private Shared Function ModUInt32(ByVal left As UInt32, ByVal right As UInt32) As Object 5011Private Shared Function IntDivideUInt32(ByVal left As UInt32, ByVal right As UInt32) As Object
Microsoft\VisualBasic\Strings.vb (1)
561Public Function Len(ByVal Expression As UInt32) As Integer
Microsoft.VisualStudio.LanguageServices (50)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
87var itemId = hierarchyContent.ItemId;
ColorSchemes\ColorSchemeApplier.RegistryItemConverter.cs (2)
106var background = color.Background.Value; 121var foreground = color.Foreground.Value;
DebuggerIntelliSense\DebuggerIntellisenseFilter.cs (1)
106_context.DebuggerTextLines.GetStateFlags(out var bufferFlags);
DebuggerIntelliSense\DebuggerTextView.cs (1)
87_debuggerTextLinesOpt.GetStateFlags(out var bufferFlags);
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
213var itemId = hierarchy.TryGetItemId(data.FilePath);
DocumentationComments\VisualStudioDocumentationProvider.cs (1)
40if (ErrorHandler.Failed(memberIndex.ParseMemberSignature(documentationMemberID, out var methodID)))
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
73var itemId = hierarchy.TryGetItemId(document.FilePath);
Implementation\AbstractEditorFactory.cs (1)
108if (ErrorHandler.Succeeded(textBuffer.GetStateFlags(out var textBufferFlags)) &&
Implementation\VsRefactorNotifyService.cs (1)
184var itemID = hierarchy.TryGetItemId(document.FilePath);
InlineRename\InlineRenameUndoManager.cs (1)
221undoUnitEnumerator.Next(BatchSize, fetchedUndoUnits, out var fetchedCount);
Interactive\VsResetInteractive.cs (1)
80out hierarchyPointer, out var itemid, out var multiItemSelectPointer, out selectionContainerPointer));
KeybindingReset\KeybindingResetDetector.cs (1)
439var cookie = _priorityCommandTargetCookie;
LanguageService\AbstractLanguageService`2.cs (2)
178ErrorHandler.ThrowOnFailure(vsTextLines.GetStateFlags(out var flags)); 187var cookie = runningDocumentTable4.GetDocumentCookie(openDocument.FilePath);
Library\ObjectBrowser\ObjectList.cs (3)
584var type = Helpers.ObjectListKindToListType(Kind); 600var itemCount = GetItemCount(); 832var count = GetItemCount();
Options\LocalUserRegistryOptionPersister.cs (1)
30Contract.ThrowIfFalse(ErrorHandler.Succeeded(localRegistry.GetLocalRegistryRootEx((uint)__VsLocalRegistryType.RegType_UserSettings, out var rootHandle, out var rootPath)));
ProjectSystem\Extensions\IVsHierarchyExtensions.cs (1)
68if (ErrorHandler.Succeeded(hierarchy.ParseCanonicalName(moniker, out var itemid)))
ProjectSystem\Extensions\IVsRunningDocumentTableExtensions.cs (2)
14var flags = runningDocTable.GetDocumentFlags(docCookie); 27while (ErrorHandler.Succeeded(enumRunningDocuments.Next((uint)cookies.Length, cookies, out var cookiesFetched))
ProjectSystem\InvisibleEditor.cs (1)
159var cookie = runningDocumentTable4.GetDocumentCookie(_filePath);
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
313var itemid = Hierarchy.TryGetItemId(filename); 328var parentID = UnboxVSItemId(parentObj); 394var parentID = UnboxVSItemId(parentObj);
ProjectSystem\Legacy\SolutionEventsBatchScopeCreator.cs (2)
125if (ErrorHandler.Succeeded(shellMonitorSelection.GetCmdUIContextCookie(VSConstants.UICONTEXT.SolutionExistsAndFullyLoaded_guid, out var fullyLoadedContextCookie))) 145if (ErrorHandler.Succeeded(runningDocumentTable.AdviseRunningDocTableEvents(new RunningDocumentTableEventSink(this, runningDocumentTable), out var runningDocumentTableEventsCookie)))
ProjectSystem\OpenTextBufferProvider.cs (3)
288var cookie = _runningDocumentTable.Value.GetDocumentCookie(filePath); 301foreach (var cookie in GetInitializedRunningDocumentTableCookies()) 315foreach (var cookie in _runningDocumentTable.Value.GetRunningDocuments())
ProjectSystem\RunningDocumentTableExtensions.cs (1)
29var cookie = runningDocumentTable.GetDocumentCookie(moniker);
ProjectSystem\VisualStudioWorkspaceImpl.cs (9)
1025var itemId = hierarchy.TryGetItemId(document.FilePath); 1135var itemId = hierarchy?.TryGetItemId(filePath) ?? (uint)VSConstants.VSITEMID.Nil; 1450var itemId = hierarchy.TryGetItemId(filePath); 1457while (SharedProjectUtilities.TryGetItemInSharedAssetsProject(hierarchy, itemId, out var sharedHierarchy, out var sharedItemId) && 1514pfEditVerdict: out var editVerdict, 1515prgfMoreInfo: out var editResultFlags); 1544var canAddProjectReference = (uint)__VSREFERENCEQUERYRESULT.REFERENCE_UNKNOWN; 1545var canBeReferenced = (uint)__VSREFERENCEQUERYRESULT.REFERENCE_UNKNOWN; 1599var result = referenceManager.QueryCanReferenceProject(referencingHierarchy, referencedHierarchy);
Snippets\AbstractSnippetInfoService.cs (2)
189expansionEnumerator.GetCount(out var count); 193expansionEnumerator.Next(1, pSnippetInfo, out var fetched);
TaskList\ProjectExternalErrorReporter.cs (1)
87while (pErrors.Next(1, errors, out var fetched) == VSConstants.S_OK && fetched == 1)
Utilities\ComEventSink.cs (1)
30connectionPoint.Advise(sink, out var cookie);
Utilities\VisualStudioCommandHandlerHelpers.cs (1)
49monitorSelection.GetCurrentSelection(out selectionHierarchy, out var itemId, out var multiSelect, out selectionContainer);
Venus\ContainedDocument.cs (2)
177var containingDocumentItemid = GetContainingDocumentItemId(hierarchy); 228var itemId = hierarchy.TryGetItemId(documentPath);
Workspace\SourceGeneratedFileManager.cs (1)
205var cookie = runningDocumentTable.GetDocumentCookie(moniker);
Workspace\VisualStudioActiveDocumentTracker.cs (1)
74monitorSelectionService.AdviseSelectionEvents(this, out var _);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
408out var itemid,
MSBuild (2)
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
MSBuildTaskHost (2)
FileUtilities.cs (2)
1399var charA = (uint)path1[i]; 1400var charB = (uint)path2[i];
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1216[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt32))]
netstandard (1)
netstandard.cs (1)
2217[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt32))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5496case KnownElements.UInt32: t = typeof(UInt32); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
168else if (typeof(UInt32).IsAssignableFrom(type))
PresentationCore (507)
MS\Internal\AppModel\CookieHandler.cs (1)
104UInt32 size = 0;
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
250else if (typeof(UInt32) == type) 254else if (typeof(UInt32[]) == type)
MS\Win32\UnsafeNativeMethodsPenimc.cs (12)
25private const UInt32 ReleaseManagerExt = 0xFFFFDEAD; 60private static UInt32? _wispManagerKey; 169internal static void CheckedLockWispObjectFromGit(UInt32 gitKey) 185internal static void CheckedUnlockWispObjectFromGit(UInt32 gitKey) 231UInt32 latestKey = QueryWispKeyFromTablet(GetWispManagerKey, tablet); 302private static UInt32 QueryWispKeyFromTablet(int keyType, IPimcTablet3 tablet) 313return (UInt32)key; 321internal static UInt32 QueryWispTabletKey(IPimcTablet3 tablet) 335internal static UInt32 QueryWispContextKey(IPimcContext3 context) 350return (UInt32)key; 583private static extern bool LockWispObjectFromGit(UInt32 gitKey); 592private static extern bool UnlockWispObjectFromGit(UInt32 gitKey);
MS\Win32\UnsafeNativeMethodsPointer.cs (47)
27internal enum TOUCH_FLAGS : UInt32 36internal enum TOUCH_MASK : UInt32 48internal enum PEN_MASK : UInt32 61internal enum PEN_FLAGS : UInt32 72internal enum POINTER_DEVICE_CURSOR_TYPE : UInt32 83internal enum POINTER_DEVICE_TYPE : UInt32 95internal enum POINTER_INPUT_TYPE : UInt32 108internal enum POINTER_FLAGS : UInt32 134internal enum POINTER_BUTTON_CHANGE_TYPE : UInt32 156internal enum InteractionMeasurementUnits : UInt32 165internal enum INTERACTION_CONTEXT_PROPERTY : UInt32 177internal enum CROSS_SLIDE_FLAGS : UInt32 189internal enum MANIPULATION_RAILS_STATE : UInt32 201internal enum INTERACTION_FLAGS : UInt32 214internal enum INTERACTION_ID : UInt32 231internal enum INTERACTION_CONFIGURATION_FLAGS : UInt32 293internal UInt32 orientation; 294internal UInt32 pressure; 308internal UInt32 unit; 309internal UInt32 unitExponent; 321internal UInt32 cursorId; 332internal UInt32 displayOrientation; 336internal UInt32 startingCursorId; 367internal UInt32 pressure; 368internal UInt32 rotation; 380internal UInt32 pointerId; 381internal UInt32 frameId; 389internal UInt32 dwTime; 390internal UInt32 historyCount; 392internal UInt32 dwKeyStates; 467internal UInt32 count; 522internal static extern bool GetPointerDevices([In, Out] ref UInt32 deviceCount, [In, Out] POINTER_DEVICE_INFO[] devices); 528internal static extern bool GetPointerDeviceCursors([In] IntPtr device, [In, Out] ref UInt32 cursorCount, [In, Out] POINTER_DEVICE_CURSOR_INFO[] cursors); 534internal static extern bool GetPointerInfo([In] UInt32 pointerId, [In, Out] ref POINTER_INFO pointerInfo); 540internal static extern bool GetPointerInfoHistory([In] UInt32 pointerId, [In, Out] ref UInt32 entriesCount, [In, Out] POINTER_INFO[] pointerInfo); 546internal static extern bool GetPointerDeviceProperties([In] IntPtr device, [In, Out] ref UInt32 propertyCount, [In, Out] POINTER_DEVICE_PROPERTY[] pointerProperties); 558internal static extern bool GetPointerCursorId([In] UInt32 pointerId, [In, Out] ref UInt32 cursorId); 564internal static extern bool GetPointerPenInfo([In] UInt32 pointerId, [In, Out] ref POINTER_PEN_INFO penInfo); 570internal static extern bool GetPointerTouchInfo([In] UInt32 pointerId, [In, Out] ref POINTER_TOUCH_INFO touchInfo); 576internal static extern bool GetRawPointerDeviceData([In] UInt32 pointerId, [In] UInt32 historyCount, [In] UInt32 propertiesCount, [In] POINTER_DEVICE_PROPERTY[] pProperties, [In, Out] int[] pValues); 610internal static extern void SetInteractionConfigurationInteractionContext([In] IntPtr interactionContext, [In] UInt32 configurationCount, [In] INTERACTION_CONTEXT_CONFIGURATION[] configuration); 628internal static extern void SetPropertyInteractionContext([In] IntPtr interactionContext, [In] INTERACTION_CONTEXT_PROPERTY contextProperty, [In] UInt32 value); 637internal static extern void BufferPointerPacketsInteractionContext([In] IntPtr interactionContext, [In] UInt32 entriesCount, [In] POINTER_INFO[] pointerInfo);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (19)
212UInt32 waitTimeout, 235internal const UInt32 waitInfinite = UInt32.MaxValue; 260[FieldOffset(4)] internal UInt32 DisplayUniqueness; 979private UInt32 _handle; 980public ResourceHandle(UInt32 handle) { _handle = handle; } 1901UInt32 iPosition, 2103UInt32 iPosition, 2197command.width = (UInt32)nWidth; 2198command.height = (UInt32)nHeight; 2206(UInt32)(MILRTInitializationFlags.MIL_RT_PRESENT_IMMEDIATELY | 2220command.flags |= (UInt32)MILRTInitializationFlags.MIL_RT_SOFTWARE_ONLY; 2229command.flags |= (UInt32)MILRTInitializationFlags.MIL_RT_IS_DISABLE_MULTIMON_DISPLAY_CLIPPING_VALID; 2233command.flags |= (UInt32) MILRTInitializationFlags.MIL_RT_DISABLE_MULTIMON_DISPLAY_CLIPPING; 2239command.flags |= (UInt32)MILRTInitializationFlags.MIL_RT_DISABLE_DIRTY_RECTANGLES; 2300command.width = (UInt32)nWidth; 2301command.height = (UInt32)nHeight; 2348command.flags = (UInt32)nRenderingMode; 2484UInt32 id,
src\Microsoft.DotNet.Wpf\src\Common\Graphics\Generated\wgx_commands.cs (57)
16using BOOL = System.UInt32; 26[FieldOffset(4)] internal BOOL Enable; 32[FieldOffset(4)] internal BOOL ReturnCommonMinimum; 38[FieldOffset(4)] internal BOOL Enable; 66[FieldOffset(8)] internal BOOL UseDirtyRect; 137[FieldOffset(8)] internal UInt32 cbData; 144[FieldOffset(8)] internal UInt32 id; 229[FieldOffset(12)] internal UInt32 index; 246[FieldOffset(40)] internal BOOL IsEnabled; 302[FieldOffset(12)] internal UInt32 index; 312[FieldOffset(32)] internal UInt32 width; 313[FieldOffset(36)] internal UInt32 height; 315[FieldOffset(56)] internal UInt32 flags; 317[FieldOffset(64)] internal UInt32 stride; 318[FieldOffset(68)] internal UInt32 ePixelFormat; 328[FieldOffset(8)] internal BOOL Suppress; 339[FieldOffset(36)] internal BOOL isChild; 340[FieldOffset(40)] internal BOOL isRTL; 341[FieldOffset(44)] internal BOOL renderingEnabled; 343[FieldOffset(64)] internal UInt32 disableCookie; 344[FieldOffset(68)] internal BOOL gdiBlt; 353[FieldOffset(24)] internal UInt32 width; 354[FieldOffset(28)] internal UInt32 height; 355[FieldOffset(32)] internal UInt32 dummy; 383[FieldOffset(8)] internal UInt32 flags; 392[FieldOffset(24)] internal BOOL AfterParent; 415[FieldOffset(16)] internal BOOL UseBackBuffer; 428[FieldOffset(4)] internal BOOL ShouldRenderEvenWhenNoDisplayDevicesAreAvailable; 501[FieldOffset(12)] internal UInt32 ChildrenSize; 582[FieldOffset(8)] internal UInt32 PositionsSize; 583[FieldOffset(12)] internal UInt32 NormalsSize; 584[FieldOffset(16)] internal UInt32 TextureCoordinatesSize; 585[FieldOffset(20)] internal UInt32 TriangleIndicesSize; 592[FieldOffset(8)] internal UInt32 ChildrenSize; 625[FieldOffset(8)] internal UInt32 ChildrenSize; 683[FieldOffset(12)] internal UInt32 PixelShaderBytecodeSize; 684[FieldOffset(16)] internal BOOL CompileSoftwareShader; 734[FieldOffset(48)] internal UInt32 ShaderConstantFloatRegistersSize; 735[FieldOffset(52)] internal UInt32 DependencyPropertyFloatValuesSize; 736[FieldOffset(56)] internal UInt32 ShaderConstantIntRegistersSize; 737[FieldOffset(60)] internal UInt32 DependencyPropertyIntValuesSize; 738[FieldOffset(64)] internal UInt32 ShaderConstantBoolRegistersSize; 739[FieldOffset(68)] internal UInt32 DependencyPropertyBoolValuesSize; 740[FieldOffset(72)] internal UInt32 ShaderSamplerRegistrationInfoSize; 741[FieldOffset(76)] internal UInt32 DependencyPropertySamplerValuesSize; 755[FieldOffset(8)] internal UInt32 ChildrenSize; 859[FieldOffset(16)] internal UInt32 ChildrenSize; 878[FieldOffset(16)] internal UInt32 FiguresSize; 906[FieldOffset(72)] internal UInt32 GradientStopsSize; 926[FieldOffset(88)] internal UInt32 GradientStopsSize; 1023[FieldOffset(20)] internal UInt32 DashesSize; 1081[FieldOffset(16)] internal UInt32 ChildrenSize; 1096[FieldOffset(8)] internal UInt32 GuidelinesXSize; 1097[FieldOffset(12)] internal UInt32 GuidelinesYSize; 1098[FieldOffset(16)] internal BOOL IsDynamic; 1107[FieldOffset(20)] internal BOOL SnapsToDevicePixels; 1108[FieldOffset(24)] internal BOOL EnableClearType;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_core_types.cs (31)
245internal UInt32 DashArraySize; 549internal UInt32 PixelShaderVersion; 550internal UInt32 VertexShaderVersion; 551internal UInt32 MaxTextureWidth; 552internal UInt32 MaxTextureHeight; 554internal UInt32 BitsPerPixel; 555internal UInt32 HasSSE2Support; 556internal UInt32 MaxPixelShader30InstructionSlots; 568internal UInt32 VideoMemoryBandwidth; 569internal UInt32 VideoMemorySize; 1012[FieldOffset(0)] internal UInt32 Size; 1015[FieldOffset(40)] internal UInt32 FigureCount; 1016[FieldOffset(44)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1022[FieldOffset(0)] internal UInt32 BackSize; 1024[FieldOffset(8)] internal UInt32 Count; 1025[FieldOffset(12)] internal UInt32 Size; 1027[FieldOffset(32)] internal UInt32 OffsetToLastSegment; 1028[FieldOffset(36)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1037[FieldOffset(8)] internal UInt32 BackSize; 1045[FieldOffset(8)] internal UInt32 BackSize; 1046[FieldOffset(12)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1055[FieldOffset(8)] internal UInt32 BackSize; 1056[FieldOffset(12)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1067[FieldOffset(8)] internal UInt32 BackSize; 1068[FieldOffset(12)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1078[FieldOffset(8)] internal UInt32 BackSize; 1079[FieldOffset(12)] internal UInt32 LargeArc; 1083[FieldOffset(56)] internal UInt32 Sweep; 1084[FieldOffset(60)] internal UInt32 ForcePacking; // See "ForcePacking" comment at beginning of this file. 1092[FieldOffset(8)] internal UInt32 BackSize; 1093[FieldOffset(12)] internal UInt32 Count;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (2)
122ref UInt32 puiHeight 128ref UInt32 puiWidth
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
661private UInt32 Length;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\WinInet.cs (4)
20const UInt32 fieldControl = (UInt32)maxPathSize; 28UInt32 size = (UInt32)Marshal.SizeOf(icci);
System\Windows\Input\Stylus\Common\TabletDeviceInfo.cs (1)
47public UInt32 WispTabletKey { get; set; }
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
180(UInt32)UnsafeNativeMethods.InteractionMeasurementUnits.Screen);
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
93UInt32 cursorCount = 0;
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
14int id, IntPtr commHandle, int tabletDeviceId, UInt32 wispContextKey) 506internal UInt32 WispContextKey { get; private set; }
System\Windows\Input\Stylus\Wisp\PenContextInfo.cs (1)
23public UInt32 WispContextKey;
System\Windows\Input\Stylus\Wisp\PenImcRcw.cs (2)
56void GetTabletCount(out UInt32 count); 57void GetTablet(UInt32 tablet, out IPimcTablet3 IPimcTablet);
System\Windows\Input\Stylus\Wisp\PenThread.cs (2)
76internal bool WorkerAcquireTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey) 86internal bool WorkerReleaseTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (10)
38private UInt32[] _wispContextKeys = Array.Empty<UInt32>(); 221internal WorkerOperationAcquireTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey) 247private UInt32 _wispTabletKey; 255internal WorkerOperationReleaseTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey) 281private UInt32 _wispTabletKey; 608internal bool WorkerAcquireTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey) 633internal bool WorkerReleaseTabletLocks(IPimcTablet3 tablet, UInt32 wispTabletKey) 1029_wispContextKeys = new UInt32[penContextRefs.Count]; 1083_wispContextKeys = new UInt32[penContextRefs.Count];
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3341uint tabletIndex = UInt32.MaxValue; 3345if (tabletIndex != UInt32.MaxValue) 3428OnTabletRemoved(UInt32.MaxValue); 3441if (tabletIndex != UInt32.MaxValue
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (1)
412internal UInt32 WispTabletKey
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (9)
274uint indexMouseTablet = UInt32.MaxValue; 401tabletIndexChanged = UInt32.MaxValue; 435uint indexFound = UInt32.MaxValue; 448uint tabletIndex = UInt32.MaxValue; 449if (indexFound == UInt32.MaxValue) 507_indexMouseTablet = UInt32.MaxValue; 508return UInt32.MaxValue; // Don't process this notification any further. 525return UInt32.MaxValue; // Don't process this notification any further. 696private uint _indexMouseTablet = UInt32.MaxValue;
System\Windows\InterOp\D3DImage.cs (1)
585if (_lockCount == UInt32.MaxValue)
System\Windows\Media\ByteStreamGeometryContext.cs (10)
83_currentPathFigureData.Size = (UInt32)(_currOffset - _currentPathFigureDataOffset); 229_lastSegmentSize = (UInt32)sizeof(MIL_SEGMENT_ARC); 240_currentPathFigureData.Size = (UInt32)(_currOffset - _currentPathFigureDataOffset); 243(UInt32)(offsetToArcToSegment - _currentPathFigureDataOffset); 555_currentPathGeometryData.Size = (UInt32)(_currOffset); 590_lastSegmentSize = (UInt32)(sizeof(MIL_SEGMENT_POLY) + (sizeof(Point) * _currentPolySegmentData.Count)); 607_currentPathFigureData.Size = (UInt32)(_currOffset - _currentPathFigureDataOffset); 610(UInt32)(_currentPolySegmentDataOffset - _currentPathFigureDataOffset); 765private UInt32 _lastSegmentSize = 0; 766private UInt32 _lastFigureSize = 0;
System\Windows\Media\ColorContext.cs (2)
297internal UInt32 ColorType 301return (UInt32)_colorTypeFromChannels[NumChannels];
System\Windows\Media\ColorTransform.cs (5)
89const UInt32 NumColors = 1; 103UInt32 result = 0x0000ffff & (UInt32)(outputColor >> (16 * i)); 199private readonly UInt32 _inputColorType; 201private readonly UInt32 _outputColorType;
System\Windows\Media\ColorTransformHelper.cs (17)
80UInt32[] dwIntents = new UInt32[2] {INTENT_PERCEPTUAL, INTENT_PERCEPTUAL}; 85(UInt32)handles.Length, 87(UInt32)dwIntents.Length, 106internal void TranslateColors(IntPtr paInputColors, UInt32 numColors, UInt32 inputColorType, IntPtr paOutputColors, UInt32 outputColorType) 129private const UInt32 INTENT_PERCEPTUAL = 0; 130private const UInt32 INTENT_RELATIVE_COLORIMETRIC = 1; 131private const UInt32 INTENT_SATURATION = 2; 132private const UInt32 INTENT_ABSOLUTE_COLORIMETRIC = 3; 135private const UInt32 PROOF_MODE = 0x00000001; 136private const UInt32 NORMAL_MODE = 0x00000002; 137private const UInt32 BEST_MODE = 0x00000003; 138private const UInt32 ENABLE_GAMUT_CHECKING = 0x00010000; 139private const UInt32 USE_RELATIVE_COLORIMETRIC = 0x00020000; 140private const UInt32 FAST_TRANSLATE = 0x00040000;
System\Windows\Media\Composition.cs (11)
182internal static UInt32 BooleanToUInt32(Boolean v) 184return (UInt32)(v ? -1 : 0); 203UInt32 nSize, 215UInt32 pointCount, 216UInt32 segmentCount, 230UInt32 cPoints, 231UInt32 cSegments, 244UInt32 nSize, 255UInt32 nSize1, 259UInt32 nSize2, 268UInt32 nSize,
System\Windows\Media\DashStyle.cs (1)
71pData->DashArraySize = (UInt32)count * sizeof(double);
System\Windows\Media\EllipseGeometry.cs (2)
378private const UInt32 c_segmentCount = 4; 379private const UInt32 c_pointCount = 13;
System\Windows\Media\Generated\RenderData.cs (98)
24UInt32 hPen, 37[FieldOffset(32)] public UInt32 hPen; 38[FieldOffset(36)] private UInt32 QuadWordPad0; 45UInt32 hPen, 47UInt32 hPoint0Animations, 49UInt32 hPoint1Animations 62[FieldOffset(32)] public UInt32 hPen; 63[FieldOffset(36)] public UInt32 hPoint0Animations; 64[FieldOffset(40)] public UInt32 hPoint1Animations; 65[FieldOffset(44)] private UInt32 QuadWordPad0; 72UInt32 hBrush, 73UInt32 hPen, 83[FieldOffset(32)] public UInt32 hBrush; 84[FieldOffset(36)] public UInt32 hPen; 91UInt32 hBrush, 92UInt32 hPen, 94UInt32 hRectangleAnimations 105[FieldOffset(32)] public UInt32 hBrush; 106[FieldOffset(36)] public UInt32 hPen; 107[FieldOffset(40)] public UInt32 hRectangleAnimations; 108[FieldOffset(44)] private UInt32 QuadWordPad0; 115UInt32 hBrush, 116UInt32 hPen, 132[FieldOffset(48)] public UInt32 hBrush; 133[FieldOffset(52)] public UInt32 hPen; 140UInt32 hBrush, 141UInt32 hPen, 143UInt32 hRectangleAnimations, 145UInt32 hRadiusXAnimations, 147UInt32 hRadiusYAnimations 164[FieldOffset(48)] public UInt32 hBrush; 165[FieldOffset(52)] public UInt32 hPen; 166[FieldOffset(56)] public UInt32 hRectangleAnimations; 167[FieldOffset(60)] public UInt32 hRadiusXAnimations; 168[FieldOffset(64)] public UInt32 hRadiusYAnimations; 169[FieldOffset(68)] private UInt32 QuadWordPad0; 176UInt32 hBrush, 177UInt32 hPen, 193[FieldOffset(32)] public UInt32 hBrush; 194[FieldOffset(36)] public UInt32 hPen; 201UInt32 hBrush, 202UInt32 hPen, 204UInt32 hCenterAnimations, 206UInt32 hRadiusXAnimations, 208UInt32 hRadiusYAnimations 225[FieldOffset(32)] public UInt32 hBrush; 226[FieldOffset(36)] public UInt32 hPen; 227[FieldOffset(40)] public UInt32 hCenterAnimations; 228[FieldOffset(44)] public UInt32 hRadiusXAnimations; 229[FieldOffset(48)] public UInt32 hRadiusYAnimations; 230[FieldOffset(52)] private UInt32 QuadWordPad0; 237UInt32 hBrush, 238UInt32 hPen, 239UInt32 hGeometry 248[FieldOffset(0)] public UInt32 hBrush; 249[FieldOffset(4)] public UInt32 hPen; 250[FieldOffset(8)] public UInt32 hGeometry; 251[FieldOffset(12)] private UInt32 QuadWordPad0; 258UInt32 hImageSource, 268[FieldOffset(32)] public UInt32 hImageSource; 269[FieldOffset(36)] private UInt32 QuadWordPad0; 276UInt32 hImageSource, 278UInt32 hRectangleAnimations 287[FieldOffset(32)] public UInt32 hImageSource; 288[FieldOffset(36)] public UInt32 hRectangleAnimations; 295UInt32 hForegroundBrush, 296UInt32 hGlyphRun 303[FieldOffset(0)] public UInt32 hForegroundBrush; 304[FieldOffset(4)] public UInt32 hGlyphRun; 311UInt32 hDrawing 318[FieldOffset(0)] public UInt32 hDrawing; 319[FieldOffset(4)] private UInt32 QuadWordPad0; 326UInt32 hPlayer, 336[FieldOffset(32)] public UInt32 hPlayer; 337[FieldOffset(36)] private UInt32 QuadWordPad0; 344UInt32 hPlayer, 346UInt32 hRectangleAnimations 355[FieldOffset(32)] public UInt32 hPlayer; 356[FieldOffset(36)] public UInt32 hRectangleAnimations; 363UInt32 hClipGeometry 370[FieldOffset(0)] public UInt32 hClipGeometry; 371[FieldOffset(4)] private UInt32 QuadWordPad0; 378UInt32 hOpacityMask 387[FieldOffset(16)] public UInt32 hOpacityMask; 388[FieldOffset(20)] private UInt32 QuadWordPad0; 409UInt32 hOpacityAnimations 418[FieldOffset(8)] public UInt32 hOpacityAnimations; 419[FieldOffset(12)] private UInt32 QuadWordPad0; 426UInt32 hTransform 433[FieldOffset(0)] public UInt32 hTransform; 434[FieldOffset(4)] private UInt32 QuadWordPad0; 441UInt32 hGuidelines 448[FieldOffset(0)] public UInt32 hGuidelines; 449[FieldOffset(4)] private UInt32 QuadWordPad0; 485UInt32 hEffect, 486UInt32 hEffectInput 493[FieldOffset(0)] public UInt32 hEffect; 494[FieldOffset(4)] public UInt32 hEffectInput;
System\Windows\Media\Generated\RenderDataDrawingContext.cs (16)
110UInt32 hPoint0Animations = CompositionResourceManager.InvalidResourceHandle; 111UInt32 hPoint1Animations = CompositionResourceManager.InvalidResourceHandle; 230UInt32 hRectangleAnimations = CompositionResourceManager.InvalidResourceHandle; 373UInt32 hRectangleAnimations = CompositionResourceManager.InvalidResourceHandle; 374UInt32 hRadiusXAnimations = CompositionResourceManager.InvalidResourceHandle; 375UInt32 hRadiusYAnimations = CompositionResourceManager.InvalidResourceHandle; 528UInt32 hCenterAnimations = CompositionResourceManager.InvalidResourceHandle; 529UInt32 hRadiusXAnimations = CompositionResourceManager.InvalidResourceHandle; 530UInt32 hRadiusYAnimations = CompositionResourceManager.InvalidResourceHandle; 700UInt32 hRectangleAnimations = CompositionResourceManager.InvalidResourceHandle; 894UInt32 hRectangleAnimations = CompositionResourceManager.InvalidResourceHandle; 1064UInt32 hOpacityAnimations = CompositionResourceManager.InvalidResourceHandle; 1384private UInt32 UseAnimations( 1401private UInt32 UseAnimations( 1418private UInt32 UseAnimations( 1435private UInt32 UseAnimations(
System\Windows\Media\Geometry.cs (1)
1005pPathGeometry->Size = (UInt32)size;
System\Windows\Media\GlyphTypeface.cs (1)
1257UInt32 size;
System\Windows\Media\Imaging\BitmapCodecInfo.cs (8)
75UInt32 length = 0; 118UInt32 length = 0; 161UInt32 length = 0; 204UInt32 length = 0; 247UInt32 length = 0; 290UInt32 length = 0; 333UInt32 length = 0; 376UInt32 length = 0;
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1125UInt32 metadataFlags = (uint)WICMetadataCacheOptions.WICMetadataCacheOnDemand; 1239UInt32 length = 0;
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
17internal UInt32 dwType;
System\Windows\Media\Imaging\BitmapMetadata.cs (25)
40out UInt32 count 45UInt32 index, 74out UInt32 count 79UInt32 index, 95UInt32 index, 106UInt32 index, 112UInt32 index 189out UInt32 count 192count = (UInt32)_metadataBlocks.Count; 202UInt32 index, 252UInt32 count = 0; 267for (UInt32 i=0; i<count; i++) 326UInt32 index, 377UInt32 index, 406UInt32 index 451UInt32 celt, 453ref UInt32 pceltFetched 458UInt32 celt 495UInt32 celt, 497ref UInt32 pceltFetched 535UInt32 celt 538UInt32 newIndex = _index + celt; 571private UInt32 _index; 896UInt32 length = 0; 939UInt32 length = 0;
System\Windows\Media\Imaging\PropVariant.cs (2)
58internal UInt32 cElems; 74[FieldOffset(8)] internal UInt32 uintVal;
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
241if (_lockCount == UInt32.MaxValue)
System\Windows\Media\LinearGradientBrush.cs (1)
179data.GradientStopsSize = (UInt32)(sizeof(DUCE.MIL_GRADIENTSTOP)*count);
System\Windows\Media\LineGeometry.cs (2)
257private const UInt32 c_segmentCount = 1; 258private const UInt32 c_pointCount = 2;
System\Windows\Media\MediaContext.cs (2)
460internal UInt32 PixelShaderVersion 470internal UInt32 MaxPixelShader30InstructionSlots
System\Windows\Media\MediaPlayerState.cs (2)
158UInt32 height = 0; 174UInt32 width = 0;
System\Windows\Media\PathGeometry.cs (4)
427internal unsafe void AddFigureToList(bool isFilled, bool isClosed, MilPoint2F* pPoints, UInt32 pointCount, byte* pSegTypes, UInt32 segmentCount) 546internal unsafe delegate void AddFigureToListDelegate(bool isFilled, bool isClosed, MilPoint2F *pPoints, UInt32 pointCount, byte *pTypes, UInt32 typeCount);
System\Windows\Media\PixelFormat.cs (5)
345out UInt32 channelCount 357pixelFormatInfo, i, 0, null, out UInt32 cbBytes)); 433UInt32 bpp = 0; 684private static UInt32 GetBitsPerPixelFromEnum(PixelFormatEnum pixelFormatEnum) => pixelFormatEnum switch 716private UInt32 _bitsPerPixel;
System\Windows\Media\RadialGradientBrush.cs (1)
128data.GradientStopsSize = (UInt32)(sizeof(DUCE.MIL_GRADIENTSTOP)*count);
System\Windows\Media\RectangleGeometry.cs (4)
590private static UInt32 c_roundedSegmentCount = 8; 591private static UInt32 c_roundedPointCount = 17; 614private const UInt32 c_squaredSegmentCount = 4; 615private const UInt32 c_squaredPointCount = 5;
System\Windows\Media\StreamAsIStream.cs (2)
26internal delegate int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags); 519internal static int Commit(ref StreamDescriptor pSD, UInt32 grfCommitFlags)
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (67)
80UInt32 nSize, 93UInt32 nSize1, 97UInt32 nSize2, 111UInt32 nSize, 122UInt32 nSize, 133UInt32 nSize, 173out UInt32 pSize, 217UInt32 cchAuthor, 219out UInt32 pcchActual); 224UInt32 cchVersion, 226out UInt32 pcchActual); 231UInt32 cchSpecVersion, 233out UInt32 pcchActual); 238UInt32 cchFriendlyName, 240out UInt32 pcchActual); 253UInt32 cchDeviceManufacturer, 255out UInt32 pcchActual 261UInt32 cchDeviceModels, 263out UInt32 pcchActual 269UInt32 cchMimeTypes, 271out UInt32 pcchActual 277UInt32 cchFileExtensions, 279out UInt32 pcchActual 311UInt32 cchLocation, 313out UInt32 pcchActual 388UInt32 cProperties, 399out UInt32 puiWidth, 400out UInt32 puiHeight); 422UInt32 cbStride, 423UInt32 cbBufferSize, 474UInt32 index, 505internal static extern UInt32 AddRef(SafeMILHandle pIUnkown); 508internal static extern UInt32 AddRef(SafeReversePInvokeWrapper pIUnknown); 555UInt32 width, 556UInt32 height, 559UInt32 stride, 560UInt32 offset, 689UInt32 metadataFlags, 697UInt32 metadataFlags, 753UInt32 width, 754UInt32 height, 756UInt32 stride, 757UInt32 cbBufferSize, 764UInt32 width, 765UInt32 height, 836out UInt32 count 842UInt32 index, 852out UInt32 uiBitsPerPixel 858out UInt32 uiChannelCount 864UInt32 uiChannelIndex, 865UInt32 cbMaskBuffer, 867out UInt32 cbActual 1009UInt32 SDKVersion, 1058internal static extern ColorTransformHandle /* HTRANSFORM */ CreateMultiProfileTransform(IntPtr[] /* PHPROFILE */ pahProfiles, UInt32 nProfiles, UInt32[] padwIntent, UInt32 nIntents, UInt32 dwFlags, UInt32 indexPreferredCMM); 1064internal static extern int /* HRESULT */ TranslateColors(ColorTransformHandle /* HTRANSFORM */ hColorTransform, IntPtr paInputColors, UInt32 nColors, UInt32 ctInput, IntPtr paOutputColors, UInt32 ctOutput); 1067internal static extern SafeProfileHandle /* HANDLE */ OpenColorProfile(ref MS.Win32.UnsafeNativeMethods.PROFILE pProfile, UInt32 dwDesiredAccess, UInt32 dwShareMode, UInt32 dwCreationMode); 1090UInt32 SDKVersion 1103UInt32 width, 1104UInt32 height,
System\Windows\Media\Visual.cs (3)
1144internal void Render(RenderContext ctx, UInt32 childIndex) 1752UInt32 connectedChildIndex = 1753CheckFlagsAnd(channel, VisualProxyFlags.IsContentNodeConnected) ? (UInt32)1 : 0;
PresentationFramework (80)
MS\Internal\Data\DefaultValueConverter.cs (2)
529typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types 536typeof(UInt32), typeof(UInt64), typeof(UInt16), typeof(SByte), // non-CLS compliant types
MS\Internal\IO\Packaging\CorePropertiesFilter.cs (1)
168if (_chunkID == UInt32.MaxValue)
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
101bufCharacterCount = (UInt32)s.Length + 1;
MS\Internal\IO\Packaging\PackageFilter.cs (1)
483Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
887Invariant.Assert(_currentChunkID <= UInt32.MaxValue);
MS\Internal\Printing\NativeMethods.cs (54)
10internal const UInt32 PD_ALLPAGES = 0x00000000; 11internal const UInt32 PD_SELECTION = 0x00000001; 12internal const UInt32 PD_PAGENUMS = 0x00000002; 13internal const UInt32 PD_NOSELECTION = 0x00000004; 14internal const UInt32 PD_NOPAGENUMS = 0x00000008; 15internal const UInt32 PD_USEDEVMODECOPIESANDCOLLATE = 0x00040000; 16internal const UInt32 PD_DISABLEPRINTTOFILE = 0x00080000; 17internal const UInt32 PD_HIDEPRINTTOFILE = 0x00100000; 18internal const UInt32 PD_CURRENTPAGE = 0x00400000; 19internal const UInt32 PD_NOCURRENTPAGE = 0x00800000; 20internal const UInt32 PD_RESULT_CANCEL = 0x0; 21internal const UInt32 PD_RESULT_PRINT = 0x1; 22internal const UInt32 PD_RESULT_APPLY = 0x2; 23internal const UInt32 START_PAGE_GENERAL = 0xFFFFFFFF; 33public UInt32 Flags = 0; 34public UInt32 Flags2 = 0; 35public UInt32 ExclusionFlags = 0; 36public UInt32 nPageRanges = 0; 37public UInt32 nMaxPageRanges = 0; 39public UInt32 nMinPage = 0; 40public UInt32 nMaxPage = 0; 41public UInt32 nCopies = 0; 45public UInt32 nPropertyPages = 0; 47public UInt32 nStartPage = START_PAGE_GENERAL; 48public UInt32 dwResultAction = 0; 59public UInt32 Flags = 0; 60public UInt32 Flags2 = 0; 61public UInt32 ExclusionFlags = 0; 62public UInt32 nPageRanges = 0; 63public UInt32 nMaxPageRanges = 0; 65public UInt32 nMinPage = 0; 66public UInt32 nMaxPage = 0; 67public UInt32 nCopies = 0; 71public UInt32 nPropertyPages = 0; 73public UInt32 nStartPage = START_PAGE_GENERAL; 74public UInt32 dwResultAction = 0; 89public UInt32 dmFields; 93public UInt32 dmDisplayOrientation; 94public UInt32 dmDisplayFixedOutput; 104public UInt32 dmBitsPerPel; 105public UInt32 dmPelsWidth; 106public UInt32 dmPelsHeight; 107public UInt32 dmDisplayFlags; 108public UInt32 dmDisplayFrequency; 109public UInt32 dmICMMethod; 110public UInt32 dmICMIntent; 111public UInt32 dmMediaType; 112public UInt32 dmDitherType; 113public UInt32 dmReserved1; 114public UInt32 dmReserved2; 115public UInt32 dmPanningWidth; 116public UInt32 dmPanningHeight; 131public UInt32 nFromPage; 132public UInt32 nToPage;
MS\Internal\Printing\PrintDlgExMarshaler.cs (6)
84UInt32 92UInt32 dialogResult = AcquireResultFromPrintDlgExStruct(_unmanagedPrintDlgEx); 99UInt32 flags; 222out UInt32 flags, 403UInt32 408UInt32 result = 0;
MS\Internal\Printing\Win32PrintDialog.cs (6)
49UInt32 52UInt32 result = NativeMethods.PD_RESULT_CANCEL; 169internal UInt32 MinPage 184internal UInt32 MaxPage 328UInt32 _minPage; 331UInt32 _maxPage;
System\Windows\Controls\PrintDialog.cs (5)
151public UInt32 MinPage 171public UInt32 MaxPage 312UInt32 dialogResult = dlg.ShowDialog(); 596UInt32 _minPage; 599UInt32 _maxPage;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
790case 697: t = () => typeof(UInt32); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11912typeof(System.UInt32),
System\Windows\Markup\KnownTypes.cs (1)
6244case KnownElements.UInt32: t = typeof(System.UInt32); break;
PresentationUI (9)
MS\Internal\Documents\Application\NativeDirectoryServicesQueryAPIs.cs (8)
43UInt32 OpenQueryWindow( 72public UInt32 cbStruct; 73public UInt32 dwFlags; 135public UInt32 dwFlags; 136public UInt32 dwProviderFlags; 137public UInt32 offsetName; 138public UInt32 offsetClass; 157public UInt32 cItems;
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
518Unsafe.SizeOf<Guid>() + sizeof(UInt32);
ReachFramework (24)
Packaging\XpsResourcePolicy.cs (2)
181Dictionary<UInt32, Uri> 286Dictionary<UInt32, Uri> _imageCrcTable;
Serialization\Crc32.cs (9)
40public UInt32 Crc32Value 92UInt32 95UInt32 oldCrc 103UInt32 newCrc = 0; 107UInt32 idx = (byte)(oldCrc ^ (UInt32)data[n]); 119private UInt32 _crc32Value; 128private static UInt32 Crc32StartValue = 0xFFFFFFFF; 133private static UInt32[] Crc32Table = {
Serialization\ImageSourceTypeConverter.cs (3)
378UInt32 472Dictionary<UInt32, Uri> imageCrcTable = manager.ResourcePolicy.ImageCrcTable; 518private UInt32 _crc32HashValue;
Serialization\Manager\ReachFixedDocumentSerializer.cs (2)
61((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 98((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (2)
90((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 127((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (1)
42((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (1)
79((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\ReachSerializationUtils.cs (1)
467_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (1)
51_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (1)
68_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (1)
75_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>();
Replay (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
323var length = BitConverter.ToUInt32(lengthBuffer, 0);
Roslyn.Diagnostics.Analyzers (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Roslyn.Test.PdbUtilities (12)
Reader\Token2SourceLineExporter.cs (12)
286ReadUInt32(out var a); 453uint hashcode = InitHash(key, lbuckets.Length, out var seed, out var incr); 545uint hashcode = InitHash(key, _buckets.Length, out var seed, out var incr); 1322bits.ReadUInt32(out var token); 1323bits.ReadUInt32(out var file_id); 1324bits.ReadUInt32(out var line); 1325bits.ReadUInt32(out var column); 1326bits.ReadUInt32(out var endLine); 1327bits.ReadUInt32(out var endColumn); 1408bits.ReadUInt32(out var sig); // 0..3 Signature
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
67case TypeCode.UInt32: return FastCreate<UInt32>(target, pi); 111case TypeCode.UInt32: return FastCreate<T0, UInt32>(target, pi); 153case TypeCode.UInt32: return new FuncCallInstruction<T0, T1, UInt32>(target);
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
500var partialSum = sum & 0xFFFF; 501var carries = sum >> 16;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1966uint IConvertible.ToUInt32(IFormatProvider? provider) => throw InvalidCast(nameof(UInt32));
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
867[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt32))]
Test.Utilities (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
Text.Analyzers (70)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (70)
96var hc1 = (uint)(value1?.GetHashCode() ?? 0); 98var hash = MixEmptyState(); 109var hc1 = (uint)(value1?.GetHashCode() ?? 0); 110var hc2 = (uint)(value2?.GetHashCode() ?? 0); 112var hash = MixEmptyState(); 124var hc1 = (uint)(value1?.GetHashCode() ?? 0); 125var hc2 = (uint)(value2?.GetHashCode() ?? 0); 126var hc3 = (uint)(value3?.GetHashCode() ?? 0); 128var hash = MixEmptyState(); 141var hc1 = (uint)(value1?.GetHashCode() ?? 0); 142var hc2 = (uint)(value2?.GetHashCode() ?? 0); 143var hc3 = (uint)(value3?.GetHashCode() ?? 0); 144var hc4 = (uint)(value4?.GetHashCode() ?? 0); 146Initialize(out var v1, out var v2, out var v3, out var v4); 153var hash = MixState(v1, v2, v3, v4); 162var hc1 = (uint)(value1?.GetHashCode() ?? 0); 163var hc2 = (uint)(value2?.GetHashCode() ?? 0); 164var hc3 = (uint)(value3?.GetHashCode() ?? 0); 165var hc4 = (uint)(value4?.GetHashCode() ?? 0); 166var hc5 = (uint)(value5?.GetHashCode() ?? 0); 168Initialize(out var v1, out var v2, out var v3, out var v4); 175var hash = MixState(v1, v2, v3, v4); 186var hc1 = (uint)(value1?.GetHashCode() ?? 0); 187var hc2 = (uint)(value2?.GetHashCode() ?? 0); 188var hc3 = (uint)(value3?.GetHashCode() ?? 0); 189var hc4 = (uint)(value4?.GetHashCode() ?? 0); 190var hc5 = (uint)(value5?.GetHashCode() ?? 0); 191var hc6 = (uint)(value6?.GetHashCode() ?? 0); 193Initialize(out var v1, out var v2, out var v3, out var v4); 200var hash = MixState(v1, v2, v3, v4); 212var hc1 = (uint)(value1?.GetHashCode() ?? 0); 213var hc2 = (uint)(value2?.GetHashCode() ?? 0); 214var hc3 = (uint)(value3?.GetHashCode() ?? 0); 215var hc4 = (uint)(value4?.GetHashCode() ?? 0); 216var hc5 = (uint)(value5?.GetHashCode() ?? 0); 217var hc6 = (uint)(value6?.GetHashCode() ?? 0); 218var hc7 = (uint)(value7?.GetHashCode() ?? 0); 220Initialize(out var v1, out var v2, out var v3, out var v4); 227var hash = MixState(v1, v2, v3, v4); 240var hc1 = (uint)(value1?.GetHashCode() ?? 0); 241var hc2 = (uint)(value2?.GetHashCode() ?? 0); 242var hc3 = (uint)(value3?.GetHashCode() ?? 0); 243var hc4 = (uint)(value4?.GetHashCode() ?? 0); 244var hc5 = (uint)(value5?.GetHashCode() ?? 0); 245var hc6 = (uint)(value6?.GetHashCode() ?? 0); 246var hc7 = (uint)(value7?.GetHashCode() ?? 0); 247var hc8 = (uint)(value8?.GetHashCode() ?? 0); 249Initialize(out var v1, out var v2, out var v3, out var v4); 261var hash = MixState(v1, v2, v3, v4); 344var val = (uint)value; 348var previousLength = _length++; 349var position = previousLength % 4; 381var length = _length; 386var position = length % 4; 391var hash = length < 4 ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4);
TlsFeaturesObserve (2)
HttpSys\HttpSysConfigurator.cs (2)
58var status = HttpSetServiceConfiguration(nint.Zero, 103var retVal = HttpInitialize(HttpApiVersion, flags, IntPtr.Zero);
UIAutomationClientSideProviders (14)
MS\Internal\AutomationProxies\WindowsMenu.cs (13)
1503UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 1504UInt32 dwDelta = 0; 2160UInt32 dwTicks = SafeNativeMethods.GetTickCount (), dwDelta = 0; 2187UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2211private static UInt32 SubtractTicks (UInt32 last, UInt32 first) 2215return (UInt32) ((ulong) last + (ulong) UInt32.MaxValue + 1 - first); 2262UInt32 dwTicks = SafeNativeMethods.GetTickCount(); 2263UInt32 dwDelta = 0; 2327UInt32 dwTicks = SafeNativeMethods.GetTickCount (); 2328UInt32 dwDelta = 0;
MS\Win32\SafeNativeMethods.cs (1)
15public static extern UInt32 GetTickCount();
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2084return (UInt32)val;
vbc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
323var length = BitConverter.ToUInt32(lengthBuffer, 0);
VBCSCompiler (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
323var length = BitConverter.ToUInt32(lengthBuffer, 0);