1 instantiation of UInt64
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11944DefaultConstructor = delegate () { return new System.UInt64(); },
806 references to UInt64
aspire (1)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
393var durationNano = endTimeUnixNano.Value - startTimeUnixNano.Value;
Aspire.Dashboard (7)
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)
92var resolvedTimeUnixNano = record.TimeUnixNano != 0 ? record.TimeUnixNano : record.ObservedTimeUnixNano;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
393var durationNano = endTimeUnixNano.Value - startTimeUnixNano.Value;
Aspire.Dashboard.Tests (5)
Model\TelemetryImportServiceTests.cs (4)
427var timeUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(s_testTime); 468var timeUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(s_testTime); 469var endTimeUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(s_testTime.AddSeconds(1)); 516var timeUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(s_testTime);
TelemetryRepositoryTests\MetricsTests.cs (1)
317var nanoSeconds = DateTimeToUnixNanoseconds(start);
cdac-build-tool (1)
ObjectFileScraper.cs (1)
118var value = GetUInt64(_position);
dotnet-svcutil-lib (40)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
1333else if (e.Value is UInt64) 1335Output.Write(((UInt64)e.Value).ToString());
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (2)
1166else if (e.Value is UInt64) 1168Output.Write(((UInt64)e.Value).ToString(CultureInfo.InvariantCulture));
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;
GenerateDocumentationAndConfigFiles (41)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
78var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 80var result = constantValueULong; 89var valueAtIndex = fieldAndValue.value; 176var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 188var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 195var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeFormatWriterGen.cs (1)
2054public UInt64[] Value;
Microsoft.AspNetCore.Components (5)
_generated\0\LoggerMessage.g.cs (1)
199var EventId = this._eventId;
RenderTree\Renderer.cs (4)
531var latestEquivalentEventHandlerId = FindLatestEventHandlerIdInChain(eventHandlerId); 713var id = ++_lastEventHandlerId; 787while (_eventHandlerIdReplacements.TryGetValue(eventHandlerId, out var replacementEventHandlerId)) 1112var eventHandlerIdToRemove = array[i];
Microsoft.AspNetCore.Components.Server (15)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
677var data64 = unchecked((ulong)((nanoseconds << 34) | seconds));
src\aspnetcore\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\aspnetcore\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.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
45{ nameof(UInt64), "number" },
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\EnumExtensions.cs (2)
107var f = *(ulong*)&flags; 137var f = *(ulong*)&flags;
Microsoft.AspNetCore.Server.HttpSys (9)
NativeInterop\UrlGroup.cs (2)
38var statusCode = PInvoke.HttpCreateUrlGroup(_serverSession.Id.DangerousGetServerSessionId(), out var urlGroupId); 167var findUrlStatusCode = PInvoke.HttpFindUrlGroupId(uriPrefix, _requestQueue.Handle, out var _);
RequestProcessing\RequestContext.cs (3)
236var requestId = PinsReleased ? Request.RequestId : RequestId; 279var requestId = PinsReleased ? Request.RequestId : RequestId; 333var requestId = PinsReleased ? Request.RequestId : RequestId;
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (4)
182var currentCount = (ulong)_blocks.Count; 183var burstAmount = 0ul; 185var rentCount = _rentCount; 186var returnCount = _returnCount;
Microsoft.AspNetCore.Server.IIS (6)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (4)
182var currentCount = (ulong)_blocks.Count; 183var burstAmount = 0ul; 185var rentCount = _rentCount; 186var returnCount = _returnCount;
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Server.Kestrel.Core (12)
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\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (4)
182var currentCount = (ulong)_blocks.Count; 183var burstAmount = 0ul; 185var rentCount = _rentCount; 186var returnCount = _returnCount;
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
175var value = number; 181var quotient = value / 10;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (4)
182var currentCount = (ulong)_blocks.Count; 183var burstAmount = 0ul; 185var rentCount = _rentCount; 186var returnCount = _returnCount;
Microsoft.AspNetCore.Session (1)
SipHash.cs (1)
34var b = ((ulong)inlen) << 56;
Microsoft.AspNetCore.SignalR.Core (1)
DefaultHubLifetimeManager.cs (1)
345var id = Interlocked.Increment(ref _lastInvocationId);
Microsoft.Build (1)
Resources\Constants.cs (1)
361availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
Microsoft.Build.Tasks.Git (1)
GitDataReader\GitRefTableReader.cs (1)
191var refIndexPosition = ReadUInt64BE();
Microsoft.CodeAnalysis (45)
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
402var 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.Analyzers (41)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
78var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 80var result = constantValueULong; 89var valueAtIndex = fieldAndValue.value; 176var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 188var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 195var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
324TryMerge(convertedValue1, convertedValue2, binaryOperatorKind, out var convertedResult))
Microsoft.CodeAnalysis.CodeStyle (35)
src\roslyn\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 (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
78var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 80var result = constantValueULong; 89var valueAtIndex = fieldAndValue.value; 176var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 188var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 195var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Operators.cs (4)
2523var uint64Value = valueLeft.UInt64Value << valueRight.Int32Value; 3017var uint64Value = valueLeft.UInt64Value >> valueRight.Int32Value; 3023var uint64Value = valueLeft.UInt64Value >>> valueRight.Int32Value; 4712var value = (ulong)token.Value;
Parser\Lexer.cs (2)
1171var bit = (ulong)SyntaxFacts.BinaryValue(c); 1201else 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.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
29var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue);
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
33nameof(UInt64),
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
29var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue);
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
130var temp = currentValue * Base + (ulong)charValue;
Microsoft.CodeAnalysis.ResxSourceGenerator (35)
src\roslyn\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.Workspaces (45)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (2)
178var lengthBitset = 0UL; 852var lengthBitset = reader.ReadUInt64();
FindSymbols\TopLevelSyntaxTree\SparseNgramGenerator.cs (1)
75var a = text[pos] * Mul1 + text[pos + 1] * Mul2;
Recommendations\AbstractRecommendationServiceRunner.cs (1)
312AddSpecialTypeSymbolAndItsAliases(nameof(UInt64), SpecialType.System_UInt64);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
78var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 80var result = constantValueULong; 89var valueAtIndex = fieldAndValue.value; 176var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 188var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 195var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\Conversions.cs (1)
45if (ulong.TryParse(value, out var result))
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 (2)
Windows\WindowsContainerResourceQuotaProvider.cs (1)
82var memoryLimitInBytes = jobHandle.GetExtendedLimitInfo().JobMemoryLimit.ToUInt64();
Windows\WindowsSnapshotProvider.cs (1)
67var totalMemory = getTotalMemoryInBytesFunc();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
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.TensorFlow.Tests (4)
TensorflowTests.cs (4)
1579var labelCountFirst = labelTypeFirst.GetKeyCount(); 1582var labelCountSecond = labelTypeSecond.GetKeyCount(); 1738var labelCountFirst = labelTypeFirst.GetKeyCount(); 1741var labelCountSecond = labelTypeSecond.GetKeyCount();
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)
602var labelCount = labelType.GetKeyCount();
Microsoft.NET.HostModel (5)
MachO\MachObjectFile.cs (5)
442var currentLinkEditOffset = _linkEditSegment64.Command.GetFileOffset(_header); 443var linkEditSize = csOffset + csSize - currentLinkEditOffset; 475var linkEditFileSize = _linkEditSegment64.Command.GetFileSize(_header); 476var linkEditVMSize = _linkEditSegment64.Command.GetVMSize(_header); 477var linkEditStart = _linkEditSegment64.Command.GetFileOffset(_header);
Microsoft.Private.Windows.Core (2)
src\winforms\src\Microsoft.Private.Windows.Polyfills\system\NativeUintExtensions.cs (2)
16: unchecked((nuint)(UInt64.MinValue)); 21: unchecked((nuint)(UInt64.MaxValue));
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\runtime\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\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5497case KnownElements.UInt64: t = typeof(UInt64); break;
src\wpf\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\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2194command.hwnd = (UInt64)hWndUIntPtr; 2299command.pRenderTarget = (UInt64)pRenderTarget;
src\wpf\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)
6568var intValue = (ulong)(taskbarInfo.ProgressValue * precisionValue);
Roslyn.Diagnostics.Analyzers (41)
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
78var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 80var result = constantValueULong; 89var valueAtIndex = fieldAndValue.value; 176var value = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue); 188var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue); 195var fieldValue = underlyingSpecialType.ConvertUnderlyingValueToUInt64(field.ConstantValue);
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
29var constantValueULong = underlyingSpecialType.ConvertUnderlyingValueToUInt64(constantValue);
System.CommandLine (1)
Binding\ArgumentConverter.StringConverters.cs (1)
256if (ulong.TryParse(token, out var ulongValue))
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 (65)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1959ulong IConvertible.ToUInt64(IFormatProvider? provider) => throw InvalidCast(nameof(UInt64));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
17using NativeSignificandType = System.UInt64; 1027int IFloatingPoint<NFloat>.GetSignificandByteCount() => sizeof(NativeSignificandType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (60)
16using nuint_t = System.UInt64; 158get => sizeof(nuint_t); 168get => unchecked((nuint)nuint_t.MaxValue); 175get => unchecked((nuint)nuint_t.MinValue); 220public override string ToString() => ((nuint_t)_value).ToString(); 221public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ((nuint_t)_value).ToString(format); 222public string ToString(IFormatProvider? provider) => ((nuint_t)_value).ToString(provider); 223public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format, IFormatProvider? provider) => ((nuint_t)_value).ToString(format, provider); 226((nuint_t)_value).TryFormat(destination, out charsWritten, format, provider); 230((nuint_t)_value).TryFormat(utf8Destination, out bytesWritten, format, provider); 232public static nuint Parse(string s) => (nuint)nuint_t.Parse(s); 233public static nuint Parse(string s, NumberStyles style) => (nuint)nuint_t.Parse(s, style); 234public static nuint Parse(string s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 235public static nuint Parse(string s, NumberStyles style, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, style, provider); 236public static nuint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 237public static nuint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(s, style, provider); 242return nuint_t.TryParse(s, out Unsafe.As<nuint, nuint_t>(ref result)); 253return nuint_t.TryParse(s, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 259return nuint_t.TryParse(s, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 265return nuint_t.TryParse(s, out Unsafe.As<nuint, nuint_t>(ref result)); 275return nuint_t.TryParse(utf8Text, out Unsafe.As<nuint, nuint_t>(ref result)); 282return nuint_t.TryParse(s, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 288return nuint_t.TryParse(s, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 361if ((source.Length > sizeof(nuint_t)) && (source[..^sizeof(nuint_t)].ContainsAnyExcept((byte)0x00))) 370if (source.Length >= sizeof(nuint_t)) 373result = BinaryPrimitives.ReadUIntPtrBigEndian(source.Slice(source.Length - sizeof(nuint_t))); 409if ((source.Length > sizeof(nuint_t)) && (source[sizeof(nuint_t)..].ContainsAnyExcept((byte)0x00))) 418if (source.Length >= sizeof(nuint_t)) 445int IBinaryInteger<nuint>.GetShortestBitLength() => (sizeof(nuint_t) * 8) - BitOperations.LeadingZeroCount(_value); 448int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t); 455bytesWritten = sizeof(nuint_t); 468bytesWritten = sizeof(nuint_t); 484get => unchecked((nuint)nuint_t.MaxValue); 849result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : 850(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 868result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 874result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : (nuint)actualValue; 916result = (actualValue >= nuint_t.MaxValue) ? unchecked((nuint)nuint_t.MaxValue) : 917(actualValue <= nuint_t.MinValue) ? unchecked((nuint)nuint_t.MinValue) : (nuint)actualValue; 1218public static nuint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(utf8Text, style, provider); 1224return nuint_t.TryParse(utf8Text, style, provider, out Unsafe.As<nuint, nuint_t>(ref result)); 1228public static nuint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nuint)nuint_t.Parse(utf8Text, provider); 1234return nuint_t.TryParse(utf8Text, provider, out Unsafe.As<nuint, nuint_t>(ref result));
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
888[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UInt64))]
System.ServiceModel.Primitives (2)
Extensions\ReflectionExtensions.cs (1)
171if (type == typeof(UInt64))
System\ServiceModel\Channels\WsrmFault.cs (1)
561if (!UInt64.TryParse(maxMessageNumberString, out maxMessageNumber)
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2099return (UInt64)longVal;