5 instantiations of Int64
PresentationCore (4)
System\Windows\Media\Animation\Generated\Int64Animation.cs (4)
233Int64 from = new Int64(); 234Int64 to = new Int64(); 235Int64 accumulated = new Int64(); 236Int64 foundation = new Int64();
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5763bamlType.DefaultConstructor = delegate() { return new System.Int64(); };
981 references to Int64
BasicWebSite (1)
ActionDescriptorCreationCounter.cs (1)
16var callCount = Interlocked.Read(ref _callCount);
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
57var allocated = GC.GetTotalMemory(forceFullCollection: false);
http2cat (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (2)
43var headerStart = timings[(int)HttpSysRequestTimingType.RequestHeaderParseStart]; 44var headerEnd = timings[(int)HttpSysRequestTimingType.RequestHeaderParseEnd];
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.LongTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
IIS.Tests (1)
MaxRequestBodySizeTests.cs (1)
27var globalMaxRequestBodySize = 0x100000000;
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (2)
43var headerStart = timings[(int)HttpSysRequestTimingType.RequestHeaderParseStart]; 44var headerEnd = timings[(int)HttpSysRequestTimingType.RequestHeaderParseEnd];
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
InMemory.FunctionalTests (19)
Http2\Http2TestBase.cs (2)
1359var timestamp = _serviceContext.FakeTimeProvider.GetTimestamp(); 1367var endTime = timeProvider.GetTimestamp(timeSpan);
Http3\Http3TimeoutTests.cs (4)
126var timestamp = timeProvider.GetTimestamp(); 160var timestamp = _serviceContext.FakeTimeProvider.GetTimestamp(); 214var timestamp = timeProvider.GetTimestamp(); 241var timestamp = timeProvider.GetTimestamp();
MaxRequestBodySizeTests.cs (3)
24var globalMaxRequestBodySize = 0x100000000; 155var globalMaxRequestBodySize = 0x200000000; 157var perRequestMaxRequestBodySize = 0x100000000;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (10)
98var id = (_currentStreamId << 2) | mask; 119var streamId = await stream.TryReadStreamIdAsync(); 190if (!VariableLengthIntegerHelper.TryRead(payload.Span, out var streamId, out var _)) 205var endTime = timeProvider.GetTimestamp(timeSpan); 220var timestamp = _fakeTimeProvider.GetTimestamp(); 455var requestStreamId = GetStreamId(0x00); 842var id = VariableLengthIntegerHelper.GetInteger(payload, out var consumed, out _); 850var value = VariableLengthIntegerHelper.GetInteger(payload, out consumed, out _); 932var id = VariableLengthIntegerHelper.GetInteger(readableBuffer, out consumed, out examined); 973if (!VariableLengthIntegerHelper.TryRead(payload.Span, out var streamId, out var _))
Microsoft.AspNetCore.Components (8)
BindConverter.cs (4)
818/// Attempts to convert a value to a <see cref="System.Int64"/>. 830/// Attempts to convert a value to a nullable <see cref="System.Int64"/>. 853if (!long.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 872if (!long.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted))
ElementReference.cs (1)
61var id = Interlocked.Increment(ref _nextIdForWebAssemblyOnly);
src\Http\Routing\src\Constraints\MaxRouteConstraint.cs (1)
66if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
src\Http\Routing\src\Constraints\MinRouteConstraint.cs (1)
64if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
src\Http\Routing\src\Constraints\RangeRouteConstraint.cs (1)
78if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
Microsoft.AspNetCore.Components.Server (25)
Circuits\CircuitHost.cs (1)
740var batchId = operationBatch.BatchId;
Circuits\RemoteRenderer.cs (2)
162var renderId = Interlocked.Increment(ref _nextRenderId); 268var lastBatchId = nextUnacknowledgedBatch.BatchId;
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (4)
243var headerCount = ReadMapLength(ref reader, "headers"); 268var streamIdCount = ReadArrayLength(ref reader, "streamIds"); 298var argumentCount = ReadArrayLength(ref reader, "arguments"); 368var dataLength = memoryBufferWriter.Length;
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (3)
643var secondsSinceBclEpoch = dateTime.Ticks / TimeSpan.TicksPerSecond; 644var seconds = secondsSinceBclEpoch - DateTimeConstants.BclSecondsAtUnixEpoch; 645var nanoseconds = (dateTime.Ticks % TimeSpan.TicksPerSecond) * DateTimeConstants.NanosecondsPerTick;
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (2)
213/// Reads an <see cref="Int64"/> as big endian. 215/// <returns>False if there wasn't enough data for an <see cref="Int64"/>.</returns>
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (12)
388/// Reads an <see cref="Int64"/> value from: 395public Int64 ReadInt64() 403return checked((Int64)byteResult); 406return checked((Int64)sbyteResult); 409return checked((Int64)ushortResult); 412return checked((Int64)shortResult); 415return checked((Int64)uintResult); 418return checked((Int64)intResult); 421return checked((Int64)ulongResult); 424return checked((Int64)longResult); 428return checked((Int64)unchecked((sbyte)code)); 433return (Int64)code;
Microsoft.AspNetCore.Components.Server.Tests (10)
Circuits\RemoteJSDataStreamTest.cs (9)
50var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 78var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 106var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 124var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 143var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 163var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 183var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 220var streamId = GetStreamId(remoteJSDataStream, jsRuntime); 261var streamId = GetStreamId(remoteJSDataStream, jsRuntime);
Circuits\RemoteRendererTest.cs (1)
176foreach (var id in renderIds.ToArray())
Microsoft.AspNetCore.Components.Tests (2)
EventCallbackFactoryBinderExtensionsTest.cs (2)
197var value = (long)17; 203var expectedValue = (long)42;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFileStream.cs (1)
72var bytesAvailableToRead = Length - Position;
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
PullFromJSDataStreamTest.cs (3)
128var offset = (long)args[1]; 147var offset = (long)args[1]; 161var offset = (long)args[1];
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewRenderer.cs (1)
47var batchId = nextRenderBatchId++;
Microsoft.AspNetCore.ConcurrencyLimiter (1)
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
332var posPurposeCount = writer.Seek(sizeof(Guid), SeekOrigin.Current); // skip over where the key id will be stored; we'll fill it in later
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
156var timeoutTicks = Environment.TickCount64 + InternalTesting.TaskExtensions.DefaultTimeoutDuration;
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
341var contentLength = serverCallContext.HttpContext.Request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
140var startTimestamp = context.StartTimestamp;
Microsoft.AspNetCore.Http (1)
Internal\ReferenceReadStream.cs (1)
95var toRead = Math.Min(count, _length - _position);
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionManager.cs (1)
97var currentTimestamp = (connection.StartTimestamp > 0) ? Stopwatch.GetTimestamp() : default;
ServerSentEventsMessageFormatter.cs (2)
50var totalLength = source.Length; 87var memory = GetLastSegment(lineSegment, out var offset);
Microsoft.AspNetCore.Http.Extensions (1)
HeaderDictionaryTypeExtensions.cs (1)
151private static long? ParseCacheInt64(string value) => HeaderUtilities.TryParseNonNegativeInt64(value, out var result) ? result : null;
Microsoft.AspNetCore.Http.Results (8)
PhysicalFileHttpResult.cs (1)
148var offset = 0L;
src\Shared\RangeHelper\RangeHelper.cs (1)
121var bytes = Math.Min(end.Value, length);
src\Shared\ResultsHelpers\FileResultHelper.cs (5)
329var rangeLength = SetContentLength(response, range); 336var start = range.From!.Value; 337var end = range.To!.Value; 338var length = end - start + 1; 392var ticksToRemove = dateTimeOffset.Ticks % TimeSpan.TicksPerSecond;
VirtualFileHttpResult.cs (1)
138var offset = 0L;
Microsoft.AspNetCore.HttpLogging (2)
BufferingStream.cs (1)
73EncodingExtensions.Convert(decoder, ros, bufferWriter, flush: false, out var charUsed, out var completed);
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.Identity.FunctionalTests (12)
MapIdentityApiTests.cs (10)
698var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 699var timestep = Convert.ToInt64(unixTimestamp / 30); 739var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 740var timestep = Convert.ToInt64(unixTimestamp / 30); 791var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 792var timestep = Convert.ToInt64(unixTimestamp / 30); 838var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 839var timestep = Convert.ToInt64(unixTimestamp / 30); 907var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 908var timestep = Convert.ToInt64(unixTimestamp / 30);
Pages\Account\Manage\EnableAuthenticator.cs (2)
49var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 50var timestep = Convert.ToInt64(unixTimestamp / 30);
Microsoft.AspNetCore.MiddlewareAnalysis (3)
AnalysisMiddleware.cs (3)
46var startTimestamp = Stopwatch.GetTimestamp(); 66var currentTimestamp = Stopwatch.GetTimestamp(); 83var currentTimestamp = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.Mvc.Core (7)
src\Shared\RangeHelper\RangeHelper.cs (1)
121var bytes = Math.Min(end.Value, length);
src\Shared\ResultsHelpers\FileResultHelper.cs (5)
329var rangeLength = SetContentLength(response, range); 336var start = range.From!.Value; 337var end = range.To!.Value; 338var length = end - start + 1; 392var ticksToRemove = dateTimeOffset.Ticks % TimeSpan.TicksPerSecond;
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.Mvc.Core.Test (2)
FileResultHelperTest.cs (2)
409var ticks = 636588698625969382; 447var ticks = 636588698625969382;
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (2)
114var position = request.Body.Position; 123var contentLength = request.ContentLength.GetValueOrDefault();
XmlSerializerInputFormatter.cs (2)
98var position = request.Body.Position; 107var contentLength = request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonInputFormatter.cs (2)
114var position = request.Body.Position; 123var contentLength = request.ContentLength.GetValueOrDefault();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
BsonTempDataSerializerTest.cs (1)
171var roundTripValue = Assert.IsType<long>(values[key]);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
RuntimeViewCompiler.cs (2)
337var startTimestamp = _logger.IsEnabled(LogLevel.Debug) ? Stopwatch.GetTimestamp() : 0; 422var currentTimestamp = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.Mvc.TagHelpers (2)
GlobbingUrlBuilder.cs (1)
154var sizeInBytes = 0L;
InputTagHelper.cs (1)
44{ nameof(Int64), "number" },
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
103if (reader.TryGetInt64(out var longValue))
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiComponentService\OpenApiComponentService.ResponseSchemas.cs (1)
13[() => Int64.MaxValue, "application/json", "integer", "int64"],
Microsoft.AspNetCore.OutputCaching (4)
CacheEntryHelpers.cs (1)
39var size = 0L;
FormatterBinaryWriter.cs (1)
101var actual = Encoding.UTF8.GetBytes(value, target);
OutputCacheEntryFormatter.cs (2)
244var ticks = reader.Read7BitEncodedInt64(); 245var offsetMinutes = reader.Read7BitEncodedInt64();
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
RedisOutputCacheStore.cs (2)
470var ticks = value == DateTimeOffset.MinValue ? 0L : value.UtcTicks; 481var ticks = Volatile.Read(ref field); // avoid torn values
Microsoft.AspNetCore.RateLimiting (3)
RateLimitingMiddleware.cs (2)
97var startTimestamp = Stopwatch.GetTimestamp(); 166var startTimestamp = Stopwatch.GetTimestamp();
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.ResponseCaching (2)
CacheEntry\CacheEntryHelpers.cs (2)
50var size = 0L; 72var size = 0L;
Microsoft.AspNetCore.Routing (3)
Constraints\MaxRouteConstraint.cs (1)
66if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
Constraints\MinRouteConstraint.cs (1)
64if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
Constraints\RangeRouteConstraint.cs (1)
78if (long.TryParse(valueString, NumberStyles.Integer, CultureInfo.InvariantCulture, out var longValue))
Microsoft.AspNetCore.Server.HttpSys (14)
RequestProcessing\Request.cs (1)
216long.TryParse(length.Trim(), NumberStyles.None, CultureInfo.InvariantCulture.NumberFormat, out var value))
RequestProcessing\ResponseBody.cs (1)
640var length = fileStream.Length; // Expensive, only do it once
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (10)
200if (TryGetTimestamp(startingTimestampType, out var startTimestamp) && TryGetTimestamp(endingTimestampType, out var endTimestamp)) 444var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 479var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 512var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 547var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 586var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 675var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 754var fixup = (byte*)nativeRequest - (byte*)baseAddress; 791var fixup = (byte*)nativeRequest - (byte*)baseAddress;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
TimeoutManager.cs (1)
182var timeoutValue = Convert.ToInt64(value.TotalSeconds);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
HttpsTests.cs (4)
245Assert.True(requestTimingFeature.TryGetTimestamp(HttpSysRequestTimingType.RequestHeaderParseStart, out var headerStart)); 246Assert.True(requestTimingFeature.TryGetTimestamp(HttpSysRequestTimingType.RequestHeaderParseEnd, out var headerEnd)); 249Assert.False(requestTimingFeature.TryGetTimestamp(HttpSysRequestTimingType.Http3StreamStart, out var streamStart)); 250Assert.False(requestTimingFeature.TryGetTimestamp((HttpSysRequestTimingType)int.MaxValue, out var invalid));
Microsoft.AspNetCore.Server.IIS (12)
Core\IISHttpContext.IO.cs (1)
36var actual = Math.Min(readableBuffer.Length, memory.Length);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (10)
200if (TryGetTimestamp(startingTimestampType, out var startTimestamp) && TryGetTimestamp(endingTimestampType, out var endTimestamp)) 444var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 479var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 512var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 547var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 586var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 675var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 754var fixup = (byte*)nativeRequest - (byte*)baseAddress; 791var fixup = (byte*)nativeRequest - (byte*)baseAddress;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
ProcessTracker.cs (3)
92public Int64 PerProcessUserTimeLimit; 93public Int64 PerJobUserTimeLimit; 98public Int64 Affinity;
Microsoft.AspNetCore.Server.Kestrel.Core (154)
Internal\ConnectionDispatcher.cs (1)
53var id = _transportConnectionManager.GetNewConnectionId();
Internal\Http\Http1ChunkedEncodingMessageBody.cs (2)
365var charsToByteCRExclusive = buffer.Slice(0, extensionCursor).Length; 400var actual = Math.Min(buffer.Length, _inputLength);
Internal\Http\Http1Connection.cs (1)
236var alreadyConsumed = reader.Consumed;
Internal\Http\Http1ContentLengthMessageBody.cs (4)
100var returnedReadResultLength = CreateReadResultFromConnectionReadResult(); 168var returnedReadResultLength = CreateReadResultFromConnectionReadResult(); 187var initialLength = _readResult.Buffer.Length; 188var maxLength = _unexaminedInputLength + _examinedUnconsumedBytes;
Internal\Http\Http1MessageBody.cs (1)
191var contentLength = headers.ContentLength.Value;
Internal\Http\Http1OutputProducer.cs (3)
161var bytesWritten = _unflushedBytes; 178var bytesWritten = producer._unflushedBytes + writer.BytesCommitted; 579var bytesWritten = _unflushedBytes + writer.BytesCommitted;
Internal\Http\HttpHeaders.Generated.cs (90)
611var flag = 0x1L; 639var flag = 0x2L; 667var flag = 0x4L; 695var flag = 0x8L; 723var flag = 0x200L; 751var flag = 0x400L; 779var flag = 0x800L; 807var flag = 0x1000L; 835var flag = 0x2000L; 863var flag = 0x8000L; 891var flag = 0x10000L; 919var flag = 0x20000L; 947var flag = 0x40000L; 975var flag = 0x80000L; 1003var flag = 0x100000L; 1031var flag = 0x200000L; 1059var flag = 0x400000L; 1087var flag = 0x800000L; 1115var flag = 0x1000000L; 1143var flag = 0x2000000L; 1171var flag = 0x4000000L; 1199var flag = 0x8000000L; 1227var flag = 0x10000000L; 1255var flag = 0x20000000L; 1283var flag = 0x40000000L; 1311var flag = 0x80000000L; 1339var flag = 0x100000000L; 1367var flag = 0x200000000L; 1395var flag = 0x400000000L; 1423var flag = 0x800000000L; 1451var flag = 0x1000000000L; 1479var flag = 0x2000000000L; 1507var flag = 0x4000000000L; 1535var flag = 0x8000000000L; 1563var flag = 0x10000000000L; 1591var flag = 0x20000000000L; 1619var flag = 0x40000000000L; 1647var flag = 0x80000000000L; 1675var flag = 0x100000000000L; 1703var flag = 0x200000000000L; 1731var flag = 0x400000000000L; 1759var flag = 0x800000000000L; 1787var flag = 0x1000000000000L; 6521var tempBits = bitsToClear; 7519var flag = 0L; 7931var flag = 0L; 8143var flag = 0L; 8828var flag = 0x1L; 8858var flag = 0x2L; 8887var flag = 0x4L; 8917var flag = 0x8L; 8947var flag = 0x10L; 8976var flag = 0x20L; 9005var flag = 0x40L; 9034var flag = 0x80L; 9063var flag = 0x100L; 9092var flag = 0x200L; 9121var flag = 0x400L; 9150var flag = 0x800L; 9179var flag = 0x1000L; 9208var flag = 0x2000L; 9238var flag = 0x4000L; 9267var flag = 0x8000L; 9296var flag = 0x10000L; 9325var flag = 0x20000L; 9354var flag = 0x40000L; 9383var flag = 0x80000L; 9412var flag = 0x100000L; 9441var flag = 0x200000L; 9470var flag = 0x400000L; 9499var flag = 0x800000L; 9528var flag = 0x1000000L; 9557var flag = 0x2000000L; 9586var flag = 0x4000000L; 9615var flag = 0x8000000L; 9644var flag = 0x10000000L; 9673var flag = 0x20000000L; 9702var flag = 0x40000000L; 9731var flag = 0x80000000L; 9760var flag = 0x100000000L; 9790var flag = 0x200000000L; 9819var flag = 0x400000000L; 9848var flag = 0x800000000L; 9877var flag = 0x1000000000L; 9906var flag = 0x2000000000L; 14051var tempBits = _bits; 15545var flag = 0x1L; 15574var flag = 0x2L; 15603var flag = 0x4L; 17484var tempBits = _bits;
Internal\Http\HttpRequestHeaders.cs (4)
32var newHeaderFlags = _bits; 33var previousHeaderFlags = _previousBits; 36var headersToClear = (~newHeaderFlags) & previousHeaderFlags; 85if (!HeaderUtilities.TryParseNonNegativeInt64(value, out var parsed))
Internal\Http\HttpRequestStream.cs (1)
126var length = buffer.Length;
Internal\Http\HttpResponseHeaders.cs (1)
104if (!HeaderUtilities.TryParseNonNegativeInt64(value, out var parsed))
Internal\Http\MessageBody.cs (2)
238var numFirstSeenBytes = bytesInReadResult - _alreadyTimedBytes; 300var newlyExaminedBytes = examinedLength - _examinedUnconsumedBytes;
Internal\Http2\FlowControl\FlowControl.cs (1)
34var maxUpdate = Http2PeerSettings.MaxWindowSize - Available;
Internal\Http2\Http2Connection.cs (1)
1331var timestamp = TimeProvider.GetTimestamp();
Internal\Http2\Http2FrameWriter.cs (5)
176var actual = producer.CheckStreamWindow(buffer.Length); 455var bytesWritten = _unflushedBytes; 528var dataLength = data.Length; 939var bytesWritten = _unflushedBytes; 990var maxUpdate = Http2PeerSettings.MaxWindowSize - _connectionWindow;
Internal\Http2\Http2KeepAlive.cs (1)
40var timestamp = _timeProvider.GetTimestamp();
Internal\Http2\Http2MessageBody.cs (1)
60var newlyExaminedBytes = TrackConsumedAndExaminedBytes(_readResult, consumed, examined);
Internal\Http2\Http2OutputProducer.cs (1)
703var maxUpdate = Http2PeerSettings.MaxWindowSize - _streamWindow;
Internal\Http3\Http3Connection.cs (6)
253var requestHeadersTimeout = serviceContext.ServerOptions.Limits.RequestHeadersTimeout.ToTicks( 263var expiration = timestamp + requestHeadersTimeout; 283var expiration = timestamp + requestHeadersTimeout; 392var streamType = await pendingStream.ReadNextStreamHeaderAsync(context, streamIdFeature.StreamId, null); 425var streamType = await pendingStream.ReadNextStreamHeaderAsync(context, streamIdFeature.StreamId, Http3StreamType.WebTransportBidirectional); 608var correspondingSession = await stream.ReadNextStreamHeaderAsync(stream.Context, streamId, null);
Internal\Http3\Http3ControlStream.cs (3)
162var id = VariableLengthIntegerHelper.GetInteger(readableBuffer, out consumed, out examined); 336var id = VariableLengthIntegerHelper.GetInteger(payload, out var consumed, out _); 344var value = VariableLengthIntegerHelper.GetInteger(payload, out consumed, out _);
Internal\Http3\Http3FrameReader.cs (2)
27var type = VariableLengthIntegerHelper.GetInteger(readableBuffer, out consumed, out _); 35var length = VariableLengthIntegerHelper.GetInteger(firstLengthBuffer, out consumed, out _);
Internal\Http3\Http3FrameWriter.cs (3)
163var dataLength = data.Length; 331var bytesWritten = _unflushedBytes; 346var bytesWritten = _unflushedBytes;
Internal\Http3\Http3MessageBody.cs (1)
44var newlyExaminedBytes = TrackConsumedAndExaminedBytes(_readResult, consumed, examined);
Internal\Http3\Http3PendingStream.cs (1)
63var value = VariableLengthIntegerHelper.GetInteger(readableBuffer, out consumed, out _);
Internal\Http3\Http3Stream.cs (2)
599var errorCode = stream._errorCodeFeature.Error; 660var resolvedErrorCode = _errorCodeFeature.Error >= 0 ? _errorCodeFeature.Error : 0;
Internal\HttpConnection.cs (1)
250var timestamp = _timeProvider.GetTimestamp();
Internal\Infrastructure\Heartbeat.cs (1)
45var now = _timeProvider.GetTimestamp();
Internal\Infrastructure\KestrelConnectionOfT.cs (2)
44var startTimestamp = 0L; 82var currentTimestamp = 0L;
Internal\Infrastructure\ResourceCounter.cs (2)
41var count = _count; 47var prev = Interlocked.CompareExchange(ref _count, count + 1, count);
Internal\Infrastructure\TimeoutControl.cs (7)
151var extraTimeForTick = timestamp - _lastTimestamp - _heartbeatIntervalTicks; 192var timeoutTicks = timeout.ToTicks(_timeProvider); 290var currentTimeUpperBound = Interlocked.Read(ref _lastTimestamp) + _heartbeatIntervalTicks; 291var ticksToCompleteWriteAtMinRate = TimeSpan.FromSeconds(count / minRate.BytesPerSecond).ToTicks(_timeProvider); 296var singleWriteTimeoutTimestamp = currentTimeUpperBound + Math.Max( 307var accumulatedWriteTimeoutTimestamp = _writeTimingTimeoutTimestamp + ticksToCompleteWriteAtMinRate; 340var gracePeriod = timestamp + minRate.GracePeriod.ToTicks(_timeProvider);
Internal\WebTransport\WebTransportStream.cs (1)
69var streamId = localContext.ConnectionFeatures.GetRequiredFeature<IStreamIdFeature>().StreamId;
Middleware\HttpsConnectionMiddleware.cs (1)
158var startTimestamp = Stopwatch.GetTimestamp();
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
TimeoutControlTests.cs (6)
31var now = _timeProvider.GetTimestamp(); 66var now = _timeProvider.GetTimestamp(); 98var now = _timeProvider.GetTimestamp(); 291var now = _timeProvider.GetTimestamp(); 337var now = _timeProvider.GetTimestamp(); 522var endTime = _timeProvider.GetTimestamp(timeSpan);
VariableIntHelperTests.cs (1)
17var decoded = VariableLengthIntegerHelper.GetInteger(new ReadOnlySequence<byte>(input), out _, out _);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (10)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (10)
98var id = (_currentStreamId << 2) | mask; 119var streamId = await stream.TryReadStreamIdAsync(); 190if (!VariableLengthIntegerHelper.TryRead(payload.Span, out var streamId, out var _)) 205var endTime = timeProvider.GetTimestamp(timeSpan); 220var timestamp = _fakeTimeProvider.GetTimestamp(); 455var requestStreamId = GetStreamId(0x00); 842var id = VariableLengthIntegerHelper.GetInteger(payload, out var consumed, out _); 850var value = VariableLengthIntegerHelper.GetInteger(payload, out consumed, out _); 932var id = VariableLengthIntegerHelper.GetInteger(readableBuffer, out consumed, out examined); 973if (!VariableLengthIntegerHelper.TryRead(payload.Span, out var streamId, out var _))
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeConnectionListener.cs (2)
54var maxReadBufferSize = _options.MaxReadBufferSize ?? 0; 55var maxWriteBufferSize = _options.MaxWriteBufferSize ?? 0;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicConnectionContext.cs (3)
85var resolvedErrorCode = _error ?? 0; // Only valid error codes are assigned to _error 263var now = timeProvider.GetTimestamp(); 292var now = _context.Options.TimeProvider.GetTimestamp();
Internal\QuicStreamContext.cs (3)
56var maxReadBufferSize = context.Options.MaxReadBufferSize ?? 0; 57var maxWriteBufferSize = context.Options.MaxWriteBufferSize ?? 0; 504var resolvedErrorCode = _error ?? 0; // _error is validated on assignment
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Client\SocketConnectionFactory.cs (2)
33var maxReadBufferSize = _options.MaxReadBufferSize ?? 0; 34var maxWriteBufferSize = _options.MaxWriteBufferSize ?? 0;
SocketConnectionContextFactory.cs (2)
40var maxReadBufferSize = _options.MaxReadBufferSize ?? 0; 41var maxWriteBufferSize = _options.MaxWriteBufferSize ?? 0;
Microsoft.AspNetCore.Shared.Tests (12)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (10)
200if (TryGetTimestamp(startingTimestampType, out var startTimestamp) && TryGetTimestamp(endingTimestampType, out var endTimestamp)) 444var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 479var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 512var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 547var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 586var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 675var fixup = pMemoryBlob - (byte*)_originalBufferAddress; 754var fixup = (byte*)nativeRequest - (byte*)baseAddress; 791var fixup = (byte*)nativeRequest - (byte*)baseAddress;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
221var value = *(long*)input;
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.SignalR.Client.Core (4)
src\SignalR\common\Shared\MessageBuffer.cs (4)
102var sequenceId = _latestReceivedSequenceId; 140if (_waitForAck.Reader.TryRead(out var count) && count < _bufferLimit) 187var newCount = -1L; 235var currentId = _currentReceivingSequenceId;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
2003var localPort = features[0].GetInt64(); 2004var remotePort = features[1].GetInt64();
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.cs (1)
653var result = await invokeTask.DefaultTimeout();
Microsoft.AspNetCore.SignalR.Core (6)
HubConnectionContext.cs (1)
669var currentTime = _timeProvider.GetTimestamp();
HubConnectionHandler.cs (1)
300var maxMessageSize = _maximumMessageSize.Value;
src\SignalR\common\Shared\MessageBuffer.cs (4)
102var sequenceId = _latestReceivedSequenceId; 140if (_waitForAck.Reader.TryRead(out var count) && count < _bufferLimit) 187var newCount = -1L; 235var currentId = _currentReceivingSequenceId;
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
src\SignalR\common\Http.Connections\src\ServerSentEventsMessageFormatter.cs (2)
50var totalLength = source.Length; 87var memory = GetLastSegment(lineSegment, out var offset);
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
818var start = reader.BytesConsumed; 820var end = reader.BytesConsumed;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (4)
243var headerCount = ReadMapLength(ref reader, "headers"); 268var streamIdCount = ReadArrayLength(ref reader, "streamIds"); 298var argumentCount = ReadArrayLength(ref reader, "arguments"); 368var dataLength = memoryBufferWriter.Length;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Internal\AckHandler.cs (2)
51var currentTick = Environment.TickCount64; 55var elapsed = currentTick - pair.Value.CreatedTick;
RedisHubLifetimeManager.cs (1)
400var received = await PublishAsync(_channels.Connection(connectionId), messageBytes);
Microsoft.AspNetCore.SignalR.Tests (4)
HubConnectionHandlerTests.ClientResult.cs (4)
30var res = 4 + ((long)invocationMessage.Arguments[0]); 260var res = 4 + ((long)invocationMessage.Arguments[0]); 309var res = 4 + ((long)invocationMessage.Arguments[0]); 467var res = 4 + ((long)invocationMessage.Arguments[0]);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.AspNetCore.StaticAssets (4)
src\Shared\RangeHelper\RangeHelper.cs (1)
121var bytes = Math.Min(end.Value, length);
StaticAssetsInvoker.cs (3)
206requestContext.ResponseHeaders.ContentRange = ComputeContentRange(range, out var start, out var length); 232var end = range.To!.Value;
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
296var length = CreateCompressedFile(compressedFilePath, resource);
Microsoft.AspNetCore.StaticFiles (4)
src\Shared\RangeHelper\RangeHelper.cs (1)
121var bytes = Math.Min(end.Value, length);
StaticFileContext.cs (3)
380ResponseHeaders.ContentRange = ComputeContentRange(_range, out var start, out var length); 402var end = range.To!.Value;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
121var bytes = Math.Min(end.Value, length);
Microsoft.AspNetCore.TestHost (1)
ResponseBodyReaderStream.cs (1)
99var actual = Math.Min(readableBuffer.Length, buffer.Length);
Microsoft.AspNetCore.WebUtilities (2)
BufferedReadStream.cs (1)
415var length = foundCRLF ? builder.Length - 2 : builder.Length;
FormPipeReader.cs (1)
243var consumedBytes = default(long);
Microsoft.Build (3)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1673var id = ReadInt64();
Resources\Constants.cs (1)
351availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64)));
XMakeAttributes.cs (1)
446currentArchitecture = (IntPtr.Size == sizeof(Int64)) ? MSBuildArchitectureValues.x64 : MSBuildArchitectureValues.x86;
Microsoft.Build.Engine (4)
Introspector\NodeStatus.cs (3)
249writer.Write((Int64)statusTimeStamp); 254writer.Write((Int64)lastTaskActivityTimeStamp); 255writer.Write((Int64)lastEngineActivityTimeStamp);
Resources\Constants.cs (1)
209availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(System.Int64)));
Microsoft.Build.Framework (2)
EncodingUtilities.cs (1)
146var position = stream.Position;
Profiler\EvaluationIdProvider.cs (1)
30var nextId = Interlocked.Increment(ref _sAssignedId);
Microsoft.Build.Tasks.Core (3)
FileState.cs (1)
194var length = (new FileInfo(_filename)).Length;
NativeMethods.cs (1)
426Int64 llFlags,
XMakeAttributes.cs (1)
446currentArchitecture = (IntPtr.Size == sizeof(Int64)) ? MSBuildArchitectureValues.x64 : MSBuildArchitectureValues.x86;
Microsoft.Build.Tasks.UnitTests (4)
FileStateTests.cs (4)
359Helpers.VerifyAssertThrowsSameWay(delegate () { var x = new FileInfo(Path.GetTempPath()).Length; }, delegate () { var x = new FileState(Path.GetTempPath()).Length; }); 387Helpers.VerifyAssertThrowsSameWay(delegate () { var x = new FileInfo(file).Length; }, delegate () { var x = new FileState(file).Length; });
Microsoft.DotNet.SignTool (1)
src\RealSignTool.cs (1)
30+ sizeof(Int64); // metadata directory
Microsoft.Extensions.Caching.StackExchangeRedis (2)
RedisCache.cs (2)
68var ticks = Volatile.Read(ref field); // avoid torn values 74var ticks = value == DateTimeOffset.MinValue ? 0L : value.UtcTicks;
Microsoft.Extensions.Diagnostics.HealthChecks (1)
src\Shared\ValueStopwatch\ValueStopwatch.cs (1)
35var end = Stopwatch.GetTimestamp();
Microsoft.Extensions.Http.Polly (3)
src\Shared\ValueStopwatch\ValueStopwatch.cs (3)
35var end = Stopwatch.GetTimestamp(); 38var timestampDelta = end - _startTimestamp; 39var ticks = (long)(TimestampToTicks * timestampDelta);
Microsoft.Extensions.Identity.Core (2)
AuthenticatorTokenProvider.cs (2)
60var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 66var timestep = Convert.ToInt64(unixTimestamp / 30);
Microsoft.JSInterop (7)
Infrastructure\DotNetDispatcher.cs (1)
323var taskId = reader.GetInt64();
Infrastructure\DotNetObjectReferenceJsonConverter.cs (1)
57var objectId = JSRuntime.TrackObjectReference<TValue>(value);
Infrastructure\DotNetStreamReferenceJsonConverter.cs (1)
30var id = JSRuntime.BeginTransmittingStream(value);
Infrastructure\JSObjectReferenceJsonConverter.cs (1)
24var id = JSObjectReferenceJsonWorker.ReadJSObjectReferenceIdentifier(ref reader);
JSRuntime.cs (3)
104var taskId = Interlocked.Increment(ref _nextPendingTaskId); 286var streamId = Interlocked.Increment(ref _nextObjectReferenceId); 304var dotNetObjectId = Interlocked.Increment(ref _nextObjectReferenceId);
Microsoft.JSInterop.Tests (10)
DotNetObjectReferenceTest.cs (5)
23var objectId = jsRuntime.TrackObjectReference(objRef); 38var objectId1 = jsRuntime.TrackObjectReference(objRef); 39var objectId2 = jsRuntime.TrackObjectReference(objRef); 70var objectId = objRef.ObjectId; 89var objectId = objRef.ObjectId;
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (4)
47var objectId = JSRuntime.TrackObjectReference(dotNetObjectRef); 62var objectId = JSRuntime.TrackObjectReference(dotNetObjectRef); 77var objectId = JSRuntime.TrackObjectReference(dotNetObjectRef); 115var objectId = JSRuntime.TrackObjectReference(dotNetObjectRef);
JSRuntimeTest.cs (1)
238var asyncHandle = runtime.BeginInvokeCalls[0].AsyncHandle;
Microsoft.JSInterop.WebAssembly (1)
WebAssemblyJSObjectReferenceJsonConverter.cs (1)
28var id = JSObjectReferenceJsonWorker.ReadJSObjectReferenceIdentifier(ref reader);
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
162if (HeaderUtilities.TryParseNonNegativeInt64(sizeString, out var value))
Microsoft.NET.WebAssembly.Webcil (6)
WebcilReader.cs (6)
39if (TryReadWasmWrapper(out var webcilInWasmOffset)) { 95var pos = TranslateRVA(_header.pe_cli_header_rva); 137var debugOffset = TranslateRVA(debugRVA); 196var pos = entry.DataPointer + _webcilInWasmOffset; 242var pos = entry.DataPointer + _webcilInWasmOffset; 304var pos = entry.DataPointer + _webcilInWasmOffset;
Microsoft.VisualBasic.Core (116)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (3)
33Dim i64Value As Int64 96If TypeOf Value Is Int64 Then 97Return CBool(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (2)
23Dim i64Value As Int64 82Return CByte(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (36)
40Dim i64Value As Int64 121If TypeOf Value Is Int64 Then 122Return CBool(DirectCast(Value, Int64)) 184Dim i64Value As Int64 265If TypeOf Value Is Int64 Then 266Return CByte(DirectCast(Value, Int64)) 328Dim i64Value As Int64 412If TypeOf Value Is Int64 Then 413Return CSByte(DirectCast(Value, Int64)) 475Dim i64Value As Int64 555If TypeOf Value Is Int64 Then 556Return CShort(DirectCast(Value, Int64)) 619Dim i64Value As Int64 701If TypeOf Value Is Int64 Then 702Return CUShort(DirectCast(Value, Int64)) 763Dim i64Value As Int64 844If TypeOf Value Is Int64 Then 845Return CInt(DirectCast(Value, Int64)) 907Dim i64Value As Int64 989If TypeOf Value Is Int64 Then 990Return CUInt(DirectCast(Value, Int64)) 1052Dim i64Value As Int64 1135If TypeOf Value Is Int64 Then 1136Return CLng(DirectCast(Value, Int64)) 1282If TypeOf Value Is Int64 Then 1283Return CULng(DirectCast(Value, Int64)) 1355Dim i64Value As Int64 1441If TypeOf Value Is Int64 Then 1442Return CDec(DirectCast(Value, Int64)) 1592Dim i64Value As Int64 1681If TypeOf Value Is Int64 Then 1682Return CSng(DirectCast(Value, Int64)) 1742Dim i64Value As Int64 1826If TypeOf Value Is Int64 Then 1827Return CDbl(DirectCast(Value, Int64)) 2401Private Shared Function CastInt64Enum(ByVal Expression As Int64, ByVal TargetType As Type) As Object
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
35Dim i64Value As Int64
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (2)
28Dim i64Value As Int64 90Return CDbl(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (2)
23Dim i64Value As Int64 82Return CInt(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\LongType.vb (2)
23Dim i64Value As Int64 85Return CLng(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (19)
249Return GetType(Int64) 726Dim ticks1, ticks2 As Int64 803Private Shared Function ObjTstInt64(ByVal d1 As Int64, ByVal d2 As Int64) As Integer 956Dim Int64Result As Int64 991Int64Result = -CType(DirectCast(obj, Int32), Int64) 993Int64Result = -CType(conv.ToInt32(Nothing), Int64) 1002If TypeOf obj Is Int64 Then 1003Int64Result = -DirectCast(obj, Int64) 1122Dim int64Value As Int64 1177Return Not CType(iconv.ToDecimal(Nothing), Int64) 1180Return Not CType(iconv.ToDecimal(Nothing), Int64) 1183Return Not CType(iconv.ToDecimal(Nothing), Int64) 3037If DecimalResult < Int64.MinValue OrElse DecimalResult > Int64.MaxValue Then 3271Dim lng1, lng2 As Int64 3309Dim lng1, lng2 As Int64 3335Private Shared Function IDivideInt64(ByVal d1 As Int64, ByVal d2 As Int64) As Object
Microsoft\VisualBasic\CompilerServices\Operators.vb (37)
780Private Shared Function CompareInt64(ByVal left As Int64, ByVal right As Int64) As CompareClass 1004If TypeOf Operand Is Int64 Then 1005Return NegateInt64(DirectCast(Operand, Int64)) 1098Private Shared Function NegateInt64(ByVal operand As Int64) As Object 1099If operand = Int64.MinValue Then 1100Return -CDec(Int64.MinValue) 1246Private Shared Function NotInt64(ByVal operand As Int64) As Object 1250Private Shared Function NotInt64(ByVal operand As Int64, ByVal operandType As Type) As Object 1251Dim result As Int64 = Not operand 1634Private Shared Function AndInt64(ByVal left As Int64, ByVal right As Int64, Optional ByVal enumType As Type = Nothing) As Object 1635Dim result As Int64 = left And right 2006Private Shared Function OrInt64(ByVal left As Int64, ByVal right As Int64, Optional ByVal enumType As Type = Nothing) As Object 2007Dim result As Int64 = left Or right 2399Private Shared Function XorInt64(ByVal left As Int64, ByVal right As Int64, Optional ByVal enumType As Type = Nothing) As Object 2400Dim result As Int64 = left Xor right 2860Dim result As Int64 = CLng(left) + CLng(right) 2871Dim result As Int64 = CLng(left) + CLng(right) 2880Private Shared Function AddInt64(ByVal left As Int64, ByVal right As Int64) As Object 3328Dim result As Int64 = CLng(left) - CLng(right) 3339Dim result As Int64 = CLng(left) - CLng(right) 3348Private Shared Function SubtractInt64(ByVal left As Int64, ByVal right As Int64) As Object 3757Dim result As Int64 = CLng(left) * CLng(right) 3772Dim result As Int64 = CLng(left) * CLng(right) 3786If result > Int64.MaxValue Then 3796Private Shared Function MultiplyInt64(ByVal left As Int64, ByVal right As Int64) As Object 4623Private Shared Function ModInt64(ByVal left As Int64, ByVal right As Int64) As Object 4625If left = Int64.MinValue AndAlso right = -1 Then 5015Private Shared Function IntDivideInt64(ByVal left As Int64, ByVal right As Int64) As Object
Microsoft\VisualBasic\CompilerServices\ShortType.vb (2)
23Dim i64Value As Int64 82Return CShort(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (2)
28Dim i64Value As Int64 96Return CSng(DirectCast(Value, Int64))
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (2)
195Val = Int64.MaxValue + Val + 1 257Friend Shared Function IsHexOrOctValue(ByVal value As String, ByRef i64Value As Int64) As Boolean
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
1636Dim i64 As Int64
Microsoft\VisualBasic\CompilerServices\Versioned.vb (1)
81Dim i64Value As Int64
Microsoft\VisualBasic\DateAndTime.vb (1)
38Dim Ticks As Int64 = DateTime.Now.TimeOfDay.Ticks
Microsoft\VisualBasic\Information.vb (1)
370Dim i64Value As Int64
Microsoft\VisualBasic\Strings.vb (1)
565Public Function Len(ByVal Expression As Int64) As Integer
Microsoft\VisualBasic\VBMath.vb (1)
31Dim i64 As Int64 = rndSeed
MSBuild (1)
XMakeAttributes.cs (1)
446currentArchitecture = (IntPtr.Size == sizeof(Int64)) ? MSBuildArchitectureValues.x64 : MSBuildArchitectureValues.x86;
MSBuildTaskHost (1)
XMakeAttributes.cs (1)
450string currentArchitecture = (IntPtr.Size == sizeof(Int64)) ? MSBuildArchitectureValues.x64 : MSBuildArchitectureValues.x86;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
303[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int64))]
netstandard (1)
netstandard.cs (1)
879[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int64))]
PresentationBuildTasks (27)
Microsoft\Build\Tasks\Windows\UidManager.cs (11)
765Int64 index; 772Int64 maxIndex = (Int64)_sequenceMaxIds[uidSequence]; 800Int64 index; 804index = (Int64) _sequenceMaxIds[sequence]; 806if (index == Int64.MaxValue) 819index = (Int64) _sequenceMaxIds[sequence]; 820if (index < Int64.MaxValue) 856private void ParseUid(string uid, out string prefix, out Int64 index) 872index = Int64.Parse(suffix, TypeConverterHelper.InvariantEnglishUS); 902Int64 ext = 1;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (10)
1435Int64 ValuePositionPosition { get; set; } 1518Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 1568Int64 IBamlDictionaryKey.ValuePositionPosition 1642Int64 _valuePositionPosition = -1; 1701Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 1799Int64 IBamlDictionaryKey.ValuePositionPosition 1833Int64 _valuePositionPosition = -1; 3451Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 3519const Int64 ContentSizeSize = 4; 3526Int64 _contentSizePosition = -1;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (4)
1547Int64 endOfStart = BinaryWriter.Seek(0, SeekOrigin.Current); 1612Int64 endOfKeys = BinaryWriter.Seek(0, SeekOrigin.Current); 1620Int64 position = BinaryWriter.Seek(0, SeekOrigin.Current); 1647Int64 startOfEnd = BinaryWriter.Seek(0, SeekOrigin.Current);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5501case KnownElements.Int64: t = typeof(Int64); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
177else if (typeof(Int64).IsAssignableFrom(type))
PresentationCore (151)
MS\Internal\AnimatedTypeHelpers.cs (18)
81internal static Int64 InterpolateInt64(Int64 from, Int64 to, Double progress) 97return from + (Int64)addend; 190internal static Int64 AddInt64(Int64 value1, Int64 value2) 292internal static Int64 SubtractInt64(Int64 value1, Int64 value2) 417internal static Double GetSegmentLengthInt64(Int64 from, Int64 to) 540internal static Int64 ScaleInt64(Int64 value, Double factor) 542return (Int64)((Double)value * factor); 653internal static bool IsValidAnimationValueInt64(Int64 value) 790internal static Int64 GetZeroValueInt64(Int64 baseValue)
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
264else if (typeof(Int64) == type) 268else if (typeof(Int64[]) == type)
MS\Internal\Ink\StrokeRenderer.cs (4)
1000if ((Int64)dx == 0 && (Int64)dy == 0) 1039if ((Int64)dx == 0 && (Int64)dy == 0)
MS\Internal\IO\Packaging\NetStream.cs (1)
1075&& (_highWaterMark <= Int64.MaxValue - (long) _additionalRequestThreshold) // Ensure that we don't get overflow from the next line
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
114Debug.Assert((cbData == 0) || ((Int64)(IntPtr)pbFrom) % 4 == 0); 115Debug.Assert((cbData == 0) || ((Int64)(IntPtr)pbTo) % 4 == 0);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
669Int64 Offset;
System\Windows\Input\InputProcessorProfiles.cs (1)
163short langid = Marshal.PtrToStructure<short>((IntPtr)((Int64)langids + sizeOfShort * i));
System\Windows\Input\ManipulationDevice.cs (2)
529private static Int64 LastUpdatedTimestamp; 530private const Int64 ThrottleTimeout = TimeSpan.TicksPerSecond * 5; // 5 seconds (in 100ns units) of no activity will throttle down
System\Windows\Input\ManipulationLogic.cs (2)
268internal static Int64 GetCurrentTimestamp() 362Int64 timestamp = GetCurrentTimestamp();
System\Windows\Input\Stylus\Wisp\PenImcRcw.cs (1)
46out IPimcContext3 IPimcContext, out Int32 key, out Int64 commHandle);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
194Int64 commHandle;
System\Windows\Media\Animation\AnimationStorage.cs (5)
703Int64 propertyTriggerLayerIndex) 726SortedList<Int64, AnimationLayer> propertyTriggerLayers = storage._propertyTriggerLayers; 730propertyTriggerLayers = new SortedList<Int64, AnimationLayer>(1); 758IList<Int64> keys = propertyTriggerLayers.Keys; 1169private SortedList<Int64, AnimationLayer> _propertyTriggerLayers;
System\Windows\Media\Animation\Clock.cs (4)
3532Int64 desiredFrameRate = _rootData.DesiredFrameRate; 3533Int64 desiredFrameNumber = (time.Ticks * desiredFrameRate) / s_TimeSpanTicksPerSecond + frameOffset; 3535Int64 desiredFrameTick = (desiredFrameNumber * s_TimeSpanTicksPerSecond) / desiredFrameRate; 4500static Int64 s_TimeSpanTicksPerSecond = TimeSpan.FromSeconds(1).Ticks;
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
777Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
777Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
657public DiscreteInt64KeyFrame(Int64 value) 665public DiscreteInt64KeyFrame(Int64 value, KeyTime keyTime) 693protected override Int64 InterpolateValueCore(Int64 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
798public EasingInt64KeyFrame(Int64 value) 807public EasingInt64KeyFrame(Int64 value, KeyTime keyTime) 817public EasingInt64KeyFrame(Int64 value, KeyTime keyTime, IEasingFunction easingFunction) 846protected override Int64 InterpolateValueCore(Int64 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\Int64Animation.cs (32)
43private Int64[] _keyValues; 58Type typeofProp = typeof(Int64?); 67new PropertyMetadata((Int64?)null, propCallback), 74new PropertyMetadata((Int64?)null, propCallback), 81new PropertyMetadata((Int64?)null, propCallback), 105public Int64Animation(Int64 toValue, Duration duration) 117public Int64Animation(Int64 toValue, Duration duration, FillBehavior fillBehavior) 130public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration) 143public Int64Animation(Int64 fromValue, Int64 toValue, Duration duration, FillBehavior fillBehavior) 216protected override Int64 GetCurrentValueCore(Int64 defaultOriginValue, Int64 defaultDestinationValue, AnimationClock animationClock) 233Int64 from = new Int64(); 234Int64 to = new Int64(); 235Int64 accumulated = new Int64(); 236Int64 foundation = new Int64(); 350Int64 accumulator = AnimatedTypeHelpers.SubtractInt64(to, from); 375_keyValues = new Int64[2]; 382_keyValues = new Int64[2]; 389_keyValues = new Int64[1]; 396_keyValues = new Int64[1]; 402_keyValues = new Int64[1]; 423Int64? typedValue = (Int64?)value; 443public Int64? From 447return (Int64?)GetValue(FromProperty); 463public Int64? To 467return (Int64?)GetValue(ToProperty); 483public Int64? By 487return (Int64?)GetValue(ByProperty);
System\Windows\Media\Animation\Generated\Int64AnimationBase.cs (9)
95return GetCurrentValue((Int64)defaultOriginValue, (Int64)defaultDestinationValue, animationClock); 107return typeof(Int64); 144public Int64 GetCurrentValue(Int64 defaultOriginValue, Int64 defaultDestinationValue, AnimationClock animationClock) 204protected abstract Int64 GetCurrentValueCore(Int64 defaultOriginValue, Int64 defaultDestinationValue, AnimationClock animationClock);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (9)
323protected sealed override Int64 GetCurrentValueCore( 324Int64 defaultOriginValue, 325Int64 defaultDestinationValue, 351Int64 currentIterationValue; 387Int64 fromValue; 632private Int64 GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1; 943Int64 prevKeyValue = _keyFrames[index - 1].Value; 947Int64 currentKeyValue = _keyFrames[index].Value;
System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
1173protected Int64KeyFrame(Int64 value) 1182protected Int64KeyFrame(Int64 value, KeyTime keyTime) 1225typeof(Int64), 1240Value = (Int64)value; 1247public Int64 Value 1251return (Int64)GetValue(ValueProperty); 1268public Int64 InterpolateValue( 1269Int64 baseValue, 1286protected abstract Int64 InterpolateValueCore( 1287Int64 baseValue,
System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
510public LinearInt64KeyFrame(Int64 value) 518public LinearInt64KeyFrame(Int64 value, KeyTime keyTime) 544protected override Int64 InterpolateValueCore(Int64 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
777Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
777Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
810public SplineInt64KeyFrame(Int64 value) 819public SplineInt64KeyFrame(Int64 value, KeyTime keyTime) 829public SplineInt64KeyFrame(Int64 value, KeyTime keyTime, KeySpline keySpline) 860protected override Int64 InterpolateValueCore(Int64 baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
777Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
869Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\TimeIntervalCollection.cs (1)
892periodInTicks = Int64.MaxValue / 2;
System\Windows\Media\Imaging\PropVariant.cs (7)
99[FieldOffset(8)] internal Int64 lVal; 299else if (type == typeof(Int64[])) 301InitVector(value as Array, typeof(Int64), VarEnum.VT_I8); 389else if (type == typeof(Int64)) 392lVal = (Int64)value; 569Int64[] array = new Int64[ca.cElems];
System\Windows\Media\MediaContext.cs (1)
828EventTrace.EasyTraceEvent(EventTrace.Keyword.KeywordGraphics | EventTrace.Keyword.KeywordPerf, EventTrace.Event.WClientUceNotifyPresent, _lastPresentationTime, (Int64)presentationResults);
PresentationFramework (61)
MS\Internal\Data\DefaultValueConverter.cs (2)
532typeof(Int32), typeof(Int64), typeof(Single), typeof(Double), 541typeof(Int32), typeof(Int64), typeof(Byte), typeof(Int16),
MS\Internal\Interop\IndexingFilter.cs (2)
635void GetSizeMax([Out] out Int64 pcbSize); 801void GetSizeMax([Out] out Int64 pcbSize);
MS\Internal\IO\Packaging\ManagedIStream.cs (7)
64void IStream.Seek(Int64 offset, Int32 origin, IntPtr newPositionPtr) 97void IStream.SetSize(Int64 libNewSize) 176void IStream.CopyTo(IStream targetStream, Int64 bufferSize, IntPtr buffer, IntPtr bytesWrittenPtr) 198void IStream.LockRegion(Int64 offset, Int64 byteCount, Int32 lockType) 220void IStream.UnlockRegion(Int64 offset, Int64 byteCount, Int32 lockType)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
594void IPersistStream.GetSizeMax(out Int64 pcbSize)
System\Windows\Controls\Panel.cs (4)
998System.Collections.Generic.List<Int64> stableKeyValues = null; 1009stableKeyValues = new System.Collections.Generic.List<Int64>(count); 1010stableKeyValues.Add((Int64)consonant << 32); 1026stableKeyValues.Add(((Int64)z << 32) + i);
System\Windows\Controls\SoundPlayerAction.cs (1)
133Int64 layer)
System\Windows\Documents\Speller.cs (1)
1509ScanRange(start, end, Int64.MaxValue /* timeLimit */);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
416case 320: t = () => typeof(Int64); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5761typeof(System.Int64),
System\Windows\Markup\BamlReader.cs (3)
1219private Int64 ReadDeferKeys() 1222Int64 endOfDefKeys = -1; 2779private Int64 _deferableContentPosition;
System\Windows\Markup\BamlRecordReader.cs (4)
266bamlRecord = ReadNextRecordWithDebugExtension(Int64.MaxValue, recordType); 457internal object ReadElement(Int64 startPosition, 5602internal Int64 StreamPosition 5607Int64 StreamLength
System\Windows\Markup\BamlRecords.cs (10)
1435Int64 ValuePositionPosition { get; set; } 1518Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 1568Int64 IBamlDictionaryKey.ValuePositionPosition 1642Int64 _valuePositionPosition = -1; 1701Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 1799Int64 IBamlDictionaryKey.ValuePositionPosition 1833Int64 _valuePositionPosition = -1; 3451Int64 existingPosition = bamlBinaryWriter.Seek(0, SeekOrigin.Current); 3519const Int64 ContentSizeSize = 4; 3526Int64 _contentSizePosition = -1;
System\Windows\Markup\BamlRecordWriter.cs (4)
1547Int64 endOfStart = BinaryWriter.Seek(0, SeekOrigin.Current); 1612Int64 endOfKeys = BinaryWriter.Seek(0, SeekOrigin.Current); 1620Int64 position = BinaryWriter.Seek(0, SeekOrigin.Current); 1647Int64 startOfEnd = BinaryWriter.Seek(0, SeekOrigin.Current);
System\Windows\Markup\KnownTypes.cs (1)
5874case KnownElements.Int64: t = typeof(System.Int64); break;
System\Windows\Media\Animation\BeginStoryboard.cs (2)
178internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 204private void Begin( DependencyObject targetObject, INameScope nameScope, Int64 layer )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
61internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
868Int64 segmentCount = (block.EndIndex - block.BeginIndex) + 1;
System\Windows\Media\Animation\Storyboard.cs (9)
381Int64 layer /* Remains the same through all the recursive calls */) 609private static void ApplyAnimationClocks( HybridDictionary clockMappings, HandoffBehavior handoffBehavior, Int64 layer ) 809PropertyPath path, AnimationClock animationClock, HandoffBehavior handoffBehavior, Int64 layer ) 1202Int64 layer = Storyboard.Layers.Code; 1211HandoffBehavior handoffBehavior, bool isControllable, Int64 layer) 2228internal static Int64 ElementEventTrigger = 1; 2229internal static Int64 StyleOrTemplateEventTrigger = 1; 2230internal static Int64 Code = 1; 2231internal static Int64 PropertyTriggerStartLayer = 2; // First PropertyTrigger takes this layer number.
System\Windows\ResourceDictionary.cs (1)
2567private Int64 _startPosition;
System\Windows\TriggerAction.cs (1)
47Int64 layer);
System\Windows\TriggerBase.cs (4)
351internal Int64 Layer 366if( _nextGlobalLayerRank == Int64.MaxValue ) 410private Int64 _globalLayerRank = 0; 411private static Int64 _nextGlobalLayerRank = System.Windows.Media.Animation.Storyboard.Layers.PropertyTriggerStartLayer;
SocialWeather (1)
Pipe\PipeWeatherStreamFormatter.cs (1)
22var reportTime = long.MinValue;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
166var minimumExpectedBytesWritten = maxRequestBufferSize.Value - maxSendSize + 1;
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
58case TypeCode.Int64: return FastCreate<Int64>(target, pi); 102case TypeCode.Int64: return FastCreate<T0, Int64>(target, pi); 144case TypeCode.Int64: return new FuncCallInstruction<T0, T1, Int64>(target);
System.Private.CoreLib (94)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
13using nint_t = System.Int64; 67public static nint ReverseEndianness(nint value) => (nint)ReverseEndianness((nint_t)value);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
2001long IConvertible.ToInt64(IFormatProvider? provider) => throw InvalidCast(nameof(Int64));
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (91)
17using nint_t = System.Int64; 161get => sizeof(nint_t); 172get => unchecked((nint)nint_t.MaxValue); 179get => unchecked((nint)nint_t.MinValue); 206public override string ToString() => ((nint_t)_value).ToString(); 207public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => ((nint_t)_value).ToString(format); 208public string ToString(IFormatProvider? provider) => ((nint_t)_value).ToString(provider); 209public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format, IFormatProvider? provider) => ((nint_t)_value).ToString(format, provider); 212((nint_t)_value).TryFormat(destination, out charsWritten, format, provider); 216((nint_t)_value).TryFormat(utf8Destination, out bytesWritten, format, provider); 218public static nint Parse(string s) => (nint)nint_t.Parse(s); 219public static nint Parse(string s, NumberStyles style) => (nint)nint_t.Parse(s, style); 220public static nint Parse(string s, IFormatProvider? provider) => (nint)nint_t.Parse(s, provider); 221public static nint Parse(string s, NumberStyles style, IFormatProvider? provider) => (nint)nint_t.Parse(s, style, provider); 222public static nint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nint)nint_t.Parse(s, provider); 223public static nint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(s, style, provider); 228return nint_t.TryParse(s, out Unsafe.As<nint, nint_t>(ref result)); 235return nint_t.TryParse(s, provider, out Unsafe.As<nint, nint_t>(ref result)); 241return nint_t.TryParse(s, style, provider, out Unsafe.As<nint, nint_t>(ref result)); 247return nint_t.TryParse(s, out Unsafe.As<nint, nint_t>(ref result)); 257return nint_t.TryParse(utf8Text, out Unsafe.As<nint, nint_t>(ref result)); 268return nint_t.TryParse(s, provider, out Unsafe.As<nint, nint_t>(ref result)); 274return nint_t.TryParse(s, style, provider, out Unsafe.As<nint, nint_t>(ref result)); 336if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(nint_t))) 345if (source.Length > sizeof(nint_t)) 347if (source[..^sizeof(nint_t)].ContainsAnyExcept((byte)sign)) 356if (isUnsigned == sbyte.IsNegative((sbyte)source[^sizeof(nint_t)])) 368if (source.Length >= sizeof(nint_t)) 370sourceRef = ref Unsafe.Add(ref sourceRef, source.Length - sizeof(nint_t)); 394result |= (((nint)1 << ((sizeof(nint_t) * 8) - 1)) >> (((sizeof(nint_t) - source.Length) * 8) - 1)); 418if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= sizeof(nint_t))) 427if (source.Length > sizeof(nint_t)) 429if (source[sizeof(nint_t)..].ContainsAnyExcept((byte)sign)) 438if (isUnsigned == sbyte.IsNegative((sbyte)source[sizeof(nint_t) - 1])) 450if (source.Length >= sizeof(nint_t)) 474result <<= ((sizeof(nint_t) - source.Length) * 8); 479result |= (((nint)1 << ((sizeof(nint_t) * 8) - 1)) >> (((sizeof(nint_t) - source.Length) * 8) - 1)); 495return (sizeof(nint_t) * 8) - BitOperations.LeadingZeroCount((nuint)value); 499return (sizeof(nint_t) * 8) + 1 - BitOperations.LeadingZeroCount((nuint)(~value)); 504int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t); 509if (destination.Length >= sizeof(nint_t)) 511nint_t value = (nint_t)_value; 519bytesWritten = sizeof(nint_t); 532if (destination.Length >= sizeof(nint_t)) 534nint_t value = (nint_t)_value; 542bytesWritten = sizeof(nint_t); 1017result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1018(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1024result = (actualValue == Half.PositiveInfinity) ? unchecked((nint)nint_t.MaxValue) : 1025(actualValue == Half.NegativeInfinity) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1043result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1044(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1050result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1051(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1063result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1064(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1094result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1095(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1101result = (actualValue == Half.PositiveInfinity) ? unchecked((nint)nint_t.MaxValue) : 1102(actualValue == Half.NegativeInfinity) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1138result = (actualValue >= nint_t.MaxValue) ? unchecked((nint)nint_t.MaxValue) : 1139(actualValue <= nint_t.MinValue) ? unchecked((nint)nint_t.MinValue) : (nint)actualValue; 1409public static nint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(utf8Text, style, provider); 1415return nint_t.TryParse(utf8Text, style, provider, out Unsafe.As<nint, nint_t>(ref result)); 1419public static nint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nint)nint_t.Parse(utf8Text, provider); 1425return nint_t.TryParse(utf8Text, provider, out Unsafe.As<nint, nint_t>(ref result));
System.Private.DataContractSerialization (4)
System\Xml\XmlBinaryReaderSession.cs (1)
8using StringHandle = System.Int64;
System\Xml\XmlDictionaryReader.cs (3)
1744throw XmlExceptionHelper.CreateConversionException(nameof(Int64), exception); 1748throw XmlExceptionHelper.CreateConversionException(nameof(Int64), exception); 1752throw XmlExceptionHelper.CreateConversionException(nameof(Int64), exception);
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
710var enumValue = Convert.ToInt64(v);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
277[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Int64))]
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
1109var timeoutMilliseconds = (long)timeout.TotalMilliseconds;
System.Windows.Input.Manipulations (34)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (9)
58private Int64 initialTimestamp; 61private Int64 previousTimestamp = -1L; // should be any value different than initialTimestamp 288public bool Process(Int64 timestamp) 316public void Complete(Int64 timestamp) 362private void SetInitialTimestamp(Int64 timestamp) 745private bool ExtrapolateAndRaiseEvents(Int64 timestamp, bool forceCompleted) 750Int64 timeDelta = unchecked(timestamp - this.initialTimestamp); 760timeDelta = Int64.MaxValue; 981private bool Process(Int64 timestamp, bool forceCompleted)
System\Windows\Input\Manipulations\ManipulationProcessor2D.cs (2)
274public void ProcessManipulators(Int64 timestamp, IEnumerable<Manipulator2D> manipulators) 297public void CompleteManipulation(Int64 timestamp)
System\Windows\Input\Manipulations\ManipulationSequence.cs (23)
119Int64 timestamp, 141public void CompleteManipulation(Int64 timestamp) 296Int64 timestamp, 355Int64 timestamp, 475private void ProcessAddsAndRemoves(Int64 timestamp, List<ManipulatorState> addedManipulatorList, HashSet<int> removedManipulatorIds) 558private void OnCompleteManipulation(Int64 timestamp) 639private void EnsureReadyToProcessManipulators(Int64 timestamp) 664Int64 timestamp, 791Int64 timestamp, 974private void InitializeManipulationState(Int64 timestamp) 1002private void OverwriteManipulationState(in PointF position, float scale, float expansion, float orientation, Int64 timestamp) 1093Int64 previousTimestamp = 0; 1100Int64 timeDelta = item.Timestamp - previousTimestamp; 1301Int64 timestampDelta = item.Timestamp - oldItem.Timestamp; 1334private Int64 maxTimestampDelta; 1351this.maxTimestampDelta = (Int64)(smoothingLevel * MaxHistoryDuration * ManipulationProcessor2D.TimestampTicksPerMillisecond); 1374private void Fill(ManipulationState item, Int64 timestamp) 1378Int64 frameTimestampDelta = 15 * ManipulationProcessor2D.TimestampTicksPerMillisecond; 1396Int64 timestamp = item.Timestamp; 1424Int64 timestampDelta = timestamp - old.Timestamp; 1550public Int64 Timestamp; 1552public ManipulationState(in PointF position, float scale, float expansion, float orientation, Int64 timestamp) 1567public ManipulationState(Int64 timestamp) :
System.Xaml (2)
System\Xaml\Schema\BuiltInValueConverter.cs (1)
89if (typeof(Int64) == targetType)
System\Xaml\XamlLanguage.cs (1)
113new Lazy<XamlType>(() => GetXamlType(typeof(Int64)), true);
WasmAppBuilder (4)
IcallTableGenerator.cs (2)
255nameof(Int64) => "long", 273nameof(Int64) => "int64_t",
PInvokeTableGenerator.cs (1)
192nameof(Int64) => "int64_t",
SignatureMapper.cs (1)
36nameof(Int64) => 'L',