1 instantiation of UInt64
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11944DefaultConstructor = delegate () { return new System.UInt64(); },
715 references to UInt64
Aspire.Dashboard (6)
Components\Controls\Chart\ChartBase.cs (4)
260var newValue = histogramValue.Values[valuesIndex]; 354var totalCount = 0ul; 355foreach (var count in counts) 361var accumulatedCount = 0ul;
Otlp\Model\MetricValues\HistogramValue.cs (1)
29foreach (var v in Values)
Otlp\Model\OtlpLogEntry.cs (1)
74var resolvedTimeUnixNano = record.TimeUnixNano != 0 ? record.TimeUnixNano : record.ObservedTimeUnixNano;
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
317var nanoSeconds = DateTimeToUnixNanoseconds(start);
CodeGenerator (7)
HttpUtilities\HttpUtilities.cs (2)
218var mask2 = (ulong)(Math.Pow(2, bitsCount) - 1); 285var asciiAsLong = GetAsciiStringAsLong(methodString);
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (3)
30var currentBitMask = one << i; 102var tmp = values[j] & currentMask; 154var currentBitMask = oneBit << i;
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
524GetMaskAndComp(name, offset, count, out var mask, out _); 557GetMaskAndComp(name, offset, count, out _, out var comp);
dotnet-svcutil-lib (38)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1333else if (e.Value is UInt64) 1335Output.Write(((UInt64)e.Value).ToString());
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (3)
3297map[(int)BinXmlToken.XSD_UNSIGNEDLONG] = typeof(UInt64); 4441private UInt64 GetUInt64(int pos) 4446return (UInt64)((ulong)hi) << 32 | lo;
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
859if (type == typeof(UInt64)) return "ulong";
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
903if (value < (decimal)UInt64.MinValue || value > (decimal)UInt64.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
335else if (type == typeof(UInt64))
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
163WriteElementStringRaw(@"unsignedLong", @"", Microsoft.Xml.XmlConvert.ToString((System.UInt64)((System.UInt64)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
539AddPrimitive(typeof(UInt64), "unsignedLong", "UInt64", TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 635AddSoapEncodedPrimitive(typeof(UInt64), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string", XmlSchema.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
270type == typeof(UInt64))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
363return typeof(UInt64); 427return typeof(UInt64); 775value = default(Nullable<UInt64>);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
318value = XmlConvert.ToString((UInt64)o);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (5)
781public static string ToString(UInt64 value) 1114public static UInt64 ToUInt64(string s) 1116return UInt64.Parse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1119internal static Exception TryToUInt64(string s, out UInt64 result) 1121if (!UInt64.TryParse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ExtensionQuery.cs (2)
122if (value is UInt64) return (double)(UInt64)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\TypeCode.cs (1)
51else if (type == typeof(UInt64))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
490internal virtual UInt64 ReadElementContentAsUnsignedLong()
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
527public override void WriteUInt64Text(UInt64 value)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (6)
343static public UInt64 ToUInt64(string value) 363static public UInt64 ToUInt64(byte[] buffer, int offset, int count) 427static public string ToString(UInt64 value) { return value.ToString(NumberFormatInfo.InvariantInfo); } 454else if (value is UInt64) 455return ToString((UInt64)value); 819static public int ToChars(UInt64 value, byte[] buffer, int offset)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlNodeWriter.cs (1)
81public abstract void WriteUInt64Text(UInt64 value);
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
146if (type == typeof(UInt64))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
453UInt64 milliseconds = Convert.ToUInt64(timeSpan.TotalMilliseconds);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
249UInt64 milliseconds = 0;
http2cat (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IIS.FunctionalTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IIS.LongTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IIS.NewHandler.FunctionalTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IIS.NewShim.FunctionalTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IIS.ShadowCopy.Tests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
IISExpress.FunctionalTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Components (4)
RenderTree\Renderer.cs (4)
475var latestEquivalentEventHandlerId = FindLatestEventHandlerIdInChain(eventHandlerId); 631var id = ++_lastEventHandlerId; 711while (_eventHandlerIdReplacements.TryGetValue(eventHandlerId, out var replacementEventHandlerId)) 1035var eventHandlerIdToRemove = array[i];
Microsoft.AspNetCore.Components.Server (15)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
677var data64 = unchecked((ulong)((nanoseconds << 34) | seconds));
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (2)
227/// Reads an <see cref="UInt64"/> as big endian. 229/// <returns>False if there wasn't enough data for an <see cref="UInt64"/>.</returns>
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (12)
176/// Reads an <see cref="UInt64"/> value from: 183public UInt64 ReadUInt64() 191return checked((UInt64)byteResult); 194return checked((UInt64)sbyteResult); 197return checked((UInt64)ushortResult); 200return checked((UInt64)shortResult); 203return checked((UInt64)uintResult); 206return checked((UInt64)intResult); 209return checked((UInt64)ulongResult); 212return checked((UInt64)longResult); 216return checked((UInt64)unchecked((sbyte)code)); 221return (UInt64)code;
Microsoft.AspNetCore.Components.Tests (58)
RendererTest.cs (58)
553var eventHandlerId = renderer.Batches.Single() 583var eventHandlerId = renderer.Batches.Single() 611var eventHandlerId = renderer.Batches.Single() 634var eventHandlerId = renderer.Batches.Single() 657var eventHandlerId = renderer.Batches.Single() 680var eventHandlerId = renderer.Batches.Single() 706var eventHandlerId = renderer.Batches.Single() 737var eventHandlerId = renderer.Batches.Single() 766var eventHandlerId = renderer.Batches.Single() 806var eventHandlerId = renderer.Batches[1] 844var eventHandlerId = renderer.Batches.Single() 887var eventHandlerId = renderer.Batches.Single() 930var eventHandlerId = renderer.Batches.Single() 984var eventHandlerId = renderer.Batches[1] 1032var eventHandlerId = renderer.Batches[0] 1076var eventHandlerId = renderer.Batches[0] 1115var eventHandlerId = renderer.Batches[0] 1156var eventHandlerId = renderer.Batches[0] 1198var eventHandlerId = renderer.Batches[0] 1234var eventHandlerId = renderer.Batches[0] 1275var eventHandlerId = renderer.Batches[0] 1317var eventHandlerId = renderer.Batches[0] 1352var eventHandlerId = renderer.Batches[0] 1384var eventHandlerId = renderer.Batches[0] 1418var eventHandlerId = renderer.Batches[0] 1453var eventHandlerId = renderer.Batches[0] 1485var eventHandlerId = renderer.Batches[0] 1520var eventHandlerId = renderer.Batches[0] 1555var eventHandlerId = renderer.Batches[0] 1587var eventHandlerId = renderer.Batches[0] 1622var eventHandlerId = renderer.Batches[0] 1659var eventHandlerId = renderer.Batches[0] 1694var eventHandlerId = renderer.Batches[0] 1732var eventHandlerId = renderer.Batches[0] 1771var eventHandlerId = renderer.Batches[0] 1809var eventHandlerId = renderer.Batches[0] 1850var eventHandlerId = renderer.Batches[0] 1891var eventHandlerId = renderer.Batches[0] 1928var eventHandlerId = renderer.Batches[0] 1968var eventHandlerId = renderer.Batches[0] 2648var eventHandlerId = batch.ReferenceFrames 2682var origEventHandlerId = renderer.Batches.Single() 2724var origEventHandlerId = renderer.Batches.Single() 2775var eventHandlerId = batch.ReferenceFrames 2810var origEventHandlerId = renderer.Batches.Single() 2863var origEventHandlerId = origBatchReferenceFrames 3055var origEventHandlerId = renderer.Batches.Single() 3088var checkboxChangeEventHandlerId = renderer.Batches.Single() 3130var checkboxChangeEventHandlerId = renderer.Batches.Single() 3169var checkboxChangeEventHandlerId = renderer.Batches.Single() 3209var checkboxChangeEventHandlerId = renderer.Batches.Single() 3249var checkboxChangeEventHandlerId = renderer.Batches.Single() 3505var eventHandlerId = renderer.Batches.Single() 4333var eventHandlerId = renderer.Batches.Single() 4381var eventHandlerId = renderer.Batches.Single() 4668var eventHandlerId = renderer.Batches.Single().ReferenceFrames 4707var eventHandlerId = renderer.Batches.Single().ReferenceFrames 4756var eventHandlerId = renderer.Batches.Single().ReferenceFrames
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestDocument.cs (1)
323var eventHandlerId = attributeFrame.AttributeEventHandlerId;
Microsoft.AspNetCore.Identity.FunctionalTests (2)
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (2)
94var currentTimeStep = GetCurrentTimeStepNumber(); 112var currentTimeStep = GetCurrentTimeStepNumber();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
45{ nameof(UInt64), "number" },
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.cs (1)
240var requestId = PinsReleased ? Request.RequestId : RequestId;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (6)
ProcessTracker.cs (6)
112public UInt64 ReadOperationCount; 113public UInt64 WriteOperationCount; 114public UInt64 OtherOperationCount; 115public UInt64 ReadTransferCount; 116public UInt64 WriteTransferCount; 117public UInt64 OtherTransferCount;
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\HttpHeaders.cs (1)
571TryReadLowerCaseUInt64(byteValue, out var result64) && result64 == chunkedStart)
Internal\Http\HttpHeaders.Generated.cs (2)
7795var firstTerm15 = (ReadUnalignedLittleEndian_ulong(ref nameStart) & 0xdfffdfdfdfdfdfdfuL); 14811var tempBits = (ulong)_bits;
Internal\Infrastructure\HttpUtilities.cs (3)
226var value = BinaryPrimitives.ReadUInt64LittleEndian(span); 411if (BinaryPrimitives.TryReadUInt64LittleEndian(span, out var version)) 434if (BinaryPrimitives.TryReadUInt64LittleEndian(span, out var scheme))
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
524GetMaskAndComp(name, offset, count, out var mask, out _); 557GetMaskAndComp(name, offset, count, out _, out var comp);
Microsoft.AspNetCore.Session (1)
SipHash.cs (1)
34var b = ((ulong)inlen) << 56;
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.SignalR.Core (1)
DefaultHubLifetimeManager.cs (1)
345var id = Interlocked.Increment(ref _lastInvocationId);
Microsoft.Build (1)
Resources\Constants.cs (1)
356availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
Microsoft.CodeAnalysis (45)
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
395var nextCaseLabelValue = caseLabelConstant.UInt64Value;
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (2)
214return startConstant.UInt64Value == UInt64.MinValue 215&& endConstant.UInt64Value == UInt64.MaxValue;
Collections\BitVector.cs (35)
9using Word = System.UInt64; 16private const Word ZeroWord = 0; 23private static Word[] s_emptyArray => Array.Empty<Word>(); 27private Word _bits0; 28private Word[] _bits; 31private BitVector(Word bits0, Word[] bits, int capacity) 107public IEnumerable<Word> Words() 127Word mask = ((Word)1) << bit; 137Word w = _bits[i]; 142Word mask = ((Word)1) << b; 154public static BitVector FromWords(Word bits0, Word[] bits, int capacity) 165Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 182Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 184Word bits0 = ~ZeroWord; 191Word lastBits = ~((~ZeroWord) << numTrailingBits); 215Word[] newBits; 222newBits = (Word[])_bits.Clone(); 275var oldV = _bits0; 276var newV = oldV & other._bits0; 286var oldV = thisBits[i]; 287var newV = oldV & other._bits[i]; 322Word oldbits = _bits0; 351var word = (i < 0) ? _bits0 : _bits[i]; 364Word mask = ((Word)1) << b; 388public static bool IsTrue(Word word, int index) 391Word mask = ((Word)1) << b;
ConstantValue.cs (1)
229public static ConstantValue Create(UInt64 value)
Desktop\AssemblyVersion.cs (2)
53var left = ToInteger(); 54var right = other.ToInteger();
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (4)
238var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 240var result = constantValueULong; 250var valueAtIndex = fieldAndValue.Value; 337var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
324TryMerge(convertedValue1, convertedValue2, binaryOperatorKind, out var convertedResult))
Microsoft.CodeAnalysis.CodeStyle (35)
src\Compilers\Core\Portable\Collections\BitVector.cs (35)
9using Word = System.UInt64; 16private const Word ZeroWord = 0; 23private static Word[] s_emptyArray => Array.Empty<Word>(); 27private Word _bits0; 28private Word[] _bits; 31private BitVector(Word bits0, Word[] bits, int capacity) 107public IEnumerable<Word> Words() 127Word mask = ((Word)1) << bit; 137Word w = _bits[i]; 142Word mask = ((Word)1) << b; 154public static BitVector FromWords(Word bits0, Word[] bits, int capacity) 165Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 182Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 184Word bits0 = ~ZeroWord; 191Word lastBits = ~((~ZeroWord) << numTrailingBits); 215Word[] newBits; 222newBits = (Word[])_bits.Clone(); 275var oldV = _bits0; 276var newV = oldV & other._bits0; 286var oldV = thisBits[i]; 287var newV = oldV & other._bits[i]; 322Word oldbits = _bits0; 351var word = (i < 0) ? _bits0 : _bits[i]; 364Word mask = ((Word)1) << b; 388public static bool IsTrue(Word word, int index) 391Word mask = ((Word)1) << b;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (1)
90var valueAtIndex = fieldAndValue.value;
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (1)
3503var value = (ulong)token.Value;
Parser\Lexer.cs (2)
1191var bit = (ulong)SyntaxFacts.BinaryValue(c); 1221else if (!UInt64.TryParse(text, isHex ? NumberStyles.AllowHexSpecifier : NumberStyles.None, CultureInfo.InvariantCulture, out result))
Symbols\Synthesized\RefKindVector.cs (1)
92foreach (var word in this.Words())
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
33nameof(UInt64),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (19)
LexicalAndXml\LexicalTests.cs (19)
2259var value = 123ul; 2285var value = 123Ul; 2311var value = 123uL; 2337var value = 123UL; 2363var value = 0x123ul; 2389var value = 0x123Ul; 2414var value = 0x123uL; 2440var value = 0x123UL; 2480var value = 0x123ul; 2506var value = 0x123Ul; 2531var value = 0x123uL; 2557var value = 0x123UL; 2645var value = ((ulong)Int64.MaxValue) + 1; 2661var text = UInt64.MaxValue.ToString() + "0U"; 2706var text = UInt64.MaxValue.ToString() + "UL"; 2714Assert.Equal(UInt64.MaxValue, token.Value); 2721var text = UInt64.MaxValue.ToString() + "0UL"; 2864var value = 0xFFFFFFFFFFFFFFFF; 3008var value = 0xFFFFFFFFFFFFFFFF;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (3)
142var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt64(); 322var remaining = underlyingValue; 325var fieldValue = field.Value;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (3)
142var uIntPtr = ((UIntPtr)value.HostObjectValue).ToUInt64(); 322var remaining = underlyingValue; 325var fieldValue = field.Value;
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\ProjectTelemetry\VsReferenceHashingAlgorithm.cs (1)
125var hashedBytes = ComputeHash(EncodeBytes(cleartext), Mask);
Microsoft.CodeAnalysis.UnitTests (2)
Collections\BitArrayTests.cs (1)
203foreach (var word in b.Words())
RealParserTests.cs (1)
181var tenToThePow = (ulong)BitConverter.DoubleToInt64Bits(value);
Microsoft.CodeAnalysis.Workspaces (42)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
312AddSpecialTypeSymbolAndItsAliases(nameof(UInt64), SpecialType.System_UInt64);
src\Compilers\Core\Portable\Collections\BitVector.cs (35)
9using Word = System.UInt64; 16private const Word ZeroWord = 0; 23private static Word[] s_emptyArray => Array.Empty<Word>(); 27private Word _bits0; 28private Word[] _bits; 31private BitVector(Word bits0, Word[] bits, int capacity) 107public IEnumerable<Word> Words() 127Word mask = ((Word)1) << bit; 137Word w = _bits[i]; 142Word mask = ((Word)1) << b; 154public static BitVector FromWords(Word bits0, Word[] bits, int capacity) 165Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 182Word[] bits = (requiredWords == 0) ? s_emptyArray : new Word[requiredWords]; 184Word bits0 = ~ZeroWord; 191Word lastBits = ~((~ZeroWord) << numTrailingBits); 215Word[] newBits; 222newBits = (Word[])_bits.Clone(); 275var oldV = _bits0; 276var newV = oldV & other._bits0; 286var oldV = thisBits[i]; 287var newV = oldV & other._bits[i]; 322Word oldbits = _bits0; 351var word = (i < 0) ? _bits0 : _bits[i]; 364Word mask = ((Word)1) << b; 388public static bool IsTrue(Word word, int index) 391Word mask = ((Word)1) << b;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
79var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 81var result = constantValueULong; 90var valueAtIndex = fieldAndValue.value; 177var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 189var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 196var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\Conversions.cs (1)
44if (ulong.TryParse(value, out var result))
Microsoft.CodeAnalysis.Workspaces.UnitTests (30)
ObjectSerializationTests.cs (28)
287TestRoundTripValue(UInt64.MaxValue); 381TestRoundTripValue<UInt64>(0); 382TestRoundTripValue<UInt64>(1); 383TestRoundTripValue<UInt64>(2); 384TestRoundTripValue<UInt64>(3); 385TestRoundTripValue<UInt64>(4); 386TestRoundTripValue<UInt64>(5); 387TestRoundTripValue<UInt64>(6); 388TestRoundTripValue<UInt64>(7); 389TestRoundTripValue<UInt64>(8); 390TestRoundTripValue<UInt64>(9); 391TestRoundTripValue<UInt64>(10); 392TestRoundTripValue<UInt64>(Byte.MinValue); 393TestRoundTripValue<UInt64>(Byte.MaxValue); 394TestRoundTripValue<UInt64>(UInt16.MinValue); 395TestRoundTripValue<UInt64>(UInt16.MaxValue); 396TestRoundTripValue<UInt64>(Int32.MaxValue); 397TestRoundTripValue<UInt64>(UInt32.MinValue); 398TestRoundTripValue<UInt64>(UInt32.MaxValue); 399TestRoundTripValue<UInt64>(UInt64.MinValue); 400TestRoundTripValue<UInt64>(UInt64.MaxValue); 422writer.WriteUInt64(UInt64.MaxValue); 446Assert.Equal(UInt64.MaxValue, reader.ReadUInt64()); 476writer.WriteScalarValue(UInt64.MaxValue); 514Assert.Equal(UInt64.MaxValue, (UInt64)reader.ReadScalarValue());
XxHash128Tests.cs (2)
141var high = BinaryPrimitives.ReadUInt64BigEndian(span); 142var low = BinaryPrimitives.ReadUInt64BigEndian(span.Slice(8));
Microsoft.Data.Analysis (44)
DataFrameColumnCollection.cs (1)
478throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt64)));
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (30)
7719var convertedValue = (ulong)value; 7724var convertedValue = (ulong)value; 7729var convertedValue = (ulong)value; 7734var convertedValue = (ulong)value; 7739var convertedValue = (ulong)value; 7744var convertedValue = (ulong)value; 7749var convertedValue = (ulong)value; 7754var convertedValue = (ulong)value; 7759var convertedValue = (ulong)value; 7764var convertedValue = (ulong)value; 8069var convertedValue = (ulong)value; 8074var convertedValue = (ulong)value; 8079var convertedValue = (ulong)value; 8084var convertedValue = (ulong)value; 8089var convertedValue = (ulong)value; 8094var convertedValue = (ulong)value; 8099var convertedValue = (ulong)value; 8104var convertedValue = (ulong)value; 8109var convertedValue = (ulong)value; 8114var convertedValue = (ulong)value; 8159var convertedValue = (ulong)value; 8164var convertedValue = (ulong)value; 8169var convertedValue = (ulong)value; 8174var convertedValue = (ulong)value; 8179var convertedValue = (ulong)value; 8184var convertedValue = (ulong)value; 8189var convertedValue = (ulong)value; 8194var convertedValue = (ulong)value; 8199var convertedValue = (ulong)value; 8204var convertedValue = (ulong)value;
PrimitiveDataFrameColumnComputations.cs (13)
5143var ret = column.Buffers[0].ReadOnlySpan[0]; 5166var ret = ulong.MinValue; 5207var ret = column.Buffers[0].ReadOnlySpan[0]; 5230var ret = ulong.MaxValue; 5271var ret = (ulong)1; 5294var ret = default(ulong); 5335var ret = (ulong)0; 5358var ret = default(ulong); 5399var value = ulong.MinValue; 5422var value = ulong.MinValue; 5447var value = ulong.MaxValue; 5470var value = ulong.MaxValue; 5539var value = (ulong)0;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Windows\WindowsContainerSnapshotProvider.cs (4)
90var memoryLimitLong = GetMemoryLimit(jobHandle); 97var memoryRequest = memoryLimitLong; 171var memoryLimitInBytes = jobHandle.GetExtendedLimitInfo().JobMemoryLimit.ToUInt64(); 197var memoryUsage = getMemoryUsage();
Windows\WindowsSnapshotProvider.cs (1)
65var totalMemory = getTotalMemoryInBytesFunc();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\LinuxUtilizationParserCgroupV1Tests.cs (2)
60var totalMem = parser.GetHostAvailableMemory(); 181var memory = p.GetHostAvailableMemory();
Linux\LinuxUtilizationParserCgroupV2Tests.cs (3)
63var totalMem = parser.GetHostAvailableMemory(); 135var result = p.GetAvailableMemoryInBytes(); 254var memory = p.GetHostAvailableMemory();
Windows\ProcessInfoTests.cs (1)
20var workingSet64 = new ProcessInfo().GetCurrentProcessMemoryUsage();
Microsoft.Extensions.Identity.Core (2)
Rfc6238AuthenticationService.cs (2)
94var currentTimeStep = GetCurrentTimeStepNumber(); 112var currentTimeStep = GetCurrentTimeStepNumber();
Microsoft.Extensions.ServiceDiscovery (8)
Http\HttpServiceEndpointResolver.cs (4)
191var status = Interlocked.And(ref _status, ~RecentUseFlag); 201var status = Interlocked.Increment(ref _status); 222var status = Interlocked.Decrement(ref _status); 237var status = Interlocked.Or(ref _status, DisposingFlag);
ServiceEndpointResolver.cs (4)
184var status = Interlocked.And(ref _status, ~RecentUseFlag); 194var status = Interlocked.Increment(ref _status); 214var status = Interlocked.Decrement(ref _status); 229var status = Interlocked.Or(ref _status, DisposingFlag);
Microsoft.Maui.Controls (2)
Xaml\TypeConversionExtensions.cs (2)
188 if (toType == typeof(UInt64)) 189 return UInt64.Parse(str, CultureInfo.InvariantCulture);
Microsoft.Maui.Controls.Build.Tasks (1)
NodeILExtensions.cs (1)
251 yield return Instruction.Create(OpCodes.Ldc_I8, unchecked((long)TryFormat(s => UInt64.Parse(s, CultureInfo.InvariantCulture), node, str)));
Microsoft.Maui.Controls.Xaml (2)
CreateValuesVisitor.cs (2)
363 if (nodeType == typeof(UInt64) && ulong.TryParse(valuestring, NumberStyles.Number, CultureInfo.InvariantCulture, out var uint64val))
Microsoft.ML.AutoML (4)
API\BinaryClassificationExperiment.cs (1)
173var rowCount = DatasetDimensionsUtil.CountRows(trainData, crossValRowCountThreshold);
API\ExperimentBase.cs (1)
117var rowCount = DatasetDimensionsUtil.CountRows(trainData, crossValRowCountThreshold);
API\MulticlassClassificationExperiment.cs (1)
158var rowCount = DatasetDimensionsUtil.CountRows(trainData, crossValRowCountThreshold);
API\RegressionExperiment.cs (1)
154var rowCount = DatasetDimensionsUtil.CountRows(trainData, crossValRowCountThreshold);
Microsoft.ML.AutoML.Tests (4)
TrainValidaionDatasetManagerTest.cs (2)
34var trainDataLength = DatasetDimensionsUtil.CountRows(trainData, ulong.MaxValue); 48var subSampleTrainDataLength = DatasetDimensionsUtil.CountRows(subSampleTrainData, ulong.MaxValue);
Utils\MLNetUtils\DataViewTestFixture.cs (2)
39dataBuilder.AddColumn(column.name, NumberDataViewType.UInt64, createDummyRow ? new System.UInt64[] { 0 } : new System.UInt64[] { });
Microsoft.ML.Core (3)
Data\DataKind.cs (1)
53/// <summary>8-byte unsigned integer, type of <see cref="System.UInt64"/>.</summary>
Utilities\FloatUtils.cs (2)
51var bits = Bits & ~MaskSign; 56var exp = Bits & MaskExp;
Microsoft.ML.CpuMath (17)
AvxIntrinsics.cs (12)
19using nuint = System.UInt64; 207Contracts.Assert(((nuint)(pMatTemp) % 32) == 0); 208Contracts.Assert(((nuint)(pSrcCurrent) % 32) == 0); 338Contracts.Assert(((nuint)(pMatTemp) % 32) == 0); 385Contracts.Assert(((nuint)(pMatTemp) % 32) == 0); 386Contracts.Assert(((nuint)(pDstCurrent) % 32) == 0); 471nuint address = (nuint)(pd); 529Contracts.Assert(((nuint)(pDstCurrent) % 32) == 0); 984nuint address = (nuint)(pValues); 1031Contracts.Assert(((nuint)(pValues) % 32) == 0);
SseIntrinsics.cs (5)
23using nuint = System.UInt64; 395nuint address = (nuint)(pd); 804nuint address = (nuint)(pValues);
Microsoft.ML.Data (64)
Data\Conversion.cs (50)
32using U8 = UInt64; 161AddStd<U1, U8>(Convert); 172AddStd<U2, U8>(Convert); 183AddStd<U4, U8>(Convert); 191AddStd<U8, U1>(Convert); 192AddStd<U8, U2>(Convert); 193AddStd<U8, U4>(Convert); 194AddStd<U8, U8>(Convert); 195AddStd<U8, UG>(Convert); 196AddStd<U8, R4>(Convert); 197AddStd<U8, R8>(Convert); 198AddAux<U8, SB>(Convert); 199AddStd<U8, BL>(Convert); 200AddStd<U8, TX>(Convert); 205AddStd<UG, U8>(Convert); 229AddStd<TX, U8>(Convert); 289AddIsDef<U8>(IsDefault); 298AddHasZero<U8>(HasZero); 307AddTryParse<U8>(TryParse); 521var convSrc = GetStandardConversion<TSrc, U8>(key, NumberDataViewType.UInt64, out identity); 522var convU8 = GetStringConversion<U8>(NumberDataViewType.UInt64); 603private ValueMapper<U8, TDst> GetKeyStandardConversion<TDst>() 605var delegatesKey = (typeof(U8), typeof(TDst)); 607throw Contracts.Except("No standard conversion from '{0}' to '{1}'", typeof(U8), typeof(TDst)); 608return (ValueMapper<U8, TDst>)del; 787private bool IsDefault(in U8 src) => src == 0; 798private bool HasZero(in VBuffer<U8> 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; } 842public void Convert(in U8 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0; 850public void Convert(in U8 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0; 858public void Convert(in U8 src, ref U4 dst) => dst = src <= U4.MaxValue ? (U4)src : (U4)0; 863public void Convert(in U1 src, ref U8 dst) => dst = src; 864public void Convert(in U2 src, ref U8 dst) => dst = src; 865public void Convert(in U4 src, ref U8 dst) => dst = src; 866public void Convert(in U8 src, ref U8 dst) => dst = src; 867public void Convert(in UG src, ref U8 dst) => dst = src.High == 0 ? src.Low : (U8)0; 874public void Convert(in U8 src, ref UG dst) => dst = new UG(src, 0); 889public void Convert(in U8 src, ref R4 dst) => dst = src; 907public void Convert(in U8 src, ref R8 dst) => dst = src; 922public void Convert(in U8 src, ref SB dst) => ClearDst(ref dst).Append(src); 947public void Convert(in U8 src, ref TX dst) => dst = src.ToString().AsMemory(); 967public void Convert(in U8 src, ref BL dst) => dst = System.Convert.ToBoolean(src); 1030public bool TryParse(in TX src, out U8 dst) 1148public bool TryParseKey(in TX src, U8 max, out U8 dst) 1162Contracts.Assert(max < U8.MaxValue); 1515private U8 ParseU8(in TX span) 1673public void Convert(in TX span, ref U8 value)
Data\DataViewTypeManager.cs (1)
30typeof(Int64), typeof(UInt64), typeof(Single), typeof(Double),
DataLoadSave\Binary\UnsafeTypeOps.cs (7)
40_type2ops[typeof(UInt64)] = new UInt64UnsafeTypeOps(); 136private sealed class UInt64UnsafeTypeOps : UnsafeTypeOps<UInt64> 138public override int Size { get { return sizeof(UInt64); } } 139public override unsafe void Apply(ReadOnlySpan<UInt64> array, Action<IntPtr> func) 141fixed (UInt64* pArray = &MemoryMarshal.GetReference(array)) 144public override void Write(UInt64 a, BinaryWriter writer) { writer.Write(a); } 145public override UInt64 Read(BinaryReader reader) { return reader.ReadUInt64(); }
Transforms\Hashing.cs (3)
163var keyCount = (ulong)1 << column.NumberOfBits; 728foreach (var value in values.DenseValues()) 826foreach (var value in values.DenseValues())
Transforms\ValueMapping.cs (2)
1152CastInputTo<UInt64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, NumberDataViewType.Int64); 1154CastInputTo<UInt64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.Instance);
Transforms\ValueToKeyMappingTransformer.cs (1)
861CastInputToString<UInt64>(ctx, out node, out termIds, srcVariableName, iinfo, opType, labelEncoderOutput);
Microsoft.ML.DataView (2)
DataViewRowId.cs (2)
168var h1 = Low; 169var h2 = High;
Microsoft.ML.OnnxTransformer (3)
OnnxTypeParser.cs (1)
57scalarType = typeof(System.UInt64);
OnnxUtils.cs (2)
504typeof(UInt64), 520{ typeof(UInt64) , InternalDataKind.U8},
Microsoft.ML.Sweeper (1)
Parameters.cs (1)
613|| paramType == typeof(UInt64)
Microsoft.ML.Transforms (4)
Expression\Node.cs (1)
778var uu = ilt.Value;
HashJoiningTransform.cs (1)
149var keyCount = (ulong)1 << numberOfBits;
SvmLight\SvmLightLoader.cs (1)
694if (!parser(in values[i], out var val) || val > int.MaxValue)
Text\NgramTransform.cs (1)
787((vectorType.RawType == typeof(VBuffer<UInt32>)) || (vectorType.RawType == typeof(VBuffer<UInt64>)) ||
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
767var size = c_api.TF_StringEncodedSize((ulong)length);
Microsoft.VisualBasic.Core (55)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (26)
129If TypeOf Value Is UInt64 Then 130Return CBool(DirectCast(Value, UInt64)) 272If TypeOf Value Is UInt64 Then 273Return CByte(DirectCast(Value, UInt64)) 419If TypeOf Value Is UInt64 Then 420Return CSByte(DirectCast(Value, UInt64)) 562If TypeOf Value Is UInt64 Then 563Return CShort(DirectCast(Value, UInt64)) 708If TypeOf Value Is UInt64 Then 709Return CUShort(DirectCast(Value, UInt64)) 851If TypeOf Value Is UInt64 Then 852Return CInt(DirectCast(Value, UInt64)) 996If TypeOf Value Is UInt64 Then 997Return CUInt(DirectCast(Value, UInt64)) 1142If TypeOf Value Is UInt64 Then 1143Return CLng(DirectCast(Value, UInt64)) 1198Dim ui64Value As UInt64 1289If TypeOf Value Is UInt64 Then 1290Return CULng(DirectCast(Value, UInt64)) 1448If TypeOf Value Is UInt64 Then 1449Return CDec(DirectCast(Value, UInt64)) 1688If TypeOf Value Is UInt64 Then 1689Return CSng(DirectCast(Value, UInt64)) 1833If TypeOf Value Is UInt64 Then 1834Return CDbl(DirectCast(Value, UInt64)) 2406Private Shared Function CastUInt64Enum(ByVal Expression As UInt64, ByVal TargetType As Type) As Object
Microsoft\VisualBasic\CompilerServices\Operators.vb (27)
786Private Shared Function CompareUInt64(ByVal left As UInt64, ByVal right As UInt64) As CompareClass 1011If TypeOf Operand Is UInt64 Then 1012Return NegateUInt64(DirectCast(Operand, UInt64)) 1105Private Shared Function NegateUInt64(ByVal operand As UInt64) As Object 1259Private Shared Function NotUInt64(ByVal operand As UInt64, ByVal operandType As Type) As Object 1260Dim result As UInt64 = Not operand 1641Private Shared Function AndUInt64(ByVal left As UInt64, ByVal right As UInt64, Optional ByVal enumType As Type = Nothing) As Object 1642Dim result As UInt64 = left And right 2013Private Shared Function OrUInt64(ByVal left As UInt64, ByVal right As UInt64, Optional ByVal enumType As Type = Nothing) As Object 2014Dim result As UInt64 = left Or right 2406Private Shared Function XorUInt64(ByVal left As UInt64, ByVal right As UInt64, Optional ByVal enumType As Type = Nothing) As Object 2407Dim result As UInt64 = left Xor right 2890Private Shared Function AddUInt64(ByVal left As UInt64, ByVal right As UInt64) As Object 3358Private Shared Function SubtractUInt64(ByVal left As UInt64, ByVal right As UInt64) As Object 3783Dim result As UInt64 = CULng(left) * CULng(right) 3809Private Shared Function MultiplyUInt64(ByVal left As UInt64, ByVal right As UInt64) As Object 4633Private Shared Function ModUInt64(ByVal left As UInt64, ByVal right As UInt64) As Object 5019Private Shared Function IntDivideUInt64(ByVal left As UInt64, ByVal right As UInt64) As Object
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
295Friend Shared Function IsHexOrOctValue(ByVal value As String, ByRef ui64Value As UInt64) As Boolean
Microsoft\VisualBasic\Strings.vb (1)
570Public Function Len(ByVal Expression As UInt64) As Integer
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1217[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt64))]
netstandard (1)
netstandard.cs (1)
2218[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt64))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5497case KnownElements.UInt64: t = typeof(UInt64); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
176else if (typeof(UInt64).IsAssignableFrom(type))
PresentationCore (41)
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
266else if (typeof(UInt64) == type) 270else if (typeof(UInt64[]) == type)
MS\Win32\UnsafeNativeMethodsPointer.cs (1)
393internal UInt64 PerformanceCount;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2194command.hwnd = (UInt64)hWndUIntPtr; 2299command.pRenderTarget = (UInt64)pRenderTarget;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\Generated\wgx_commands.cs (12)
44[FieldOffset(4)] internal UInt64 FrameTime; 51[FieldOffset(8)] internal UInt64 pInteropDeviceBitmap; 52[FieldOffset(16)] internal UInt64 pSoftwareBitmap; 59[FieldOffset(8)] internal UInt64 hEvent; 309[FieldOffset(8)] internal UInt64 hwnd; 310[FieldOffset(16)] internal UInt64 hSection; 311[FieldOffset(24)] internal UInt64 masterDevice; 351[FieldOffset(8)] internal UInt64 hwnd; 352[FieldOffset(16)] internal UInt64 pRenderTarget; 399[FieldOffset(8)] internal UInt64 pIDWriteFont; 414[FieldOffset(8)] internal UInt64 SwDoubleBufferedBitmap; 422[FieldOffset(8)] internal UInt64 CopyCompletedEvent;
System\Windows\Media\ColorTransform.cs (12)
157colorValue = (long)(((UInt64)channel[3] << 48) + ((UInt64)channel[2] << 32) + ((UInt64)channel[1] << 16) + (UInt64)channel[0]); 179colorValue = (long)(((UInt64)channel[7] << 56) + ((UInt64)channel[6] << 48) + 180((UInt64)channel[5] << 40) + ((UInt64)channel[4] << 32) + 181((UInt64)channel[3] << 24) + ((UInt64)channel[2] << 16) + 182((UInt64)channel[1] << 8) + ((UInt64)channel[0] << 0));
System\Windows\Media\GlyphRun.cs (1)
1876command.pIDWriteFont = (UInt64)_glyphTypeface.GetDWriteFontAddRef;
System\Windows\Media\Imaging\PropVariant.cs (9)
76[FieldOffset(8)] internal UInt64 ulVal; 275else if (type == typeof(UInt64[])) 277InitVector(value as Array, typeof(UInt64), VarEnum.VT_UI8); 366else if (type == typeof(UInt64)) 369ulVal = (UInt64)value; 548UInt64[] array = new UInt64[ca.cElems]; 550array[i] = (UInt64) Marshal.ReadInt64(ca.pElems, i*sizeof(UInt64));
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
1215command.SwDoubleBufferedBitmap = (UInt64) _pDoubleBufferedBitmap.DangerousGetHandle().ToPointer(); 1309command.CopyCompletedEvent = (UInt64) hDuplicate.ToInt64();
PresentationFramework (6)
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
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
792case 699: t = () => typeof(UInt64); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11941typeof(System.UInt64),
System\Windows\Markup\KnownTypes.cs (1)
6246case KnownElements.UInt64: t = typeof(System.UInt64); break;
System\Windows\Window.cs (1)
6580var intValue = (ulong)(taskbarInfo.ProgressValue * precisionValue);
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
68case TypeCode.UInt64: return FastCreate<UInt64>(target, pi); 112case TypeCode.UInt64: return FastCreate<T0, UInt64>(target, pi); 154case TypeCode.UInt64: return new FuncCallInstruction<T0, T1, UInt64>(target);
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
14using nuint_t = System.UInt64; 178public static nuint ReverseEndianness(nuint value) => (nuint)ReverseEndianness((nuint_t)value);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1968ulong IConvertible.ToUInt64(IFormatProvider? provider) => throw InvalidCast(nameof(UInt64));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (8)
18using NativeSignificandType = System.UInt64; 1028int IFloatingPoint<NFloat>.GetSignificandByteCount() => sizeof(NativeSignificandType); 1091if (destination.Length >= sizeof(NativeSignificandType)) 1093NativeSignificandType significand = _value.Significand; 1102bytesWritten = sizeof(NativeSignificandType); 1115if (destination.Length >= sizeof(NativeSignificandType)) 1117NativeSignificandType significand = _value.Significand; 1126bytesWritten = sizeof(NativeSignificandType);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (59)
16using nuint_t = System.UInt64; 158get => sizeof(nuint_t); 168get => unchecked((nuint)nuint_t.MaxValue); 175get => unchecked((nuint)nuint_t.MinValue); 202public override string ToString() => ((nuint_t)_value).ToString(); 203public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ((nuint_t)_value).ToString(format); 204public string ToString(IFormatProvider? provider) => ((nuint_t)_value).ToString(provider); 205public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format, IFormatProvider? provider) => ((nuint_t)_value).ToString(format, provider); 208((nuint_t)_value).TryFormat(destination, out charsWritten, format, provider); 212((nuint_t)_value).TryFormat(utf8Destination, out bytesWritten, format, provider); 214public static nuint Parse(string s) => (nuint)nuint_t.Parse(s); 215public static nuint Parse(string s, NumberStyles style) => (nuint)nuint_t.Parse(s, style); 216public static nuint Parse(string s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 217public static nuint Parse(string s, NumberStyles style, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, style, provider); 218public static nuint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 219public static nuint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(s, style, provider); 224return nuint_t.TryParse(s, out Unsafe.As<nuint, nuint_t>(ref result)); 235return nuint_t.TryParse(s, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 241return nuint_t.TryParse(s, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 247return nuint_t.TryParse(s, out Unsafe.As<nuint, nuint_t>(ref result)); 257return nuint_t.TryParse(utf8Text, out Unsafe.As<nuint, nuint_t>(ref result)); 264return nuint_t.TryParse(s, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 270return nuint_t.TryParse(s, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 333if ((source.Length > sizeof(nuint_t)) && (source[..^sizeof(nuint_t)].ContainsAnyExcept((byte)0x00))) 344if (source.Length >= sizeof(nuint_t)) 346sourceRef = ref Unsafe.Add(ref sourceRef, source.Length - sizeof(nuint_t)); 390if ((source.Length > sizeof(nuint_t)) && (source[sizeof(nuint_t)..].ContainsAnyExcept((byte)0x00))) 401if (source.Length >= sizeof(nuint_t)) 433int IBinaryInteger<nuint>.GetShortestBitLength() => (sizeof(nuint_t) * 8) - BitOperations.LeadingZeroCount(_value); 436int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t); 443bytesWritten = sizeof(nuint_t); 456bytesWritten = sizeof(nuint_t); 842result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : 843(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 861result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 867result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 909result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : 910(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 1211public static nuint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(utf8Text, style, provider); 1217return nuint_t.TryParse(utf8Text, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 1221public static nuint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nuint)nuint_t.Parse(utf8Text, provider); 1227return nuint_t.TryParse(utf8Text, provider, out Unsafe.As<nuint, nuint_t>(ref result));
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
868[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt64))]
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2099return (UInt64)longVal;