3248 writes to
aspire (1)
src\Shared\CircularBuffer.cs (1)
124data[internalIndex] = item;
Aspire.Dashboard (3)
Otlp\Model\OtlpHelpers.cs (2)
167buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 168buffer[startingIndex] = (char)(packedResult >> 8);
src\Shared\CircularBuffer.cs (1)
124data[internalIndex] = item;
Aspire.Hosting (2)
src\Shared\CircularBuffer.cs (1)
124data[internalIndex] = item;
VolumeNameGenerator.cs (1)
48s[i] = IsValidChar(i, c) ? c : '_';
GenerateDocumentationAndConfigFiles (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
http2cat (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IIS.FunctionalTests (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IIS.LongTests (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IIS.NewHandler.FunctionalTests (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IIS.NewShim.FunctionalTests (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
IISExpress.FunctionalTests (5)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
illink (6)
InMemory.FunctionalTests (5)
Http3\Http3StreamTests.cs (2)
2910chars[i] = (char)('0' + i % 10); 2950chars[i] = (char)('0' + i % 10);
ResponseTests.cs (3)
1570span[i] = (byte)'h'; 1651span[i] = (byte)'h'; 1660span[i] = (byte)'h';
Interop.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
Metrics (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Metrics.Legacy (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.AspNetCore.Components (10)
src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\Converters\CollectionConverter.cs (1)
179computedPrefix[charsWritten + 1] = ']';
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
137componentIdsInDepthOrder[i] = new(componentId, GetComponentDepth(componentId));
Microsoft.AspNetCore.Components.Server (2)
Circuits\ServerComponentDeserializer.cs (1)
321seenSsrComponentIds[currentSsrComponentIdIndex++] = operation.SsrComponentId;
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.DataProtection (7)
KeyManagement\KeyRingBasedDataProtector.cs (1)
378purposeLengthsPool[i] = purposeLength;
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (4)
85prfInput[prfInput.Length - 4] = (byte)(outputSizeInBits >> 24); 86prfInput[prfInput.Length - 3] = (byte)(outputSizeInBits >> 16); 87prfInput[prfInput.Length - 2] = (byte)(outputSizeInBits >> 8); 88prfInput[prfInput.Length - 1] = (byte)(outputSizeInBits);
src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
45target[index++] = (byte)(uValue | ~0x7Fu); 49target[index++] = (byte)uValue;
Microsoft.AspNetCore.DataProtection.Tests (1)
SequentialGenRandom.cs (1)
36target[i] = _value++;
Microsoft.AspNetCore.Http.Abstractions (12)
src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
100_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.Http.Extensions (10)
src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
179computedPrefix[charsWritten + 1] = ']';
src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (7)
77_chars[Length] = '\0'; 87return ref _chars[index]; 110_chars[Length] = '\0'; 174_chars[pos] = c; 194_chars[pos] = s[0]; 225dst[i] = c; 241dst[i] = *value++;
Microsoft.AspNetCore.HttpLogging (9)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (7)
77_chars[Length] = '\0'; 87return ref _chars[index]; 110_chars[Length] = '\0'; 174_chars[pos] = c; 194_chars[pos] = s[0]; 225dst[i] = c; 241dst[i] = *value++;
Microsoft.AspNetCore.Identity.FunctionalTests (8)
src\Identity\Extensions.Core\src\Base32.cs (8)
37buffer[index + 7] = ((numCharsToOutput >= 8) ? _base32Chars[h] : '='); 38buffer[index + 6] = ((numCharsToOutput >= 7) ? _base32Chars[g] : '='); 39buffer[index + 5] = ((numCharsToOutput >= 6) ? _base32Chars[f] : '='); 40buffer[index + 4] = ((numCharsToOutput >= 5) ? _base32Chars[e] : '='); 41buffer[index + 3] = ((numCharsToOutput >= 4) ? _base32Chars[d] : '='); 42buffer[index + 2] = (numCharsToOutput >= 3) ? _base32Chars[c] : '='; 43buffer[index + 1] = (numCharsToOutput >= 2) ? _base32Chars[b] : '='; 44buffer[index] = (numCharsToOutput >= 1) ? _base32Chars[a] : '=';
Microsoft.AspNetCore.Mvc.Razor (2)
ViewPath.cs (2)
31span[spanIndex++] = '/'; 36span[spanIndex++] = ch == '\\' ? '/' : ch;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\Mvc\Mvc.Razor\src\ViewPath.cs (2)
31span[spanIndex++] = '/'; 36span[spanIndex++] = ch == '\\' ? '/' : ch;
Microsoft.AspNetCore.OpenApi (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
100_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.Routing (6)
Matching\DefaultEndpointSelector.cs (2)
65ref var state = ref candidateState[i]; 114ref var state = ref candidateState[i];
Matching\DfaMatcher.cs (1)
121ref var state = ref candidateState[i];
Matching\DfaMatcherBuilder.cs (1)
445hasFailingPolicy[literalIndex] = true;
Matching\FastPathTokenizer.cs (2)
29segments[count++] = new PathSegment(start, end); 38segments[count++] = new PathSegment(start, length);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\JumpTableMultipleEntryBenchmark.cs (2)
165buffer[c] = char.ToUpperInvariant(state[c]); 169buffer[c] = ((char)(state[c] + ('G' - '0')));
Microsoft.AspNetCore.Server.HttpSys (18)
RequestProcessing\ResponseBody.cs (4)
245SetDataChunk(dataChunks, ref currentChunk, chunkHeaderBuffer, out pins[pinsIndex++]); 250SetDataChunk(dataChunks, ref currentChunk, data, out pins[pinsIndex++]); 265_requestContext.Response.SerializeTrailers(ref allocator, out dataChunks[currentChunk++]); 290ref var chunk = ref chunks[chunkIndex++];
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
539destination[index] = headerName;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
286observedHeaders[observedHeadersCount++] = GetHeaderKeyName(header);
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (7)
88rawPath[writer++] = rawPath[reader++]; 121buffer[writer++] = (byte)byte1; 220buffer[writer++] = (byte)byte1; 224buffer[writer++] = (byte)byte2; 228buffer[writer++] = (byte)byte3; 232buffer[writer++] = (byte)byte4; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
Microsoft.AspNetCore.Server.IIS (14)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
539destination[index] = headerName;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
286observedHeaders[observedHeadersCount++] = GetHeaderKeyName(header);
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (7)
88rawPath[writer++] = rawPath[reader++]; 121buffer[writer++] = (byte)byte1; 220buffer[writer++] = (byte)byte1; 224buffer[writer++] = (byte)byte2; 228buffer[writer++] = (byte)byte3; 232buffer[writer++] = (byte)byte4; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
Microsoft.AspNetCore.Server.Kestrel.Core (27)
Internal\Http\ChunkWriter.cs (3)
35span[offset] = hex[(dataCount >> shift) & 0x0f]; 39span[count - 2] = (byte)'\r'; 40span[count - 1] = (byte)'\n';
Internal\Http2\Http2Stream.cs (1)
447pathBuffer[i] = (byte)ch;
Internal\Http3\Http3Stream.cs (1)
1209pathBuffer[i] = (byte)ch;
Middleware\Internal\LoggingStream.cs (3)
182charBuilder[charBuilderIndex++] = '.'; 186charBuilder[charBuilderIndex++] = bufferChar; 203charBuilder[charBuilderIndex++] = ' ';
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AsciiDecoding.cs (2)
145asciiBytes[i] = (byte)(b + 1); 149asciiBytes[i] = b;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
Microsoft.AspNetCore.Shared.Tests (27)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
539destination[index] = headerName;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
286observedHeaders[observedHeadersCount++] = GetHeaderKeyName(header);
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (7)
88rawPath[writer++] = rawPath[reader++]; 121buffer[writer++] = (byte)byte1; 220buffer[writer++] = (byte)byte1; 224buffer[writer++] = (byte)byte2; 228buffer[writer++] = (byte)byte3; 232buffer[writer++] = (byte)byte4; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
781isStreaming[i] = true;
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
100_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
100_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
100_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.WebSockets (9)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (7)
77_chars[Length] = '\0'; 87return ref _chars[index]; 110_chars[Length] = '\0'; 174_chars[pos] = c; 194_chars[pos] = s[0]; 225dst[i] = c; 241dst[i] = *value++;
Microsoft.AspNetCore.WebUtilities (10)
src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
Microsoft.Build (4)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
126normalizedBuildCommand[normalizedCommandIndex++] = c;
FileUtilities.cs (1)
650str[sliceLength] = str[i] == '\\' ? '/' : str[i];
Logging\OptimizedStringIndenter.cs (2)
149segments[i] = new StringSegment(start, input.Length); 161segments[i] = new StringSegment(start, index);
Microsoft.Build.Engine.OM.UnitTests (1)
FileUtilities.cs (1)
650str[sliceLength] = str[i] == '\\' ? '/' : str[i];
Microsoft.Build.Framework (18)
ArraySortHelper.cs (18)
701values[i] = values[j]; 702values[j] = value; 716values[i] = values[j]; 717values[j] = v; 861values[lo + i - 1] = values[lo + child - 1]; 866values[lo + i - 1] = dValue; 882values[j + 1] = values[j]; 887values[j + 1] = tValue; 954values[i] = values[j]; 955values[j] = value; 969values[i] = values[j]; 970values[j] = v; 1114values[lo + i - 1] = values[lo + child - 1]; 1119values[lo + i - 1] = dValue; 1133values[j + 1] = values[j]; 1138values[j + 1] = tValue; 1257values[left] = values[i]; 1258values[i] = tempValue;
Microsoft.Build.Tasks.Core (1)
FileUtilities.cs (1)
650str[sliceLength] = str[i] == '\\' ? '/' : str[i];
Microsoft.Build.Utilities.Core (1)
FileUtilities.cs (1)
650str[sliceLength] = str[i] == '\\' ? '/' : str[i];
Microsoft.CodeAnalysis (21)
CodeGen\PrivateImplementationDetails.cs (2)
600destination[i++] = hexchar(b >> 4); 601destination[i++] = hexchar(b & 0xF);
CommandLine\CommandLineParser.cs (1)
644lineBuffer[lineBufferLength] = (char)ch;
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.Analyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.AnalyzerUtilities (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.BannedApiAnalyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.CodeStyle (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.Collections.Package (18)
Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
209array[i] = b;
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
209array[i] = b;
Microsoft.CodeAnalysis.Extensions.Package (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.InteractiveHost (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.PublicApiAnalyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.ResxSourceGenerator (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.Threading.Package (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.Workspaces (23)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Workspace\Solution\Checksum_Factory.cs (2)
127hashes[i] = checksums[i]; 142checksumsSpan[checksumsSpanIndex] = checksums[checksumsIndex];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ChecksumTests.cs (2)
59builder[i] = Checksum.Create("test " + i); 88builder[i] = Checksum.Create("test " + i);
Microsoft.Data.Analysis (545)
Computations\Arithmetic.netstandard.cs (440)
34destination[i] = (bool)(x[i] & y[i]); 45destination[i] = (bool)(x[i] & y); 56destination[i] = (bool)(x & y[i]); 67destination[i] = (bool)(x[i] | y[i]); 78destination[i] = (bool)(x[i] | y); 89destination[i] = (bool)(x | y[i]); 100destination[i] = (bool)(x[i] ^ y[i]); 111destination[i] = (bool)(x[i] ^ y); 122destination[i] = (bool)(x ^ y[i]); 131destination[i] = (x[i] == y[i]); 139destination[i] = (x[i] == y); 147destination[i] = (x[i] != y[i]); 155destination[i] = (x[i] != y); 189destination[i] = (byte)(x[i] + y[i]); 200destination[i] = (byte)(x[i] + y); 211destination[i] = (byte)(x + y[i]); 243destination[i] = (byte)(x[i] - y[i]); 254destination[i] = (byte)(x[i] - y); 265destination[i] = (byte)(x - y[i]); 297destination[i] = (byte)(x[i] * y[i]); 308destination[i] = (byte)(x[i] * y); 319destination[i] = (byte)(x * y[i]); 356destination[i] = (byte)(x[i] / y[i]); 367destination[i] = (byte)(x[i] / y); 378destination[i] = (byte)(x / y[i]); 394destination[i] = (byte)(x[i] % y[i]); 405destination[i] = (byte)(x[i] % y); 416destination[i] = (byte)(x % y[i]); 427destination[i] = (byte)(x[i] & y[i]); 438destination[i] = (byte)(x[i] & y); 449destination[i] = (byte)(x & y[i]); 460destination[i] = (byte)(x[i] | y[i]); 471destination[i] = (byte)(x[i] | y); 482destination[i] = (byte)(x | y[i]); 493destination[i] = (byte)(x[i] ^ y[i]); 504destination[i] = (byte)(x[i] ^ y); 515destination[i] = (byte)(x ^ y[i]); 523destination[i] = (byte)(x[i] << y); 529destination[i] = (byte)(x[i] >> y); 536destination[i] = (x[i] == y[i]); 544destination[i] = (x[i] == y); 552destination[i] = (x[i] != y[i]); 560destination[i] = (x[i] != y); 568destination[i] = (x[i] >= y[i]); 576destination[i] = (x[i] >= y); 584destination[i] = (x[i] <= y[i]); 592destination[i] = (x[i] <= y); 600destination[i] = (x[i] > y[i]); 608destination[i] = (x[i] > y); 616destination[i] = (x[i] < y[i]); 624destination[i] = (x[i] < y); 658destination[i] = (char)(x[i] + y[i]); 669destination[i] = (char)(x[i] + y); 680destination[i] = (char)(x + y[i]); 712destination[i] = (char)(x[i] - y[i]); 723destination[i] = (char)(x[i] - y); 734destination[i] = (char)(x - y[i]); 766destination[i] = (char)(x[i] * y[i]); 777destination[i] = (char)(x[i] * y); 788destination[i] = (char)(x * y[i]); 825destination[i] = (char)(x[i] / y[i]); 836destination[i] = (char)(x[i] / y); 847destination[i] = (char)(x / y[i]); 863destination[i] = (char)(x[i] % y[i]); 874destination[i] = (char)(x[i] % y); 885destination[i] = (char)(x % y[i]); 896destination[i] = (char)(x[i] & y[i]); 907destination[i] = (char)(x[i] & y); 918destination[i] = (char)(x & y[i]); 929destination[i] = (char)(x[i] | y[i]); 940destination[i] = (char)(x[i] | y); 951destination[i] = (char)(x | y[i]); 962destination[i] = (char)(x[i] ^ y[i]); 973destination[i] = (char)(x[i] ^ y); 984destination[i] = (char)(x ^ y[i]); 992destination[i] = (char)(x[i] << y); 998destination[i] = (char)(x[i] >> y); 1005destination[i] = (x[i] == y[i]); 1013destination[i] = (x[i] == y); 1021destination[i] = (x[i] != y[i]); 1029destination[i] = (x[i] != y); 1037destination[i] = (x[i] >= y[i]); 1045destination[i] = (x[i] >= y); 1053destination[i] = (x[i] <= y[i]); 1061destination[i] = (x[i] <= y); 1069destination[i] = (x[i] > y[i]); 1077destination[i] = (x[i] > y); 1085destination[i] = (x[i] < y[i]); 1093destination[i] = (x[i] < y); 1106destination[i] = (decimal)(x[i] + y[i]); 1117destination[i] = (decimal)(x[i] + y); 1128destination[i] = (decimal)(x + y[i]); 1139destination[i] = (decimal)(x[i] - y[i]); 1150destination[i] = (decimal)(x[i] - y); 1161destination[i] = (decimal)(x - y[i]); 1172destination[i] = (decimal)(x[i] * y[i]); 1183destination[i] = (decimal)(x[i] * y); 1194destination[i] = (decimal)(x * y[i]); 1210destination[i] = (decimal)(x[i] / y[i]); 1221destination[i] = (decimal)(x[i] / y); 1232destination[i] = (decimal)(x / y[i]); 1248destination[i] = (decimal)(x[i] % y[i]); 1259destination[i] = (decimal)(x[i] % y); 1270destination[i] = (decimal)(x % y[i]); 1279destination[i] = (x[i] == y[i]); 1287destination[i] = (x[i] == y); 1295destination[i] = (x[i] != y[i]); 1303destination[i] = (x[i] != y); 1311destination[i] = (x[i] >= y[i]); 1319destination[i] = (x[i] >= y); 1327destination[i] = (x[i] <= y[i]); 1335destination[i] = (x[i] <= y); 1343destination[i] = (x[i] > y[i]); 1351destination[i] = (x[i] > y); 1359destination[i] = (x[i] < y[i]); 1367destination[i] = (x[i] < y); 1401destination[i] = (double)(x[i] + y[i]); 1412destination[i] = (double)(x[i] + y); 1423destination[i] = (double)(x + y[i]); 1455destination[i] = (double)(x[i] - y[i]); 1466destination[i] = (double)(x[i] - y); 1477destination[i] = (double)(x - y[i]); 1509destination[i] = (double)(x[i] * y[i]); 1520destination[i] = (double)(x[i] * y); 1531destination[i] = (double)(x * y[i]); 1568destination[i] = (double)(x[i] / y[i]); 1579destination[i] = (double)(x[i] / y); 1590destination[i] = (double)(x / y[i]); 1606destination[i] = (double)(x[i] % y[i]); 1617destination[i] = (double)(x[i] % y); 1628destination[i] = (double)(x % y[i]); 1637destination[i] = (x[i] == y[i]); 1645destination[i] = (x[i] == y); 1653destination[i] = (x[i] != y[i]); 1661destination[i] = (x[i] != y); 1669destination[i] = (x[i] >= y[i]); 1677destination[i] = (x[i] >= y); 1685destination[i] = (x[i] <= y[i]); 1693destination[i] = (x[i] <= y); 1701destination[i] = (x[i] > y[i]); 1709destination[i] = (x[i] > y); 1717destination[i] = (x[i] < y[i]); 1725destination[i] = (x[i] < y); 1759destination[i] = (float)(x[i] + y[i]); 1770destination[i] = (float)(x[i] + y); 1781destination[i] = (float)(x + y[i]); 1813destination[i] = (float)(x[i] - y[i]); 1824destination[i] = (float)(x[i] - y); 1835destination[i] = (float)(x - y[i]); 1867destination[i] = (float)(x[i] * y[i]); 1878destination[i] = (float)(x[i] * y); 1889destination[i] = (float)(x * y[i]); 1926destination[i] = (float)(x[i] / y[i]); 1937destination[i] = (float)(x[i] / y); 1948destination[i] = (float)(x / y[i]); 1964destination[i] = (float)(x[i] % y[i]); 1975destination[i] = (float)(x[i] % y); 1986destination[i] = (float)(x % y[i]); 1995destination[i] = (x[i] == y[i]); 2003destination[i] = (x[i] == y); 2011destination[i] = (x[i] != y[i]); 2019destination[i] = (x[i] != y); 2027destination[i] = (x[i] >= y[i]); 2035destination[i] = (x[i] >= y); 2043destination[i] = (x[i] <= y[i]); 2051destination[i] = (x[i] <= y); 2059destination[i] = (x[i] > y[i]); 2067destination[i] = (x[i] > y); 2075destination[i] = (x[i] < y[i]); 2083destination[i] = (x[i] < y); 2117destination[i] = (int)(x[i] + y[i]); 2128destination[i] = (int)(x[i] + y); 2139destination[i] = (int)(x + y[i]); 2171destination[i] = (int)(x[i] - y[i]); 2182destination[i] = (int)(x[i] - y); 2193destination[i] = (int)(x - y[i]); 2225destination[i] = (int)(x[i] * y[i]); 2236destination[i] = (int)(x[i] * y); 2247destination[i] = (int)(x * y[i]); 2284destination[i] = (int)(x[i] / y[i]); 2295destination[i] = (int)(x[i] / y); 2306destination[i] = (int)(x / y[i]); 2322destination[i] = (int)(x[i] % y[i]); 2333destination[i] = (int)(x[i] % y); 2344destination[i] = (int)(x % y[i]); 2355destination[i] = (int)(x[i] & y[i]); 2366destination[i] = (int)(x[i] & y); 2377destination[i] = (int)(x & y[i]); 2388destination[i] = (int)(x[i] | y[i]); 2399destination[i] = (int)(x[i] | y); 2410destination[i] = (int)(x | y[i]); 2421destination[i] = (int)(x[i] ^ y[i]); 2432destination[i] = (int)(x[i] ^ y); 2443destination[i] = (int)(x ^ y[i]); 2451destination[i] = (int)(x[i] << y); 2457destination[i] = (int)(x[i] >> y); 2464destination[i] = (x[i] == y[i]); 2472destination[i] = (x[i] == y); 2480destination[i] = (x[i] != y[i]); 2488destination[i] = (x[i] != y); 2496destination[i] = (x[i] >= y[i]); 2504destination[i] = (x[i] >= y); 2512destination[i] = (x[i] <= y[i]); 2520destination[i] = (x[i] <= y); 2528destination[i] = (x[i] > y[i]); 2536destination[i] = (x[i] > y); 2544destination[i] = (x[i] < y[i]); 2552destination[i] = (x[i] < y); 2586destination[i] = (long)(x[i] + y[i]); 2597destination[i] = (long)(x[i] + y); 2608destination[i] = (long)(x + y[i]); 2640destination[i] = (long)(x[i] - y[i]); 2651destination[i] = (long)(x[i] - y); 2662destination[i] = (long)(x - y[i]); 2694destination[i] = (long)(x[i] * y[i]); 2705destination[i] = (long)(x[i] * y); 2716destination[i] = (long)(x * y[i]); 2753destination[i] = (long)(x[i] / y[i]); 2764destination[i] = (long)(x[i] / y); 2775destination[i] = (long)(x / y[i]); 2791destination[i] = (long)(x[i] % y[i]); 2802destination[i] = (long)(x[i] % y); 2813destination[i] = (long)(x % y[i]); 2824destination[i] = (long)(x[i] & y[i]); 2835destination[i] = (long)(x[i] & y); 2846destination[i] = (long)(x & y[i]); 2857destination[i] = (long)(x[i] | y[i]); 2868destination[i] = (long)(x[i] | y); 2879destination[i] = (long)(x | y[i]); 2890destination[i] = (long)(x[i] ^ y[i]); 2901destination[i] = (long)(x[i] ^ y); 2912destination[i] = (long)(x ^ y[i]); 2920destination[i] = (long)(x[i] << y); 2926destination[i] = (long)(x[i] >> y); 2933destination[i] = (x[i] == y[i]); 2941destination[i] = (x[i] == y); 2949destination[i] = (x[i] != y[i]); 2957destination[i] = (x[i] != y); 2965destination[i] = (x[i] >= y[i]); 2973destination[i] = (x[i] >= y); 2981destination[i] = (x[i] <= y[i]); 2989destination[i] = (x[i] <= y); 2997destination[i] = (x[i] > y[i]); 3005destination[i] = (x[i] > y); 3013destination[i] = (x[i] < y[i]); 3021destination[i] = (x[i] < y); 3055destination[i] = (sbyte)(x[i] + y[i]); 3066destination[i] = (sbyte)(x[i] + y); 3077destination[i] = (sbyte)(x + y[i]); 3109destination[i] = (sbyte)(x[i] - y[i]); 3120destination[i] = (sbyte)(x[i] - y); 3131destination[i] = (sbyte)(x - y[i]); 3163destination[i] = (sbyte)(x[i] * y[i]); 3174destination[i] = (sbyte)(x[i] * y); 3185destination[i] = (sbyte)(x * y[i]); 3222destination[i] = (sbyte)(x[i] / y[i]); 3233destination[i] = (sbyte)(x[i] / y); 3244destination[i] = (sbyte)(x / y[i]); 3260destination[i] = (sbyte)(x[i] % y[i]); 3271destination[i] = (sbyte)(x[i] % y); 3282destination[i] = (sbyte)(x % y[i]); 3293destination[i] = (sbyte)(x[i] & y[i]); 3304destination[i] = (sbyte)(x[i] & y); 3315destination[i] = (sbyte)(x & y[i]); 3326destination[i] = (sbyte)(x[i] | y[i]); 3337destination[i] = (sbyte)(x[i] | y); 3348destination[i] = (sbyte)(x | y[i]); 3359destination[i] = (sbyte)(x[i] ^ y[i]); 3370destination[i] = (sbyte)(x[i] ^ y); 3381destination[i] = (sbyte)(x ^ y[i]); 3389destination[i] = (sbyte)(x[i] << y); 3395destination[i] = (sbyte)(x[i] >> y); 3402destination[i] = (x[i] == y[i]); 3410destination[i] = (x[i] == y); 3418destination[i] = (x[i] != y[i]); 3426destination[i] = (x[i] != y); 3434destination[i] = (x[i] >= y[i]); 3442destination[i] = (x[i] >= y); 3450destination[i] = (x[i] <= y[i]); 3458destination[i] = (x[i] <= y); 3466destination[i] = (x[i] > y[i]); 3474destination[i] = (x[i] > y); 3482destination[i] = (x[i] < y[i]); 3490destination[i] = (x[i] < y); 3524destination[i] = (short)(x[i] + y[i]); 3535destination[i] = (short)(x[i] + y); 3546destination[i] = (short)(x + y[i]); 3578destination[i] = (short)(x[i] - y[i]); 3589destination[i] = (short)(x[i] - y); 3600destination[i] = (short)(x - y[i]); 3632destination[i] = (short)(x[i] * y[i]); 3643destination[i] = (short)(x[i] * y); 3654destination[i] = (short)(x * y[i]); 3691destination[i] = (short)(x[i] / y[i]); 3702destination[i] = (short)(x[i] / y); 3713destination[i] = (short)(x / y[i]); 3729destination[i] = (short)(x[i] % y[i]); 3740destination[i] = (short)(x[i] % y); 3751destination[i] = (short)(x % y[i]); 3762destination[i] = (short)(x[i] & y[i]); 3773destination[i] = (short)(x[i] & y); 3784destination[i] = (short)(x & y[i]); 3795destination[i] = (short)(x[i] | y[i]); 3806destination[i] = (short)(x[i] | y); 3817destination[i] = (short)(x | y[i]); 3828destination[i] = (short)(x[i] ^ y[i]); 3839destination[i] = (short)(x[i] ^ y); 3850destination[i] = (short)(x ^ y[i]); 3858destination[i] = (short)(x[i] << y); 3864destination[i] = (short)(x[i] >> y); 3871destination[i] = (x[i] == y[i]); 3879destination[i] = (x[i] == y); 3887destination[i] = (x[i] != y[i]); 3895destination[i] = (x[i] != y); 3903destination[i] = (x[i] >= y[i]); 3911destination[i] = (x[i] >= y); 3919destination[i] = (x[i] <= y[i]); 3927destination[i] = (x[i] <= y); 3935destination[i] = (x[i] > y[i]); 3943destination[i] = (x[i] > y); 3951destination[i] = (x[i] < y[i]); 3959destination[i] = (x[i] < y); 3993destination[i] = (uint)(x[i] + y[i]); 4004destination[i] = (uint)(x[i] + y); 4015destination[i] = (uint)(x + y[i]); 4047destination[i] = (uint)(x[i] - y[i]); 4058destination[i] = (uint)(x[i] - y); 4069destination[i] = (uint)(x - y[i]); 4101destination[i] = (uint)(x[i] * y[i]); 4112destination[i] = (uint)(x[i] * y); 4123destination[i] = (uint)(x * y[i]); 4160destination[i] = (uint)(x[i] / y[i]); 4171destination[i] = (uint)(x[i] / y); 4182destination[i] = (uint)(x / y[i]); 4198destination[i] = (uint)(x[i] % y[i]); 4209destination[i] = (uint)(x[i] % y); 4220destination[i] = (uint)(x % y[i]); 4231destination[i] = (uint)(x[i] & y[i]); 4242destination[i] = (uint)(x[i] & y); 4253destination[i] = (uint)(x & y[i]); 4264destination[i] = (uint)(x[i] | y[i]); 4275destination[i] = (uint)(x[i] | y); 4286destination[i] = (uint)(x | y[i]); 4297destination[i] = (uint)(x[i] ^ y[i]); 4308destination[i] = (uint)(x[i] ^ y); 4319destination[i] = (uint)(x ^ y[i]); 4327destination[i] = (uint)(x[i] << y); 4333destination[i] = (uint)(x[i] >> y); 4340destination[i] = (x[i] == y[i]); 4348destination[i] = (x[i] == y); 4356destination[i] = (x[i] != y[i]); 4364destination[i] = (x[i] != y); 4372destination[i] = (x[i] >= y[i]); 4380destination[i] = (x[i] >= y); 4388destination[i] = (x[i] <= y[i]); 4396destination[i] = (x[i] <= y); 4404destination[i] = (x[i] > y[i]); 4412destination[i] = (x[i] > y); 4420destination[i] = (x[i] < y[i]); 4428destination[i] = (x[i] < y); 4462destination[i] = (ulong)(x[i] + y[i]); 4473destination[i] = (ulong)(x[i] + y); 4484destination[i] = (ulong)(x + y[i]); 4516destination[i] = (ulong)(x[i] - y[i]); 4527destination[i] = (ulong)(x[i] - y); 4538destination[i] = (ulong)(x - y[i]); 4570destination[i] = (ulong)(x[i] * y[i]); 4581destination[i] = (ulong)(x[i] * y); 4592destination[i] = (ulong)(x * y[i]); 4629destination[i] = (ulong)(x[i] / y[i]); 4640destination[i] = (ulong)(x[i] / y); 4651destination[i] = (ulong)(x / y[i]); 4667destination[i] = (ulong)(x[i] % y[i]); 4678destination[i] = (ulong)(x[i] % y); 4689destination[i] = (ulong)(x % y[i]); 4700destination[i] = (ulong)(x[i] & y[i]); 4711destination[i] = (ulong)(x[i] & y); 4722destination[i] = (ulong)(x & y[i]); 4733destination[i] = (ulong)(x[i] | y[i]); 4744destination[i] = (ulong)(x[i] | y); 4755destination[i] = (ulong)(x | y[i]); 4766destination[i] = (ulong)(x[i] ^ y[i]); 4777destination[i] = (ulong)(x[i] ^ y); 4788destination[i] = (ulong)(x ^ y[i]); 4796destination[i] = (ulong)(x[i] << y); 4802destination[i] = (ulong)(x[i] >> y); 4809destination[i] = (x[i] == y[i]); 4817destination[i] = (x[i] == y); 4825destination[i] = (x[i] != y[i]); 4833destination[i] = (x[i] != y); 4841destination[i] = (x[i] >= y[i]); 4849destination[i] = (x[i] >= y); 4857destination[i] = (x[i] <= y[i]); 4865destination[i] = (x[i] <= y); 4873destination[i] = (x[i] > y[i]); 4881destination[i] = (x[i] > y); 4889destination[i] = (x[i] < y[i]); 4897destination[i] = (x[i] < y); 4931destination[i] = (ushort)(x[i] + y[i]); 4942destination[i] = (ushort)(x[i] + y); 4953destination[i] = (ushort)(x + y[i]); 4985destination[i] = (ushort)(x[i] - y[i]); 4996destination[i] = (ushort)(x[i] - y); 5007destination[i] = (ushort)(x - y[i]); 5039destination[i] = (ushort)(x[i] * y[i]); 5050destination[i] = (ushort)(x[i] * y); 5061destination[i] = (ushort)(x * y[i]); 5098destination[i] = (ushort)(x[i] / y[i]); 5109destination[i] = (ushort)(x[i] / y); 5120destination[i] = (ushort)(x / y[i]); 5136destination[i] = (ushort)(x[i] % y[i]); 5147destination[i] = (ushort)(x[i] % y); 5158destination[i] = (ushort)(x % y[i]); 5169destination[i] = (ushort)(x[i] & y[i]); 5180destination[i] = (ushort)(x[i] & y); 5191destination[i] = (ushort)(x & y[i]); 5202destination[i] = (ushort)(x[i] | y[i]); 5213destination[i] = (ushort)(x[i] | y); 5224destination[i] = (ushort)(x | y[i]); 5235destination[i] = (ushort)(x[i] ^ y[i]); 5246destination[i] = (ushort)(x[i] ^ y); 5257destination[i] = (ushort)(x ^ y[i]); 5265destination[i] = (ushort)(x[i] << y); 5271destination[i] = (ushort)(x[i] >> y); 5278destination[i] = (x[i] == y[i]); 5286destination[i] = (x[i] == y); 5294destination[i] = (x[i] != y[i]); 5302destination[i] = (x[i] != y); 5310destination[i] = (x[i] >= y[i]); 5318destination[i] = (x[i] >= y); 5326destination[i] = (x[i] <= y[i]); 5334destination[i] = (x[i] <= y); 5342destination[i] = (x[i] > y[i]); 5350destination[i] = (x[i] > y); 5358destination[i] = (x[i] < y[i]); 5366destination[i] = (x[i] < y); 5377destination[i] = (x[i] == y[i]); 5385destination[i] = (x[i] == y); 5393destination[i] = (x[i] != y[i]); 5401destination[i] = (x[i] != y);
DataFrame.cs (2)
430span[i] = span[i] && column.IsValid(index); 450span[i] = span[i] || column.IsValid(index);
DataFrameBuffer.cs (2)
62RawSpan[Length] = value; 99RawSpan[index] = value;
DataFrameColumn.cs (14)
617Swap(ref sortIndices[middle], ref sortIndices[right]); 636Swap(ref sortIndices[left], ref sortIndices[right]); 642Swap(ref sortIndices[left], ref sortIndices[right]); 671Swap(ref sortIndices[lo], ref sortIndices[lo + i - 1]); 702sortIndices[lo + i - 1] = sortIndices[lo + child - 1]; 706sortIndices[lo + i - 1] = di; 727sortIndices[j + 1] = sortIndices[j]; 732sortIndices[j + 1] = ti; 757sortIndices[i] = sortIndices[j]; 758sortIndices[j] = temp;
DateTimeComputation.cs (2)
48mutableSpan[i] = ret; 120mutableSpan[i] = ret;
PrimitiveColumnContainer.BinaryOperations.cs (3)
34leftSpan[j] = arithmetic.HandleOperation(operation, leftSpan[j], rightSpan[j]); 85rightSpan[j] = arithmetic.HandleOperation(operation, left, rightSpan[j]); 195destination[i] = (byte)(left[i] & right[i]);
PrimitiveColumnContainer.cs (7)
79span[bitMapBufferLength - 1] = (byte)(lastByte - 1); 190mutableBuffer[i] = value.GetValueOrDefault(); 208span[i] = func(span[i]); 230mutableResultBuffer[i] = value.GetValueOrDefault(); 252span[i] = value; 298bitMapBufferSpan[bitMapBufferIndex] = newBitMap; 519retSpan[i] = isValid ? value : default;
PrimitiveDataFrameColumnComputations.cs (72)
255mutableSpan[i] = (byte)(Math.Abs((decimal)mutableSpan[i])); 287mutableSpan[i] = ret; 351mutableSpan[i] = ret; 415mutableSpan[i] = ret; 479mutableSpan[i] = ret; 724mutableSpan[i] = (byte)(Math.Round((decimal)mutableSpan[i])); 742mutableSpan[i] = (char)(Math.Abs((decimal)mutableSpan[i])); 774mutableSpan[i] = ret; 838mutableSpan[i] = ret; 902mutableSpan[i] = ret; 966mutableSpan[i] = ret; 1211mutableSpan[i] = (char)(Math.Round((decimal)mutableSpan[i])); 1229mutableSpan[i] = (decimal)(Math.Abs((decimal)mutableSpan[i])); 1261mutableSpan[i] = ret; 1325mutableSpan[i] = ret; 1389mutableSpan[i] = ret; 1453mutableSpan[i] = ret; 1698mutableSpan[i] = (decimal)(Math.Round((decimal)mutableSpan[i])); 1716mutableSpan[i] = (double)(Math.Abs((decimal)mutableSpan[i])); 1748mutableSpan[i] = ret; 1812mutableSpan[i] = ret; 1876mutableSpan[i] = ret; 1940mutableSpan[i] = ret; 2185mutableSpan[i] = (double)(Math.Round((decimal)mutableSpan[i])); 2203mutableSpan[i] = (float)(Math.Abs((decimal)mutableSpan[i])); 2235mutableSpan[i] = ret; 2299mutableSpan[i] = ret; 2363mutableSpan[i] = ret; 2427mutableSpan[i] = ret; 2672mutableSpan[i] = (float)(Math.Round((decimal)mutableSpan[i])); 2690mutableSpan[i] = (int)(Math.Abs((decimal)mutableSpan[i])); 2722mutableSpan[i] = ret; 2786mutableSpan[i] = ret; 2850mutableSpan[i] = ret; 2914mutableSpan[i] = ret; 3159mutableSpan[i] = (int)(Math.Round((decimal)mutableSpan[i])); 3177mutableSpan[i] = (long)(Math.Abs((decimal)mutableSpan[i])); 3209mutableSpan[i] = ret; 3273mutableSpan[i] = ret; 3337mutableSpan[i] = ret; 3401mutableSpan[i] = ret; 3646mutableSpan[i] = (long)(Math.Round((decimal)mutableSpan[i])); 3664mutableSpan[i] = (sbyte)(Math.Abs((decimal)mutableSpan[i])); 3696mutableSpan[i] = ret; 3760mutableSpan[i] = ret; 3824mutableSpan[i] = ret; 3888mutableSpan[i] = ret; 4133mutableSpan[i] = (sbyte)(Math.Round((decimal)mutableSpan[i])); 4151mutableSpan[i] = (short)(Math.Abs((decimal)mutableSpan[i])); 4183mutableSpan[i] = ret; 4247mutableSpan[i] = ret; 4311mutableSpan[i] = ret; 4375mutableSpan[i] = ret; 4620mutableSpan[i] = (short)(Math.Round((decimal)mutableSpan[i])); 4638mutableSpan[i] = (uint)(Math.Abs((decimal)mutableSpan[i])); 4670mutableSpan[i] = ret; 4734mutableSpan[i] = ret; 4798mutableSpan[i] = ret; 4862mutableSpan[i] = ret; 5107mutableSpan[i] = (uint)(Math.Round((decimal)mutableSpan[i])); 5125mutableSpan[i] = (ulong)(Math.Abs((decimal)mutableSpan[i])); 5157mutableSpan[i] = ret; 5221mutableSpan[i] = ret; 5285mutableSpan[i] = ret; 5349mutableSpan[i] = ret; 5594mutableSpan[i] = (ulong)(Math.Round((decimal)mutableSpan[i])); 5612mutableSpan[i] = (ushort)(Math.Abs((decimal)mutableSpan[i])); 5644mutableSpan[i] = ret; 5708mutableSpan[i] = ret; 5772mutableSpan[i] = ret; 5836mutableSpan[i] = ret; 6081mutableSpan[i] = (ushort)(Math.Round((decimal)mutableSpan[i]));
Utils\BitUtility.cs (3)
61data[index / 8] &= (byte)~BitMask[index % 8]; 66data[index / 8] |= BitMask[index % 8]; 73data[idx] = value
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\BinaryEmbedding.cs (1)
103utf8[i] = value[i] ? (byte)'1' : (byte)'0';
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
154ints[i] = BinaryPrimitives.ReverseEndianness(ints[i]);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TagSetTests.cs (1)
174chars[i] = Alphabet[rand.Next(0, Alphabet.Length)];
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Redaction\TestSpanFormattable.cs (1)
35destination[i] = _value[i];
Microsoft.Extensions.Compliance.Redaction (8)
HmacRedactor.cs (8)
136destination[offset] = _base64CharactersTable[(hashToConvert[i] & 0xfc) >> 2]; 137destination[offset + 1] = _base64CharactersTable[((hashToConvert[i] & 0x03) << 4) | ((hashToConvert[i + 1] & 0xf0) >> 4)]; 138destination[offset + 2] = _base64CharactersTable[((hashToConvert[i + 1] & 0x0f) << 2) | ((hashToConvert[i + 2] & 0xc0) >> 6)]; 139destination[offset + 3] = _base64CharactersTable[hashToConvert[i + 2] & 0x3f]; 157destination[offset] = _base64CharactersTable[(hashToConvert[iterations] & 0xfc) >> 2]; 158destination[offset + 1] = _base64CharactersTable[(hashToConvert[iterations] & 0x03) << 4]; 159destination[offset + 2] = _base64CharactersTable[64]; 160destination[offset + 3] = _base64CharactersTable[64];
Microsoft.Extensions.DependencyInjection.Abstractions (5)
ActivatorUtilities.cs (5)
822_parameterValues[applyIndex] = givenParameters[givenIndex]; 841_parameterValues[i] = defaultValue; 868_parameterValues[index] = defaultValue; 873_parameterValues[index] = value; 900_parameterValues[i] = givenParameters[(int)parameterMap[i]!];
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
146_bitMap[bitIndex] = value | mask;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\Resources\FileNamesOnlyFileSystem.cs (1)
53destination[i] = c[i];
Linux\Resources\HardcodedValueFileSystem.cs (1)
84destination[i] = toRead[i];
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpHeadersRedactor.cs (1)
144destinationMany[index++] = SeparatorChar;
Microsoft.Extensions.Logging.Abstractions (6)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
235span[offset] = ',';
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Resolver\DnsDataWriter.cs (1)
81_buffer.Span[_position] = value;
Resolver\DnsPrimitives.cs (1)
154destination[written] = 0;
Microsoft.ML.AutoML.Tests (1)
Util.cs (1)
31editor.Values[i] = colNames.ElementAt(i).AsMemory();
Microsoft.ML.Core (80)
Utilities\HashArray.cs (1)
240destination[i] = _entries[i].Value;
Utilities\Utils.cs (4)
196dst[i] = src[i]; 466a[i] = i; 550Swap(ref rgv[iv], ref rgv[iv + rand.Next(rgv.Length - iv)]);
Utilities\VBufferUtils.cs (75)
278manip(i, ref editor.Values[i]); 284manip(dstIndices[i], ref editor.Values[i]); 313manip(slot, ref editor.Values[slot]); 320manip(slot, ref editor.Values[idx]); 346editor.Indices[idx] = slot; 347editor.Values[idx] = value; 371editor.Values[indices[i]] = values[i]; 390editor.Values[indices[i]] = values[i]; 438editor.Values[ii] = i >= 0 && dstIndices[i] == ii ? dstValues[i--] : default(T); 439editor.Indices[ii] = ii; 481editor.Indices[j] = i; 482editor.Values[j] = srcValues[i]; 632manip(i, default(TSrc), ref editor.Values[i]); 637manip(dstIndices[i], default(TSrc), ref editor.Values[i]); 653manip(i, srcValues[i], ref editor.Values[i]); 669manip(i, srcValues[sI], ref editor.Values[i]); 673manip(i, default(TSrc), ref editor.Values[i]); 679manip(srcIndices[i], srcValues[i], ref editor.Values[srcIndices[i]]); 694manip(editor.Indices[i] = srcIndices[i], srcValues[i], ref editor.Values[i]); 763indices[i] = dIndex; 764values[i] = dstValues[dI]; 766manip(dIndex, default(TSrc), ref values[i]); 771indices[i] = sIndex; 772values[i] = default(TDst); 773manip(sIndex, srcValues[sI], ref values[i]); 781indices[i] = dIndex; 782values[i] = dstValues[dI]; 783manip(sIndex, srcValues[sI], ref values[i]); 801manip(srcIndices[i], srcValues[i], ref editor.Values[i]); 816manip(sIndex, srcValues[sI], ref editor.Values[i]); 820manip(dstIndices[i], default(TSrc), ref editor.Values[i]); 831manip(sIndex, srcValues[sI], ref editor.Values[dI++]); 851editor.Indices[dI] = sI++; 862manip(srcIndices[sI], srcValues[sI], ref editor.Values[sI]); 897manip(i, srcValues[i], default(TDst), ref editor.Values[i]); 911editor.Indices[ii] = i; 912manip(i, srcValues[ii], default(TDst), ref editor.Values[ii]); 926manip(j, default(TSrc), dstValues[j], ref editor.Values[j]); 932editor.Values[j] = dstValues[j]; 940manip(i, srcValues[i], dstValues[i], ref editor.Values[i]); 959manip(j, srcValues[ii], dstValues[j], ref editor.Values[j]); 963manip(j, default(TSrc), dstValues[j], ref editor.Values[j]); 973manip(j, srcValues[ii], dstValues[j], ref editor.Values[j]); 977editor.Values[j] = dstValues[j]; 997editor.Indices[jj] = j; 998manip(j, default(TSrc), dstValues[jj], ref editor.Values[jj]); 1005editor.Indices[jj] = dstIndices[jj]; 1006editor.Values[jj] = dstValues[jj]; 1021manip(i, srcValues[i], dstValues[jj], ref editor.Values[i]); 1025manip(i, srcValues[i], default(TDst), ref editor.Values[i]); 1081editor.Indices[kk] = i; 1082manip(i, srcValues[ii], dstValues[jj], ref editor.Values[kk]); 1089editor.Indices[kk] = i; 1090manip(i, srcValues[ii], default(TDst), ref editor.Values[kk]); 1097editor.Indices[kk] = j; 1100manip(j, default(TSrc), dstValues[jj], ref editor.Values[kk]); 1102editor.Values[kk] = dstValues[jj]; 1146values[i] = func(i, srcValues[i]); 1154values[i] = func(srcIndices[i], srcValues[i]); 1208editor.Values[i] = func(i, aVal, bValues[i]); 1218editor.Values[i] = func(i, aValues[i], bVal); 1225editor.Values[i] = func(i, aValues[i], bValues[i]); 1265editor.Values[aI] = func(aIndices[aI], aValues[aI], bValues[aI]); 1277editor.Values[bI] = func(bIndices[bI], aVal, bValues[bI]); 1280editor.Values[bI] = func(bIndices[bI], default(TSrc1), bValues[bI]); 1292editor.Values[aI] = func(aIndices[aI], aValues[aI], bVal); 1295editor.Values[aI] = func(aIndices[aI], aValues[aI], default(TSrc2)); 1327editor.Values[newI] = func(index, aVal, bVal); 1328indices[newI++] = index; 1334editor.Values[newI] = func(index, aValues[aI], default(TSrc2)); 1335indices[newI++] = index; 1341editor.Values[newI] = func(index, default(TSrc1), bValues[bI]); 1342indices[newI++] = index; 1360editor.Values[i] = src[i];
Microsoft.ML.Core.Tests (6)
UnitTests\ScoreSchemaTest.cs (1)
27bufferEditor.Values[i] = string.Format($"Key-{i}").AsMemory();
UnitTests\TestVBuffer.cs (5)
125editor.Values[i] *= d; 559indices[i] = i; 562indices[i] += offset; 1121bEditor.Indices[i] = a.GetIndices()[i]; 1130bEditor.Indices[i] = a.GetIndices()[bEditor.Indices[i]];
Microsoft.ML.Data (139)
Data\RowCursorUtils.cs (3)
286conv(in srcValues[i], ref editor.Values[i]); 441editor.Values[kv.Key] = kv.Value - 1; 443editor.Values[kv.Key] = Single.NaN;
DataLoadSave\Database\DatabaseLoaderCursor.cs (26)
389editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetBoolean(columnIndex); 395editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetBoolean(columnIndex); 419editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetByte(columnIndex); 425editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetByte(columnIndex); 449editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetDateTime(columnIndex); 455editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetDateTime(columnIndex); 479editor.Values[i] = DataReader.IsDBNull(columnIndex) ? double.NaN : DataReader.GetDouble(columnIndex); 485editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? double.NaN : DataReader.GetDouble(columnIndex); 509editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt16(columnIndex); 515editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt16(columnIndex); 539editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt32(columnIndex); 545editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt32(columnIndex); 569editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt64(columnIndex); 575editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetInt64(columnIndex); 599editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : (sbyte)DataReader.GetByte(columnIndex); 605editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : (sbyte)DataReader.GetByte(columnIndex); 629editor.Values[i] = DataReader.IsDBNull(columnIndex) ? float.NaN : DataReader.GetFloat(columnIndex); 635editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? float.NaN : DataReader.GetFloat(columnIndex); 659editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetString(columnIndex).AsMemory(); 665editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : DataReader.GetString(columnIndex).AsMemory(); 689editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : (ushort)DataReader.GetInt16(columnIndex); 695editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : (ushort)DataReader.GetInt16(columnIndex); 719editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : (uint)DataReader.GetInt32(columnIndex); 725editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : (uint)DataReader.GetInt32(columnIndex); 749editor.Values[i] = DataReader.IsDBNull(columnIndex) ? default : (ulong)DataReader.GetInt64(columnIndex); 755editor.Values[i++] = DataReader.IsDBNull(columnIndex) ? default : (ulong)DataReader.GetInt64(columnIndex);
DataView\DataViewConstructionUtils.cs (2)
319dstEditor.Values[i] = convert(buf[i]); 986dstEditor.Values[i] = value[i].AsMemory();
DataView\Transposer.cs (1)
1214editor.Indices[i] -= min;
Deprecated\Vector\GenericSpanSortHelper.cs (16)
68keys[a] = keys[b]; 69values[a] = values[b]; 70keys[b] = key; 71values[b] = value; 82keys[i] = keys[j]; 83values[i] = values[j]; 84keys[j] = k; 85values[j] = v; 226keys[lo + i - 1] = keys[lo + child - 1]; 227values[lo + i - 1] = values[lo + child - 1]; 230keys[lo + i - 1] = d; 231values[lo + i - 1] = dValue; 251keys[j + 1] = keys[j]; 252values[j + 1] = values[j]; 255keys[j + 1] = t; 256values[j + 1] = tValue;
Deprecated\Vector\VBufferMathUtils.cs (9)
329values[iDD] = dstValues[iD--] + c * srcValues[iS]; 331values[iDD] = c * srcValues[iS]; 332indices[iDD] = offset + iS; 350indices[iDD] = dstIndices[iD]; 351values[iDD] = dstValues[iD--] + c * srcValues[iS--]; 357indices[iDD] = dstIndices[iD]; 358values[iDD] = dstValues[iD--]; 363indices[iDD] = sIndex + offset; 364values[iDD] = c * srcValues[iS--];
Deprecated\Vector\VectorUtils.cs (6)
121aEditor.Indices[count] = pair.Key; 122aEditor.Values[count++] = pair.Value; 128aEditor.Indices[count] = pair.Key; 129aEditor.Values[count++] = pair.Value; 148aEditor.Values[i] = ratio * aEditor.Values[i]; 456dst[srcIndices[i]] += c * srcValues[i];
Evaluators\ClusteringEvaluator.cs (3)
697editor.Values[i] = scores.GetItemOrDefault(sortedIndices[i]); 711editor.Values[i] = (uint)sortedIndices[i] + 1; 746editor.Values[i - 1] = $"#{i} {suffix}".AsMemory();
Evaluators\EvaluatorBase.cs (1)
215editor.Values[i] = dictionaries[i].ColName.AsMemory();
Evaluators\EvaluatorUtils.cs (9)
516editor.Values[map[kvp.Key]] = kvp.Value; 540editor.Values[map[kvp.Key]] = kvp.Value; 542editor.Values[j] = def; 704editor.Values[j] = 0; 706editor.Values[j] = (uint)keyMapperCur[srcValues[j] - 1] + 1; 715editor.Values[j] = 0; 717editor.Values[j] = (uint)keyMapperCur[srcValues[j] - 1] + 1; 718editor.Indices[j] = srcIndices[j]; 1034editor.Values[j] = string.Format("Label_{0}", j).AsMemory();
Evaluators\MulticlassClassificationEvaluator.cs (5)
537editor.Values[i] = string.Format("(class {0})", ClassNames[i]).AsMemory(); 761editor.Values[i] = scores.GetItemOrDefault(sortedIndices[i]); 775editor.Values[i] = (uint)sortedIndices[i] + 1; 838editor.Values[i - 1] = string.Format("#{0} {1}", i, suffix).AsMemory(); 850editor.Values[i] = _classNames[i];
Evaluators\MultiOutputRegressionEvaluator.cs (2)
367editor.Values[i] = string.Format("(Label_{0})", i).AsMemory(); 606editor.Values[i] = string.Format("{0}_{1}", prefix, i).AsMemory();
Evaluators\QuantileRegressionEvaluator.cs (9)
153totalL1LossEditor.Values[i] += weightedDiff; 154totalL2LossEditor.Values[i] += diff * weightedDiff; 165totalL1LossEditor.Values[scoreIndices[i]] += weightedDiff; 166totalL2LossEditor.Values[scoreIndices[i]] += diff * weightedDiff; 181totalLossEditor.Values[i] += lossValues[i] * weight; 188totalLossEditor.Values[lossIndices[i]] += lossValues[i] * weight; 200editor.Values[i] = srcValues[i] * inv; 375editor.Values[i] = string.Format("{0} ({1})", prefix, quantiles[i]).AsMemory(); 409l1Editor.Values[s.Key] = Math.Abs(lab - s.Value);
Evaluators\RankingEvaluator.cs (3)
537editor.Values[i] = string.Format("{0}@{1}", prefix, i + 1).AsMemory(); 546editor.Values[i] = string.Format("@{0}", i + 1).AsMemory(); 685editor.Values[i] =
Scorers\ScoreSchemaFactory.cs (1)
95bufferEditor.Values[i] = string.Format("Quantile-{0}", quantiles[i]).AsMemory();
Transforms\ColumnConcatenatingTransformer.cs (7)
752editor.Values[count] = bufferValues[i]; 753editor.Indices[count++] = offset + i; 761editor.Values[count] = bufferValues[i]; 762editor.Indices[count++] = offset + bufferIndices[i]; 771editor.Values[count] = tmp; 772editor.Indices[count++] = offset; 797editor.Values[offset++] = tmp;
Transforms\Hashing.cs (18)
1051editor.Values[i] = hasher.HashCoreOld(seed, mask, srcValues[i]); 1068editor.Values[i] = hasher.HashCoreOld(seed, mask, srcValues[i]); 1077editor.Values[i] = defaultHashOld; 1081editor.Values[srcIndices[i]] = hasher.HashCoreOld(seed, mask, srcValues[i]); 1105editor.Values[i] = hasher.HashCore(seed, mask, srcValues[i]); 1122editor.Values[i] = hasher.HashCore(seed, mask, srcValues[i]); 1131editor.Values[i] = defaultHash; 1135editor.Values[srcIndices[i]] = hasher.HashCore(seed, mask, srcValues[i]); 1171editor.Values[i] = hasher.HashCoreOld(Hashing.MurmurRound(seed, (uint)i), mask, srcValues[i]); 1177editor.Values[i] = hasher.HashCoreOld(Hashing.MurmurRound(seed, (uint)srcIndices[i]), mask, srcValues[i]); 1194editor.Values[i] = hasher.HashCoreOld(Hashing.MurmurRound(seed, (uint)i), mask, srcValues[i]); 1204editor.Values[i] = hasher.HashCoreOld(indexSeed, mask, default(T)); 1206editor.Values[i] = hasher.HashCoreOld(indexSeed, mask, srcValues[j++]); 1235editor.Values[i] = hasher.HashCore(Hashing.MurmurRound(seed, (uint)i), mask, srcValues[i]); 1241editor.Values[i] = hasher.HashCore(Hashing.MurmurRound(seed, (uint)srcIndices[i]), mask, srcValues[i]); 1258editor.Values[i] = hasher.HashCore(Hashing.MurmurRound(seed, (uint)i), mask, srcValues[i]); 1268editor.Values[i] = hasher.HashCore(indexSeed, mask, default(T)); 1270editor.Values[i] = hasher.HashCore(indexSeed, mask, srcValues[j++]);
Transforms\KeyToValue.cs (5)
398MapKey(in srcValues[slot], keyValues, ref editor.Values[slot]); 426MapKey(in srcValues[islot], keyValues, ref editor.Values[slot]); 433editor.Values[slot] = _na; 451editor.Values[islotDst] = dstItem; 452editor.Indices[islotDst++] = srcIndices[islotSrc];
Transforms\KeyToVector.cs (5)
418editor.Values[slot++] = sb.ToString().AsMemory(); 589editor.Values[count] = 1; 590editor.Indices[count++] = slot * size + (int)key; 602editor.Values[count] = 1; 603editor.Indices[count++] = indices[islot] * size + (int)key;
Transforms\ValueMapping.cs (2)
218editor.Values[i] = keys[i].ToString().AsMemory(); 926editor.Values[ich] = MapValue(values[ich]);
Transforms\ValueToKeyMappingTransformerImpl.cs (2)
796editor.Values[i] = sb.ToString().AsMemory(); 1140srcMeta.GetItemOrDefault((int)(convKeyVal - 1), ref editor.Values[pair.Key]);
Utilities\SlotDropper.cs (4)
137editor.Values[iDst++] = srcValues[iSrc++]; 144editor.Values[iDst++] = srcValues[iSrc++]; 180editor.Indices[iiDst] = index - iOffset; 181editor.Values[iiDst++] = srcValues[iiSrc++];
Microsoft.ML.DataView (4)
VBuffer.cs (4)
254editor.Indices[i] = _indices[i + copyMin] - sourceIndex; 310destination[destinationIndex + iv++] = defaultValue; 312destination[destinationIndex + iv++] = _values[islot]; 315destination[destinationIndex + iv++] = defaultValue;
Microsoft.ML.Ensemble (9)
EnsembleUtils.cs (5)
61editor.Values[i] = !includedIndices[i] ? defaultValue : srcValues[i]; 74editor.Values[count] = srcValues[i]; 75editor.Indices[count] = i; 94editor.Values[count] = srcValues[i]; 95editor.Indices[count] = srcIndices[i];
OutputCombiners\BaseMultiCombiner.cs (1)
103editor.Values[i] = Single.NaN;
OutputCombiners\MultiMedian.cs (1)
93editor.Values[i] = MathUtils.GetMedianInPlace(raw, count);
OutputCombiners\MultiVoting.cs (2)
95editor.Values[index]++; 102editor.Values[i] /= voteCount;
Microsoft.ML.FastTree (9)
FastTree.cs (3)
1319conv(in srcValues[i], ref editor.Values[i]); 2537editor.Indices[i] = _sparse[i].Key; 2538editor.Values[i] = _sparse[i].Value;
GamModelParameters.cs (1)
429editor.Values[featureIndex] = contribution;
RandomForestRegression.cs (1)
255editor.Values[i] = qdist.GetQuantile((float)quantiles[i]);
TreeEnsembleFeaturizer.cs (4)
273editor.Values[i] = _ensemble.GetLeafValue(i, _leafIds[i]); 480editor.Values[t] = string.Format("Tree{0:000}", t).AsMemory(); 495editor.Values[i++] = string.Format("Tree{0:000}Leaf{1:000}", t, l).AsMemory(); 515editor.Values[i++] = string.Format("Tree{0:000}Node{1:000}", t, l).AsMemory();
Microsoft.ML.ImageAnalytics (24)
ImagePixelExtractor.cs (24)
387if (a != -1) { vb[idst + a] = (byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255); } 388if (r != -1) { vb[idst + r] = pixelData[ix + redIndex]; } 389if (g != -1) { vb[idst + g] = pixelData[ix + greenIndex]; } 390if (b != -1) { vb[idst + b] = pixelData[ix + blueIndex]; } 394if (a != -1) { vf[idst + a] = (byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255); } 395if (r != -1) { vf[idst + r] = pixelData[ix + redIndex]; } 396if (g != -1) { vf[idst + g] = pixelData[ix + greenIndex]; } 397if (b != -1) { vf[idst + b] = pixelData[ix + blueIndex]; } 401if (a != -1) { vf[idst + a] = ((byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255) - offset) * scale; } 402if (r != -1) { vf[idst + r] = (pixelData[ix + redIndex] - offset) * scale; } 403if (g != -1) { vf[idst + g] = (pixelData[ix + greenIndex] - offset) * scale; } 404if (b != -1) { vf[idst + b] = (pixelData[ix + blueIndex] - offset) * scale; } 423if (a != -1) vb[idst + cpix * a] = (byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255); 424if (r != -1) vb[idst + cpix * r] = pixelData[ix + redIndex]; 425if (g != -1) vb[idst + cpix * g] = pixelData[ix + greenIndex]; 426if (b != -1) vb[idst + cpix * b] = pixelData[ix + blueIndex]; 430if (a != -1) vf[idst + cpix * a] = (byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255); 431if (r != -1) vf[idst + cpix * r] = pixelData[ix + redIndex]; 432if (g != -1) vf[idst + cpix * g] = pixelData[ix + greenIndex]; 433if (b != -1) vf[idst + cpix * b] = pixelData[ix + blueIndex]; 437if (a != -1) vf[idst + cpix * a] = ((byte)(alphaIndex > 0 ? pixelData[ix + alphaIndex] : 255) - offset) * scale; 438if (r != -1) vf[idst + cpix * r] = (pixelData[ix + redIndex] - offset) * scale; 439if (g != -1) vf[idst + cpix * g] = (pixelData[ix + greenIndex] - offset) * scale; 440if (b != -1) vf[idst + cpix * b] = (pixelData[ix + blueIndex] - offset) * scale;
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
174distances[i] = distance;
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
702editor.Values[i] = CpuMathUtils.DotProductSparse(model.AsSpan(offs), values, indices, count);
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
600dstEditor.Values[i] = slotsAttr.Strings[i].ToString(Encoding.UTF8).AsMemory(); 745editor.Values[i] = tensor.GetValue(i).AsMemory();
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
594editor.Values[i] = VectorUtils.DotProductWithOffset(transformInfo.Eigenvectors[i], 0, in src) -
Microsoft.ML.StandardTrainers (13)
LdSvm\LdSvmTrainer.cs (3)
430wInit.Values[j] = 2 * Host.Rand.NextSingle() - 1; 431thetaPrimeInit.Values[j] = 2 * Host.Rand.NextSingle() - 1; 433thetaInit.Values[j] = 2 * Host.Rand.NextSingle() - 1;
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
273editor.Values[c] += mult; 791editor.Values[i] = Biases[i] + VectorUtils.DotProduct(in weights[i], in src); 1247dst[i] = MathUtils.ExpSlow(dst[i] - softmax);
Standard\ModelStatistics.cs (5)
378var weight = estimateEditor.Values[i - 1] = _weights.GetItemOrDefault(wi); 379var stdError = stdErrorEditor.Values[wi] = coeffStdErrorValues[i]; 380zScoreEditor.Values[i - 1] = weight / stdError; 381pValueEditor.Values[i - 1] = 1 - (float)ProbabilityFunctions.Erf(Math.Abs(zScoreEditor.Values[i - 1] / sqrt2)); 398editor.Values[i - 1] = slotNames.GetItemOrDefault(wi);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
630labelScores[iLabel] =
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
392output[i] = (float)(buffer[i] / sum);
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
71bufferEditor.Values[i] = op.inputs[i].op.name.AsMemory(); 419result[i] = (T)(object)buffer[i].AsMemory();
Microsoft.ML.TimeSeries (15)
AdaptiveSingularSpectrumSequenceModeler.cs (7)
1440resEditor.Values[i] = _autoregressionNoiseMean + _observationNoiseMean; 1442resEditor.Values[i] += _state[j] * _alpha[k]; 1445resEditor.Values[i] += resEditor.Values[j] * _alpha[k]; 1467sdEditor.Values[i] = sdEditor.Values[i - 1] + _autoregressionNoiseVariance * temp * temp; 1471sdEditor.Values[i] = (float)Math.Sqrt(sdEditor.Values[i]); 1524upper.Values[i] = (Single)(meanForecast[i] + forecast.BoundOffset + temp); 1525lower.Values[i] = (Single)(meanForecast[i] + forecast.BoundOffset - temp);
SequentialAnomalyDetectionTransformBase.cs (2)
517editor.Values[i] = Double.NaN; 531result.Values[i] = Double.NaN;
SequentialForecastingTransformBase.cs (1)
301editor.Values[i] = float.NaN;
SlidingWindowTransformBase.cs (4)
150result.Values[i] = value; 162result.Values[i] = windowedBuffer[i]; 163result.Values[_parentSliding.WindowSize] = input; 168result.Values[i] = windowedBuffer[i];
SrCnnTransformBase.cs (1)
290editor.Values[i] = 0;
Microsoft.ML.Tokenizers (89)
Model\BertTokenizer.cs (17)
352destination[valuesWritten++] = ClassificationTokenId; 361destination[valuesWritten++] = id; 369destination[valuesWritten++] = SeparatorTokenId; 380destination[valuesWritten++] = id; 388destination[valuesWritten++] = SeparatorTokenId; 480destination[valuesWritten++] = 1; // CLS 489destination[valuesWritten++] = 0; 497destination[valuesWritten++] = 1; // SEP 508destination[valuesWritten++] = 0; 516destination[valuesWritten++] = 1; // SEP 529destination[valuesWritten++] = id == ClassificationTokenId || id == SeparatorTokenId || id == PaddingTokenId || id == MaskingTokenId || id == UnknownTokenId ? 1 : 0; 541destination[valuesWritten++] = id == ClassificationTokenId || id == SeparatorTokenId || id == PaddingTokenId || id == MaskingTokenId || id == UnknownTokenId ? 1 : 0; 617destination[valuesWritten++] = 0; // [CLS] 618destination[valuesWritten++] = 0; // [SEP] 627destination[valuesWritten++] = 0; 639destination[valuesWritten++] = 1; 646destination[valuesWritten++] = 1; // [SEP]
Model\BPETokenizer.cs (1)
1049current[i] = (byte)byteToUnicodeEncoding.UnicodeToByte[span[i]];
Model\CodeGenTokenizer.cs (1)
1479current[i] = (byte)byteToUnicodeEncoding.UnicodeToByte[span[i]];
Model\SentencePieceUnigramModel.cs (3)
483bestPathEndsAt[i] = new BestPathNode(); 512ref BestPathNode targetNode = ref bestPathEndsAt[keyPos]; 535ref BestPathNode targetNode = ref bestPathEndsAt[startsAt + mbLen];
Model\TiktokenTokenizer.cs (4)
329indexMappingSpan[encodedLength] = text.Length; 446indexMappingSpan[encodedLength] = text.Length; 611indexMappingSpan[encodedLength] = text.Length; 737indexMappingSpan[encodedLength] = text.Length;
Normalizer\SentencePieceNormalizer.cs (9)
152span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 163span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : c; 175span[bufferIndex++] = c; 188span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 227span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 263span[i] = span[i - 1]; 266span[currentBufferIndex + 1] = EscapeWhiteSpaces ? DummyPrefix : ' '; 420normalized[normalizedIndex++] = sp[n]; 480normalized[normalizedIndex] = (byte)' ';
Utils\BytePairEncoder.cs (1)
32byteIndicesAndRanks[i] = (i, int.MaxValue);
Utils\Helpers.cs (44)
80destination[targetIndex] = (byte)c; 81indexMapping[targetIndex] = i; 89destination[targetIndex] = (byte)((c + (0b110u << 11)) >> 6); 90destination[targetIndex + 1] = (byte)((c & 0x3Fu) + 0x80u); 91indexMapping[targetIndex] = indexMapping[targetIndex + 1] = i; 100destination[targetIndex] = (byte)((value + (0b11110 << 21)) >> 18); 101destination[targetIndex + 1] = (byte)(((value & (0x3Fu << 12)) >> 12) + 0x80u); 102destination[targetIndex + 2] = (byte)(((value & (0x3Fu << 6)) >> 6) + 0x80u); 103destination[targetIndex + 3] = (byte)((value & 0x3Fu) + 0x80u); 104indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = indexMapping[targetIndex + 3] = i; 111destination[targetIndex] = (byte)((c + (0b1110 << 16)) >> 12); 112destination[targetIndex + 1] = (byte)(((c & (0x3Fu << 6)) >> 6) + 0x80u); 113destination[targetIndex + 2] = (byte)((c & 0x3Fu) + 0x80u); 114indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = i; 173destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)c]; 174indexMapping[targetIndex] = i; 182destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((c + (0b110u << 11)) >> 6)]; 183destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)((c & 0x3Fu) + 0x80u)]; 184indexMapping[targetIndex] = indexMapping[targetIndex + 1] = i; 193destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((value + (0b11110 << 21)) >> 18)]; 194destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)(((value & (0x3Fu << 12)) >> 12) + 0x80u)]; 195destination[targetIndex + 2] = byteToUnicodeEncoder.ByteToUnicode[(char)(((value & (0x3Fu << 6)) >> 6) + 0x80u)]; 196destination[targetIndex + 3] = byteToUnicodeEncoder.ByteToUnicode[(char)((value & 0x3Fu) + 0x80u)]; 197indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = indexMapping[targetIndex + 3] = i; 204destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((c + (0b1110 << 16)) >> 12)]; 205destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)(((c & (0x3Fu << 6)) >> 6) + 0x80u)]; 206destination[targetIndex + 2] = byteToUnicodeEncoder.ByteToUnicode[(char)((c & 0x3Fu) + 0x80u)]; 207indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = i; 255utf16Chars[charIndex++] = (char)firstByte; 303utf16Chars[charIndex++] = (char)codePoint; 308utf16Chars[charIndex++] = (char)((codePoint >> 10) + 0xD800); 309utf16Chars[charIndex++] = (char)((codePoint & 0x3FF) + 0xDC00);
Utils\Helpers.netstandard.cs (2)
117span[i] = newValue; 126destination[i] = source[i] == oldValue ? newValue : source[i];
Utils\ValueStringBuilder.cs (7)
78_chars[Length] = '\0'; 88return ref _chars[index]; 121_chars[Length] = '\0'; 273chars[pos] = c; 293_chars[pos] = s[0]; 328dst[i] = c; 344dst[i] = *value++;
Microsoft.ML.Tokenizers.Tests (45)
src\Microsoft.ML.Tokenizers\Utils\Helpers.cs (44)
80destination[targetIndex] = (byte)c; 81indexMapping[targetIndex] = i; 89destination[targetIndex] = (byte)((c + (0b110u << 11)) >> 6); 90destination[targetIndex + 1] = (byte)((c & 0x3Fu) + 0x80u); 91indexMapping[targetIndex] = indexMapping[targetIndex + 1] = i; 100destination[targetIndex] = (byte)((value + (0b11110 << 21)) >> 18); 101destination[targetIndex + 1] = (byte)(((value & (0x3Fu << 12)) >> 12) + 0x80u); 102destination[targetIndex + 2] = (byte)(((value & (0x3Fu << 6)) >> 6) + 0x80u); 103destination[targetIndex + 3] = (byte)((value & 0x3Fu) + 0x80u); 104indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = indexMapping[targetIndex + 3] = i; 111destination[targetIndex] = (byte)((c + (0b1110 << 16)) >> 12); 112destination[targetIndex + 1] = (byte)(((c & (0x3Fu << 6)) >> 6) + 0x80u); 113destination[targetIndex + 2] = (byte)((c & 0x3Fu) + 0x80u); 114indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = i; 173destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)c]; 174indexMapping[targetIndex] = i; 182destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((c + (0b110u << 11)) >> 6)]; 183destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)((c & 0x3Fu) + 0x80u)]; 184indexMapping[targetIndex] = indexMapping[targetIndex + 1] = i; 193destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((value + (0b11110 << 21)) >> 18)]; 194destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)(((value & (0x3Fu << 12)) >> 12) + 0x80u)]; 195destination[targetIndex + 2] = byteToUnicodeEncoder.ByteToUnicode[(char)(((value & (0x3Fu << 6)) >> 6) + 0x80u)]; 196destination[targetIndex + 3] = byteToUnicodeEncoder.ByteToUnicode[(char)((value & 0x3Fu) + 0x80u)]; 197indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = indexMapping[targetIndex + 3] = i; 204destination[targetIndex] = byteToUnicodeEncoder.ByteToUnicode[(char)((c + (0b1110 << 16)) >> 12)]; 205destination[targetIndex + 1] = byteToUnicodeEncoder.ByteToUnicode[(char)(((c & (0x3Fu << 6)) >> 6) + 0x80u)]; 206destination[targetIndex + 2] = byteToUnicodeEncoder.ByteToUnicode[(char)((c & 0x3Fu) + 0x80u)]; 207indexMapping[targetIndex] = indexMapping[targetIndex + 1] = indexMapping[targetIndex + 2] = i; 255utf16Chars[charIndex++] = (char)firstByte; 303utf16Chars[charIndex++] = (char)codePoint; 308utf16Chars[charIndex++] = (char)((codePoint >> 10) + 0xD800); 309utf16Chars[charIndex++] = (char)((codePoint & 0x3FF) + 0xDC00);
TokenizerTests.cs (1)
98destination[pos++] = (char)('a' + i);
Microsoft.ML.TorchSharp (10)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
820editor.Values[i] = outputCacher.ScoresBuffer[i]; 844editor.Values[i] = outputCacher.PredictedLabelsBuffer[i]; 868editor.Values[i] = outputCacher.BoxBuffer[i];
NasBert\NerTrainer.cs (4)
181newValues[i] = target.GetItemOrDefault(++targetIndex); 185newValues[i] = target.GetItemOrDefault(targetIndex); 399newValues[targetIndex++] = (uint)prediction[0]; 405newValues[targetIndex++] = (uint)prediction[i];
NasBert\TextClassificationTrainer.cs (1)
339editor.Values[i] = values[i];
Roberta\QATrainer.cs (2)
792editor.Values[i] = outputCacher.ScoresBuffer[i]; 819editor.Values[i] = outputCacher.PredictedAnswersBuffer[i];
Microsoft.ML.Transforms (93)
Dracula\CMCountTable.cs (1)
162counts[ilabel] = minValue;
Dracula\CountTableTransformer.cs (1)
663editor.Values[i * nFeatures + j] = $"{slotName}_{featureNamesValues[j]}".AsMemory();
Dracula\DictCountTable.cs (1)
124counts[ilabel] = count;
Dracula\Featurizer.cs (9)
131editor.Values[i] = $"{classNames[i]}_Count".AsMemory(); 133editor.Values[_labelBinCount + i] = $"{classNames[i]}_LogOdds".AsMemory(); 134editor.Values[NumFeatures - 1] = "IsBackoff".AsMemory(); 156countsBuffer[i++] = count; 166features[NumFeatures - 1] = isGarbage ? 1 : 0; 179counts[ifeat] += Stats.SampleFromLaplacian(rand, 0, LaplaceScale[iCol]); 183counts[ifeat] = 0; 201logOdds[i] = 0; // guarding against infinite log-odds 204logOdds[i] = (float)Math.Log(
ExpressionTransformer.cs (20)
624editor.Values[i] = fn(src0.GetValues()[i]); 643editor.Values[i] = fn(src0.GetValues()[i]); 654editor.Values[i] = fn(src0.GetValues()[ii]); 658editor.Values[i] = dstDef; 688editor.Values[i] = fn(src0.GetValues()[i], src1); 700editor.Values[i] = fn(src0.GetValues()[i], src1); 714editor.Values[i] = fn(src0.GetValues()[ii], src1); 718editor.Values[i] = dstDef; 751editor.Values[i] = fn(src0.GetValues()[i], src1, src2); 763editor.Values[i] = fn(src0.GetValues()[i], src1, src2); 777editor.Values[i] = fn(src0.GetValues()[ii], src1, src2); 781editor.Values[i] = dstDef; 817editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3); 829editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3); 843editor.Values[i] = fn(src0.GetValues()[ii], src1, src2, src3); 847editor.Values[i] = dstDef; 886editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3, src4); 898editor.Values[i] = fn(src0.GetValues()[i], src1, src2, src3, src4); 912editor.Values[i] = fn(src0.GetValues()[ii], src1, src2, src3, src4); 916editor.Values[i] = dstDef;
HashJoiningTransform.cs (2)
448dstEditor.Values[slot] = outputSlotName.ToString().AsMemory(); 561hashes.Values[i] = (Hashing.MixHash(hash) & mask) + 1; // +1 to offset from zero, which has special meaning for KeyType
KeyToVectorMapping.cs (1)
328editor.Values[slot++] = sb.ToString().AsMemory();
MissingValueDroppingTransformer.cs (4)
290editor.Values[iDst++] = srcValues[i]; 330editor.Values[iDst] = srcValues[i]; 348editor.Values[iDst] = srcValues[i]; 349editor.Indices[iDst] = srcIndices[i] - offset;
MissingValueIndicatorTransform.cs (10)
228editor.Values[slot++] = str.AsMemory().Slice(0, len); 229editor.Values[slot++] = str.AsMemory(); 314editor.Values[iivDst] = 1; 315editor.Indices[iivDst] = 2 * ivSrc + 1; 319editor.Values[iivDst] = val; 320editor.Indices[iivDst] = 2 * ivSrc; 342editor.Values[iivDst] = 1; 343editor.Indices[iivDst] = 2 * iv + 1; 347editor.Values[iivDst] = val; 348editor.Indices[iivDst] = 2 * iv;
MissingValueIndicatorTransformer.cs (6)
358editor.Values[i] = true; 371editor.Values[ii] = true; 396editor.Values[iiDst] = true; 397editor.Indices[iiDst++] = i; 426editor.Values[i] = sense; 432editor.Values[i] = !sense;
MissingValueReplacing.cs (10)
736dstEditor.Values[ivSrc] = isNA(in srcVal) ? rep : srcVal; 758dstEditor.Values[iivDst] = srcVal; 759dstEditor.Indices[iivDst++] = iv; 764dstEditor.Values[iivDst] = rep; 765dstEditor.Indices[iivDst++] = iv; 810dstEditor.Values[ivSrc] = isNA(in srcVal) ? rep[ivSrc] : srcVal; 832dstEditor.Values[iivDst] = srcVal; 833dstEditor.Indices[iivDst++] = iv; 838dstEditor.Values[iivDst] = rep[iv]; 839dstEditor.Indices[iivDst++] = iv;
MutualInformationFeatureSelection.cs (2)
571labelsEditor.Values[i] -= min; 898map(in val, ref editor.Values[i]);
RandomFourierFeaturizing.cs (1)
588dstEditor.Values[i] = (float)MathUtils.Cos(dotProduct + transformInfo.RotationTerms[i]) * scale;
SvmLight\SvmLightLoader.cs (1)
315editor.Values[i] = index - _offset + 1;
Text\LdaTransform.cs (4)
505editor.Values[k] = float.NaN; 538editor.Indices[i] = index; 543editor.Values[i] = value; 550editor.Values[i] = (float)(editor.Values[i] / normalizer);
Text\NgramTransform.cs (1)
551dstEditor.Values[slot] = sb.ToString().AsMemory();
Text\TokenizingByCharacters.cs (11)
327editor.Values[i] = keyValuesStr.AsMemory().Slice(keyValuesBoundaries[i], keyValuesBoundaries[i + 1] - keyValuesBoundaries[i]); 491editor.Values[index++] = TextStartMarker; 494editor.Values[index++] = span[ich]; 496editor.Values[index++] = TextEndMarker; 539editor.Values[index++] = TextStartMarker; 542editor.Values[index++] = span[ich]; 544editor.Values[index++] = TextEndMarker; 585editor.Values[index++] = TextStartMarker; 593editor.Values[index++] = UnitSeparator; 597editor.Values[index++] = span[ich]; 601editor.Values[index++] = TextEndMarker;
Text\WordEmbeddingsExtractor.cs (7)
574editor.Values[i] = float.MaxValue; 575editor.Values[i + dimension] = 0; 576editor.Values[i + offset] = float.MinValue; 588editor.Values[i] = currentTerm; 589editor.Values[dimension + i] += currentTerm; 591editor.Values[offset + i] = currentTerm; 598editor.Values[index + dimension] /= deno;
Text\WordTokenizing.cs (1)
298editor.Values[i] = terms[i];
Microsoft.Net.Http.Headers (5)
HeaderUtilities.cs (5)
641span[spanIndex] = segment[nextIndex]; 646span[spanIndex] = segment[i]; 699span[span.Length - 1] = span[0] = '\"'; 706span[spanIndex++] = '\\'; 714span[spanIndex++] = segment[i];
MSBuild (1)
FileUtilities.cs (1)
650str[sliceLength] = str[i] == '\\' ? '/' : str[i];
PresentationCore (8)
System\Windows\Media\ColorTransform.cs (8)
107dstValue[i] = -a; 109dstValue[i] = a; 145channel[i] = 0xffff; 149channel[i] = 0x0; 153channel[i] = (UInt16)(srcValue[i] * (float)0xFFFF); 167channel[i] = 0xff; 171channel[i] = 0x0; 175channel[i] = (byte)(srcValue[i] * (float)0xFF);
PresentationFramework (4)
MS\Internal\PtsHost\ListMarkerSourceInfo.cs (2)
191result[result.Length - 1] = NumberSuffix; 195result[i] = state.numericSymbols[remainder];
System\Windows\Documents\FixedSOMTextRun.cs (1)
158destination[i] = runText[runText.Length - 1 - i];
System\Windows\ThicknessConverter.cs (1)
198lengths[i] = LengthConverter.FromString(th.GetCurrentToken(), cultureInfo);
ReachFramework (1)
Serialization\XpsFontSubsetter.cs (1)
685guidByteArray[i] = Convert.ToByte(guidString.Substring(i * 2, 2), 16);
Roslyn.Diagnostics.Analyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
System.Collections.Immutable (11)
System\Collections\Frozen\FrozenDictionary.cs (1)
395destination[i] = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
System\Collections\Frozen\FrozenHashTable.cs (3)
73ref int bucketStart = ref bucketStarts[bucketNum]; 74nexts[index] = bucketStart; 100ref int hashCode = ref hashCodes[index];
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
217seenItems[index / BitsPerInt32] |= 1 << index;
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
35hashCodes[i] = entries[i].Key;
System\Collections\Frozen\ItemsFrozenSet.cs (1)
30hashCodes[i] = entries[i] is T t ? Comparer.GetHashCode(t) : 0;
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
32hashCodes[i] = Comparer.GetHashCode(entries[i].Key);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (1)
47hashCodes[i] = GetHashCode(keys[i]);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
38hashCodes[i] = GetHashCode(entries[i]);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
454elements[i] = items[i];
System.Collections.Specialized (2)
System\Collections\Specialized\BitVector32.cs (2)
166dst[dst.Length - 1] = '}'; 172dst[i] = (locdata & 0x80000000) != 0 ? '1' : '0';
System.Console (8)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\ConsolePal.Unix.cs (2)
578dst[dstPos++] = b; 607foundByteDst[foundByteDstPos++] = b;
System.Data.Common (26)
System\Data\SQLTypes\SQLDecimal.cs (26)
947pszTmp[iDigits++] = ChFromDigit(ulRem); 954pszTmp[iDigits++] = ChFromDigit(0); 1308rglData1[iulData] = unchecked((uint)dwlAccum); // equiv to mod x_lInt32Base 1322rglData1[iulData] = (uint)dwlAccum; 1353rglData1[iulData] = unchecked((uint)dwlAccum); // equiv to mod BaseUI4 1511rgulRes[idRes++] = unchecked((uint)dwlAccum); // & x_ulInt32BaseForMod); // equiv to mod x_lInt32Base 1520rgulRes[idRes++] = (uint)dwlAccum; 1564rgulRes[idRes] = 0; 1592rgulRes[idRes] = 0; 1610rgulRes[idRes] = 0; 2126rguiData[iData] = (uint)dwlAccum; // equivalent to mod x_dwlBaseUI4 2146rguiData[iData] = (uint)dwlAccum; 2177rguiData[iData] = unchecked((uint)dwlAccum); // equivalent to mod x_dwlBaseUI4 2190rguiData[iDataMax] = (uint)dwlAccum; 2242rguiData[iData - 1] = ulQuotientCur; 2468rgulD[i] = rgulS[i]; 2514piulD[iData] = LO(dwlAccum); 2520piulD[iData] = ulCarry; 2552rgulU[idU] = (uint)(dwlAccum / ulD); 2673rgulR[ciulU] = 0; 2717rgulR[iulRwork] = LO(dwlAccum); 2721rgulR[iulRwork] = LO(dwlAccum); 2722rgulQ[iulRindex - ciulD] = QH; 2730rgulQ[iulRindex - ciulD] = QH - 1; 2736rgulR[iulRwork] = LO(dwlAccum); 2738rgulR[iulRwork] += ulCarry;
System.Diagnostics.DiagnosticSource (15)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
146_bitMap[bitIndex] = value | mask;
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Diagnostics\Activity.cs (1)
2027outBytes[i] = HexByteFromChars(charData[i * 2], charData[i * 2 + 1]);
System\Diagnostics\Metrics\AggregatorStore.cs (1)
460indexedValues[i] = labels[instr.SourceIndex].Value;
System\Diagnostics\Metrics\TagList.netcore.cs (1)
202tags[index] = item;
System.Diagnostics.Process (7)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
36_bytes[byteCount] = 0;
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
80dst[prefix.Length] = ' ';
System.Formats.Asn1 (10)
System\Formats\Asn1\Asn1Tag.cs (1)
339destination[idx] = (byte)segment;
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
275bytes[i] = (byte)c; 305chars[i] = (char)b; 346bytes[writeIdx + 1] = (byte)val16; 347bytes[writeIdx] = (byte)(val16 >> 8); 391chars[writeIdx] = c;
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
411destination[value.Length - 1] = normalizedLastByte;
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
397value[byteIdx] = (byte)((value[byteIdx] * 0x0202020202ul & 0x010884422010ul) % 1023);
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
159temp[i / 8] |= (byte)(0x80 >> (i % 8));
System\Formats\Asn1\AsnWriter.Oid.cs (1)
212dest[idx] = curByte;
System.Formats.Tar (13)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Formats\Tar\TarHeader.Write.cs (7)
676buffer[FieldLocations.TypeFlag] = (byte)typeFlagChar; 908span[bytesWritten++] = (byte)' '; 910span[bytesWritten++] = (byte)'='; 912span[bytesWritten++] = (byte)'\n'; 1043destination[i] = converted[j]; 1048destination[i] = (byte)'0'; // Leading zero chars 1159digits[i] = (byte)('0' + (remaining % 8));
System.IO.Compression (5)
System\IO\Compression\DeflateManaged\HuffmanTree.cs (3)
121bitLengthCount[codeLength]++; 131nextCode[bits] = tempCode; 142nextCode[len]++;
System\IO\Compression\ZipArchiveEntry.cs (2)
594cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeBySpecification] = (byte)_versionMadeBySpecification; 595cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeByCompatibility] = (byte)CurrentZipPlatform;
System.IO.FileSystem.Watcher (6)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System.Linq (14)
System\Linq\Lookup.cs (1)
168span[index] = resultSelector(g._key, g._elements);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
50destination[i] = buffer[map[i]]; 118destination[idx] = buffer[map[minIdx]];
System\Linq\SegmentedArrayBuilder.cs (2)
109currentSegment[countInCurrentSegment] = item; 221currentSegment[countInCurrentSegment] = item;
System\Linq\Select.SpeedOpt.cs (6)
168destination[i] = func(source[i]); 311results[i] = func(start); 424destination[i] = func(source[i]); 542results[i] = func(source[i]); 811results[index] = func(item); 985destination[i] = func(source[sourceIndex]);
System\Linq\SingleLinkedNode.cs (2)
108span[index] = node.Item; 123span[index] = node.Item;
System\Linq\SkipTake.SpeedOpt.cs (1)
157destination[i] = source[sourceIndex];
System.Net.Http (20)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Net\Http\Headers\HttpHeaders.cs (2)
1296values[currentIndex] = parser == null || storeValue is InvalidValue ? storeValue.ToString() : parser.ToString(storeValue); 1304values[currentIndex] = parser == null || item is InvalidValue ? item.ToString() : parser.ToString(item);
System\Net\Http\Headers\UriHeaderParser.cs (1)
72rawBytes[i] = (byte)input[i];
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
1218valueIterator[crOrLfIdx] = (byte)' '; 1219valueIterator[lfIdx] = (byte)' ';
System.Net.HttpListener (5)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.Mail (11)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System.Net.NetworkInformation (8)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (2)
366addressBytes[i] = (byte)(HexToByte(hexAddress[(i * 2)]) * 16 378addressBytes[targetIndex] = (byte)(HexToByte(hexAddress[srcIndex * 2]) * 16
System\Net\NetworkInformation\UnicastIPAddressInformation.cs (1)
85addressBytes[bit / 8] |= (byte)(0x80 >> (bit % 8));
System.Net.Ping (1)
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
36_bytes[byteCount] = 0;
System.Net.Primitives (34)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 289parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
334numbers[index++] = (ushort)number; 353numbers[index++] = (ushort)number; 394numbers[index++] = (ushort)(ipv4Address >> 16); 395numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 410numbers[index++] = (ushort)number; 433numbers[index++] = (ushort)number; 449numbers[toIndex--] = numbers[fromIndex]; 450numbers[fromIndex--] = 0;
src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (1)
62buffer[buffer.Length - 1] = 0;
src\libraries\Common\src\System\Net\SocketAddress.cs (5)
177result[length++] = ':'; 183result[length++] = ':'; 184result[length++] = '{'; 191result[length++] = ','; 199result[length++] = '}';
System\Net\IPAddressParser.cs (13)
155addressString[pos++] = TChar.CreateTruncating('.'); 157addressString[pos++] = TChar.CreateTruncating('.'); 159addressString[pos++] = TChar.CreateTruncating('.'); 206destination[pos++] = TChar.CreateTruncating(':'); 221destination[pos++] = TChar.CreateTruncating('%'); 256destination[offset++] = TChar.CreateTruncating(':'); 263destination[offset++] = TChar.CreateTruncating(':'); 264destination[offset++] = TChar.CreateTruncating(':'); 273destination[offset++] = TChar.CreateTruncating(':'); 289destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 12)); 292destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 8)); 295destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 4)); 298destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value));
System.Net.Quic (17)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 289parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
334numbers[index++] = (ushort)number; 353numbers[index++] = (ushort)number; 394numbers[index++] = (ushort)(ipv4Address >> 16); 395numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 410numbers[index++] = (ushort)number; 433numbers[index++] = (ushort)number; 449numbers[toIndex--] = numbers[fromIndex]; 450numbers[fromIndex--] = 0;
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
115line[labelUtf8.Length] = (byte)' '; 118line[labelUtf8.Length + 1 + clientRandomUtf8.Length] = (byte)' ';
System.Net.Security (21)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
493handles[i] = certList[i].Handle;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
261buffer[offset++] = (byte)protocol.Protocol.Length;
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 289parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
334numbers[index++] = (ushort)number; 353numbers[index++] = (ushort)number; 394numbers[index++] = (ushort)(ipv4Address >> 16); 395numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 410numbers[index++] = (ushort)number; 433numbers[index++] = (ushort)number; 449numbers[toIndex--] = numbers[fromIndex]; 450numbers[fromIndex--] = 0;
src\libraries\Common\src\System\Net\Security\MD4.cs (1)
185output[i] = BinaryPrimitives.ReadUInt32LittleEndian(input.Slice(j));
src\libraries\Common\src\System\Net\Security\RC4.cs (1)
87output[counter] = (byte)(input[counter] ^ state[xorIndex]);
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
115line[labelUtf8.Length] = (byte)' '; 118line[labelUtf8.Length + 1 + clientRandomUtf8.Length] = (byte)' ';
System.Net.Sockets (5)
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (1)
71SocketError errorCode = SocketPal.GetSockOpt(this, level, name, out values[i]);
System\Net\Sockets\SocketPal.Unix.cs (4)
311handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned); 425handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned); 564handles[i] = GCHandle.Alloc(buffer.Array, GCHandleType.Pinned); 1910buffer[i] = (int)socket.InternalSafeHandle.DangerousGetHandle();
System.Net.WebClient (5)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.WebSockets (1)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
175output[written] = _remainingByte.GetValueOrDefault();
System.Numerics.Tensors (67)
System\Buffers\NRange.cs (3)
77span[pos++] = '.'; 78span[pos++] = '.'; 82span[pos++] = '^';
System\Numerics\Tensors\netcore\Tensor.cs (28)
256ranges[i] = 0..1; 260ranges[i] = ..; 445span[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2)); 464span[i] = T.CreateChecked(random.NextDouble()); 1376newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1377newStrides[i] = tensor.Strides[tensor.Rank - 1 - i]; 1388newLengths[i] = tensor.Lengths[dimensions[i]]; 1389newStrides[i] = tensor.Strides[dimensions[i]]; 1750srcIndexes[i] = NRange.All; 1751dstIndexes[i] = NRange.All; 1756srcIndexes[dimension] = new NRange(i - 1, i); 1757dstIndexes[dimension] = new NRange(tensor.Lengths[dimension] - i, tensor.Lengths[dimension] - i + 1); 1853sliceDims[i] = NRange.All; 1905lengths[index] = tensor.Lengths[i]; 1906strides[index] = tensor.Strides[i]; 1972lengths[index] = tensor.Lengths[i]; 1973strides[index] = tensor.Strides[i]; 2039lengths[index] = tensor.Lengths[i]; 2040strides[index] = tensor.Strides[i]; 2339newLengths[dimension] = 1; 2345newStrides[dimension] = 0; 2351newStrides[dimension] = 0; 2376newLengths[dimension] = 1; 2382newStrides[dimension] = 0; 2388newStrides[dimension] = 0; 2413newLengths[dimension] = 1; 2419newStrides[dimension] = 0; 2425newStrides[dimension] = 0;
System\Numerics\Tensors\netcore\TensorOperation.cs (18)
136destinationIndexes[i] = destination.Lengths[i] - 1; 425destination[i] = (left[i] == right); 433destination[i] = (left[i] == right[i]); 656destination[i] = T.Atan2(x[i], y); 685destination[i] = T.Atan2Pi(x[i], y); 1926destination[i] = T.Exp(x[i]) / y; 2011destination[i] = (x[i] - y) * (x[i] - y); 2024destination[i] = (x[i] - y[i]) * (x[i] - y[i]); 2177destination[i] = y[i]; 2196destination[i] = y; 2221destination[i] = (left[i] > right); 2229destination[i] = (left[i] > right[i]); 2310destination[i] = (left[i] >= right); 2318destination[i] = (left[i] >= right[i]); 2399destination[i] = (left[i] < right); 2407destination[i] = (left[i] < right[i]); 2488destination[i] = (left[i] <= right); 2496destination[i] = (left[i] <= right[i]);
System\Numerics\Tensors\netcore\TensorShape.cs (18)
135destinationStrides[i] = stride; 181stridesOrder[i] = i; 430nint index = ++indexes[destinationRankIndex]; 447indexes[destinationRankIndex] = 0; 460nint index = ++indexes[rankIndex]; 471indexes[rankIndex] = 0; 495nint index = --indexes[destinationRankIndex]; 512indexes[destinationRankIndex] = lengths[rankIndex]; 525nint index = ++indexes[rankIndex]; 536indexes[rankIndex] = 0; 545ranges[dimension] = new NRange(curRange.Start.Value + 1, curRange.End.Value + 1); 551ranges[i] = 0..1; 558ranges[i - 1] = new NRange(ranges[i - 1].Start.Value + 1, ranges[i - 1].End.Value + 1); 726lengths[i] = array.GetLength(i); 783intermediateLengths[i] = array.GetLength(i); 818intermediateLengths[index] -= offset; 1119intermediateLengths[i] = length; 1120intermediateStrides[i] = stride;
System.Private.CoreLib (267)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
509thousandsSepPos[thousandsSepCtr] = groupTotalSizeCount;
src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
108number.Digits[digCount] = (byte)ch; 169number.Digits[digEnd] = (byte)'\0'; 230number.Digits[number.DigitsCount] = (byte)'\0';
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
270NumberStyles.None, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (1)
100output[i] = (byte)(temp >> 24);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
36_bytes[byteCount] = 0;
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (5)
821dst[j++] = HexConverter.ToCharUpper(b >> 4); 822dst[j++] = HexConverter.ToCharUpper(b); 826dst[j++] = '-'; 827dst[j++] = HexConverter.ToCharUpper(b >> 4); 828dst[j++] = HexConverter.ToCharUpper(b);
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
393destination[i] = ReverseEndianness(source[i]); 401destination[i] = ReverseEndianness(source[i]);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (5)
470buffer[bufferIdx] = source[encodedIdx]; 499int paddingCount = GetPaddingCount<TBase64Decoder>(decoder, ref buffer[BlockSize - 1]); 585buffer[bufferIdx] = source[(int)sourceIndex]; 610buffer[bufferIdx++] = (byte)EncodingPad; 636source[localDestIndex - localBytesWritten + i] = buffer[i];
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (2)
227buffer[bufferIdx] = source[encodedIdx]; 256int paddingCount = GetPaddingCount<TBase64Decoder>(decoder, ref buffer[BlockSize - 1]);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (4)
120digits[dstIndex] = 0; 191digits[dstIndex] = 0; 207digits[dstIndex] = 0; 316digits[dstIndex] = 0;
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (6)
444thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 536intSpan[ints - 1] &= ReverseIfBE((int)mask); 549intSpan[toIndex++] = ReverseIfBE(left | (int)right); 554intSpan[toIndex++] = ReverseIfBE((int)(mask >> shiftCount)); 600intSpan[lastIndex] = ReverseIfBE(left | (int)right); 603intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (56)
106keys[i] = keys[j]; 107keys[j] = key; 117a[i] = a[j]; 118a[j] = t; 251keys[i - 1] = keys[child - 1]; 255keys[i - 1] = d; 267keys[j + 1] = keys[j]; 271keys[j + 1] = t; 519Swap(ref keys[0], ref keys[i - 1]); 530if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child]))) 535if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1])) 538keys[i - 1] = keys[child - 1]; 542keys[i - 1] = d; 643keys[i] = keys[j]; 644keys[j] = key; 647values[i] = values[j]; 648values[j] = value; 658keys[i] = keys[j]; 659keys[j] = k; 662values[i] = values[j]; 663values[j] = v; 797keys[i - 1] = keys[child - 1]; 798values[i - 1] = values[child - 1]; 802keys[i - 1] = d; 803values[i - 1] = dValue; 818keys[j + 1] = keys[j]; 819values[j + 1] = values[j]; 823keys[j + 1] = t; 824values[j + 1] = tValue; 880ref TKey keyRef = ref keys[i]; 881if (keyRef != null && GreaterThan(ref keyRef, ref keys[j])) 884keys[i] = keys[j]; 885keys[j] = key; 888values[i] = values[j]; 889values[j] = value; 899keys[i] = keys[j]; 900keys[j] = k; 903values[i] = values[j]; 904values[j] = v; 1022if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child]))) 1027if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1])) 1030keys[i - 1] = keys[child - 1]; 1031values[i - 1] = values[child - 1]; 1035keys[i - 1] = d; 1036values[i - 1] = dValue; 1047while (j >= 0 && (t == null || LessThan(ref t, ref keys[j]))) 1049keys[j + 1] = keys[j]; 1050values[j + 1] = values[j]; 1054keys[j + 1] = t!; 1055values[j + 1] = tValue; 1124keys[left] = keys[i]; 1125keys[i] = temp; 1130values[left] = values[i]; 1131values[i] = tempValue;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2773tempBuffer[charsWritten++] = c;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
128EventPipeProviderConfigurationNative.MarshalToNative(providers[i], ref providersNative[i]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (4)
532dataRefObj[refObjIndex] = supportedRefObj; 533refObjPosition[refObjIndex] = idx; 562dataRefObj[refObjIndex] = null; 563refObjPosition[refObjIndex] = -1;
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2085foundItems[foundItemsCount] = index;
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (7)
191modifiedPattern[index] = s[index]; 200modifiedPattern[index] = 'y'; 204modifiedPattern[index] = s[index]; 224modifiedPattern[index + 1] = 'y'; // second y 225modifiedPattern[index + 2] = 'y'; // third y 226modifiedPattern[index + 3] = 'y'; // fourth y 233modifiedPattern[index + 2] = s[index];
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (4)
747normalizedName[i] = (char)(((int)name[i]) + 0x20); 752normalizedName[i] = name[i]; 767normalizedName[i] = (char)(((int)name[i]) - 0x20); 772normalizedName[i] = name[i];
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (17)
46buffer[bufferIndex++] = 'u'; 47buffer[bufferIndex++] = 'n'; 48buffer[bufferIndex++] = 'd'; 63buffer[bufferIndex++] = '-'; 91buffer[bufferIndex++] = '_'; 102buffer[bufferIndex++] = name[i]; 380result[resultPos++] = '\\'; 381result[resultPos++] = '\\'; 388result[resultPos++] = '\\'; 389result[resultPos++] = '\''; 393result[resultPos++] = '\''; 416result[resultPos++] = '\\'; 418result[resultPos++] = current; 426result[resultPos++] = current; 434result[resultPos++] = 't'; 435result[resultPos++] = 't'; 443result[resultPos++] = current;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5872result[i] = ch;
src\libraries\System.Private.CoreLib\src\System\Globalization\IcuLocaleData.cs (2)
3816lower_case[i] = char.IsAsciiLetterUpper(ch) ? (byte)(ch | 0x20) : (byte)ch; 3867s[i] = (char)buffer[i];
src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (6)
126destination[i] = h; 127destination[i + 1] = l; 133destination[i] = ToUpper(c); 152destination[i] = h; 153destination[i + 1] = l; 159destination[i] = ToLower(c);
src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (5)
152destination[i] = ToUpperInvariantMode(source[i]); 166destination[i] = (char)s_basicLatin[c]; 176SurrogateCasing.ToUpper(c, cl, out destination[i], out destination[i + 1]); 182destination[i] = ToUpper(c);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
1491dest[offset + 0] = TChar.CastFrom('0'); 1492dest[offset + 1] = TChar.CastFrom('x'); 1493dest[offset + 2] = TChar.CastFrom(HexConverter.ToCharLower(val >> 4)); 1494dest[offset + 3] = TChar.CastFrom(HexConverter.ToCharLower(val)); 1497dest[offset + 4] = TChar.CastFrom(',');
src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
43path[pos + 6] = 0;
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (8)
316currentMatches[currentMatch++] = currentState; 329currentMatches[currentMatch++] = currentState; 340currentMatches[currentMatch++] = maxState; 355currentMatches[currentMatch++] = currentState; 362currentMatches[currentMatch++] = currentState; 370currentMatches[currentMatch++] = currentState; 372currentMatches[currentMatch++] = currentState + 1; 375currentMatches[currentMatch++] = maxState;
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
609destination[path1.Length] = DirectorySeparatorChar; 643destination[charsWritten++] = DirectorySeparatorChar;
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (3)
74vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 183vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 224vectors[buffersOffset] = new Interop.Sys.IOVector
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (8)
4547span[i] = newValue; 4562span[i] = newValue; 4740destination[i] = EqualityComparer<T>.Default.Equals(source[i], oldValue) ? newValue : source[i]; 4752destination[i] = comparer.Equals(source[i], oldValue) ? newValue : source[i]; 4803span[pos] = newValue; 4852span[pos] = newValue; 5311destinationMinusOne[rangeCount] = startInclusive..endExclusive; 5335destination[rangeCount] = startInclusive..endExclusive;
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (5)
359dest[pos++] = ch; 363dest[pos++] = '+'; 367dest[pos++] = '%'; 368dest[pos++] = HexConverter.ToCharUpper(b >> 4); 369dest[pos++] = HexConverter.ToCharUpper(b);
src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (8)
40number.Digits[length] = (byte)('\0'); 340buffer[curDigit] = (byte)('0' + outputDigit); 375buffer[curDigit] = (byte)('0' + outputDigit); 403buffer[curDigit] = (byte)('0' + outputDigit); 436buffer[curDigit] = (byte)('0' + outputDigit); 449buffer[curDigit] = (byte)('1'); 462buffer[curDigit]++; 472buffer[curDigit] = (byte)('0' + outputDigit + 1);
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (9)
352number.Digits[length] = (byte)('\0'); 563buffer[length] = (byte)('0' + digit); 610buffer[length] = (byte)('0' + digit); 742buffer[length] = (byte)('0' + digit); 794buffer[length] = (byte)('0' + digit); 875buffer[length - 1]++; 884buffer[i] = (byte)('0'); 885buffer[i - 1]++; 999buffer[length - 1]--;
src\libraries\System.Private.CoreLib\src\System\Random.CompatImpl.cs (2)
246buffer[i] = (byte)_parent.Next(); 334buffer[i] = (byte)InternalSample();
src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
235destination[i] = choices[randomBytes[i] & mask]; 272destination[i++] = choices[masked]; 286destination[i] = choices[Next(choices.Length)]; 375values[i] = values[j]; 376values[j] = temp;
src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
163buffer[i] = remainingBytes[i];
src\libraries\System.Private.CoreLib\src\System\Range.cs (3)
82span[pos++] = '.'; 83span[pos++] = '.'; 87span[pos++] = '^';
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (6)
254shouldCopyBack[i] = CheckArgument(ref arg, i); 255copyOfArgs[i] = arg; 299ByReference.Create(ref copyOfArgs[i]); 331copyOfArgs[i] = arg; 367shouldCopyBack[i] = CheckArgument(ref arg, i); 368copyOfArgs[i] = arg;
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (6)
169ByReference.Create(ref copyOfArgs[i]); 363shouldCopyBack[i] = true; 371shouldCopyBack[i] = sigType.CheckValue(ref arg, binder, culture, invokeAttr); 380shouldCopyBack[i] = true; 384shouldCopyBack[i] = sigType.CheckValue(ref arg, binder, culture, invokeAttr); 388copyOfParameters[i] = arg;
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (6)
307shouldCopyBack[i] = CheckArgument(ref arg, i); 308copyOfArgs[i] = arg; 352ByReference.Create(ref copyOfArgs[i]); 384copyOfArgs[i] = arg; 420shouldCopyBack[i] = CheckArgument(ref arg, i); 421copyOfArgs[i] = arg;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
608bits[i] = _store.ReadInt32();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (4)
833runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIUnknownVftblPtr; 838runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIReferenceTrackerTargetVftblPtr; 842runtimeDefinedVtable[runtimeDefinedCount++] = TaggedImplVftblPtr; 880dispatchVtables[j] = (index < userDefinedCount) ? userDefined[index].Vtable : runtimeDefinedVtable[index - userDefinedCount];
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
56bytes[actualByteLength] = 0;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\Utf8StringMarshaller.cs (2)
32buffer[byteCount] = 0; // null-terminate 98buffer[byteCount] = 0; // null-terminate
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
272seenValues[offset] = true;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
112bucketIndexes[i] = bucketIndex;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
62normalizedValues[i++] = NormalizeIfNeeded(value, ignoreCase); 105values[newCount++] = value;
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (3)
113span[_decryptedLength] = c; 195span[index] = c; 271span[index] = c;
src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
261get => ref _span[_index];
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
1069scratch[length] = '\0';
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
399bytes[idx++] = replacementByte; 688chars[idx++] = replacementChar;
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (2)
388dest[total++] = srcLeft[i]; 400dest[total++] = srcRight[i];
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
297destination[i] = (char)(0xDF00 | source[i]);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
3534continuations[i] = null; // so that we can skip this later 3544continuations[i] = null; 3576continuations[i] = null; // to enable free'ing up memory earlier
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
258safeWaitHandles[i] = safeWaitHandle; 259unsafeWaitHandles[i] = safeWaitHandle.DangerousGetHandle(); 272safeWaitHandles[i] = null; 391unsafeWaitHandles[i] = safeWaitHandles[i].DangerousGetHandle();
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
1102ref uint leftElement = ref left[i]; 1247bits[n] = (uint)(digit); 1252left[i] = 0; 1279ref uint leftElement = ref left[i];
src\System\Reflection\Associates.cs (1)
62genericArgumentHandles[i] = genericArguments[i].TypeHandle.Value;
src\System\RuntimeHandles.cs (1)
195outHandles[i] = inHandles[i].Value;
src\System\RuntimeType.CoreCLR.cs (2)
706overrides[methodSlot] = true; 1321usedSlots[slot] = true;
src\System\StubHelpers.cs (1)
455native[numChars] = '\0';
System.Private.CoreLib.Generators (4)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
System.Private.DataContractSerialization (7)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
System\Xml\XmlConverter.cs (2)
1106chars[count++] = c; 1137chars[count++] = c;
System.Private.Uri (34)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 289parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
334numbers[index++] = (ushort)number; 353numbers[index++] = (ushort)number; 394numbers[index++] = (ushort)(ipv4Address >> 16); 395numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 410numbers[index++] = (ushort)number; 433numbers[index++] = (ushort)number; 449numbers[toIndex--] = numbers[fromIndex]; 450numbers[fromIndex--] = 0;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\IPv4AddressHelper.cs (1)
47stackSpace[periodPos] = '.';
System\IPv6AddressHelper.cs (8)
34stackSpace[pos++] = ':'; 41stackSpace[pos++] = '.'; 46stackSpace[pos++] = '.'; 51stackSpace[pos++] = '.'; 62stackSpace[pos++] = ':'; 68stackSpace[pos++] = ':'; 79stackSpace[pos++] = ':'; 86stackSpace[pos++] = ']';
System\UriHelper.cs (1)
653buffer[destIndex++] = c;
System\ValueStringBuilderExtensions.cs (3)
19chars[pos] = (char)rune.Value; 24chars[pos] = (char)((rune.Value + ((0xD800u - 0x40u) << 10)) >> 10); 25chars[pos + 1] = (char)((rune.Value & 0x3FFu) + 0xDC00u);
System.Private.Windows.Core (25)
System\BufferScope.cs (1)
104public ref T this[int i] => ref _span[i];
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (3)
358fileBuffer[file.Length] = '\0'; 399span[value.Length] = '\0'; 418span[byteCount] = 0;
System\SpanHelpers.cs (1)
25destination[source.Length] = '\0';
System\Text\ValueStringBuilder.cs (7)
91_chars[Length] = '\0'; 102return ref _chars[index]; 129_chars[Length] = '\0'; 194_chars[pos] = c; 221_chars[pos] = s[0]; 270dst[i] = c; 287dst[i] = *value++;
Windows\Win32\System\Variant\VARIANT.cs (13)
332result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 344result[i] = data[i].ToDecimal(); 356result[i] = decimal.FromOACurrency(data[i]); 368result[i] = DateTime.FromOADate(data[i]); 380result[i] = Marshal.PtrToStringUni(data[i]); 393result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 405result[i] = data[i].ToObject(); 473indices[i] = lower[i] = array.GetLowerBound(i); 474upper[i] = array.GetUpperBound(i); 486if (++indices[i] <= upper[i]) 491indices[i] = lower[i]; 520span[offset] = value;
System.Private.Xml (34)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Xml\Base64Decoder.cs (1)
156bytes[iByte++] = (byte)((b >> (bFilled - 8)) & 0xFF);
System\Xml\BinaryXml\SqlUtils.cs (6)
207pszTmp[iDigits++] = ChFromDigit(ulRem); 214pszTmp[iDigits++] = ChFromDigit(0); 230szResult[iCurChar++] = '-'; 235szResult[iCurChar++] = '.'; 236szResult[iCurChar++] = pszTmp[iDigits]; 394chars[fractionDigits] = (char)(fraction % 10 + '0');
System\Xml\BinHexDecoder.cs (1)
170bytes[iByte++] = (byte)((cachedHalfByte << 4) + halfByte);
System\Xml\Cache\XPathDocumentNavigator.cs (4)
903buf[idx++] = NodeTypeLetter[(int)_pageCurrent[_idxCurrent].NodeType]; 911buf[idx++] = UniqueIdTbl[loc & 0x1f]; 914buf[idx++] = '0'; 921buf[idx++] = UniqueIdTbl[loc & 0x1f];
System\Xml\Schema\XsdDateTime.cs (9)
550text[s_lzyyyy] = '-'; 552text[s_lzyyyy_MM] = '-'; 614text[s_lzHH] = ':'; 616text[s_lzHH_mm] = ':'; 647text[s_lz_zz] = ':'; 654text[s_lz_zz] = ':'; 669text[start + digits] = (char)(value % 10 + '0'); 677text[start] = (char)(value / 10 + '0'); 678text[start + 1] = (char)(value % 10 + '0');
System\Xml\Schema\XsdDuration.cs (1)
415tmpSpan[idx - len] = (char)(digit + '0');
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
961characters[idx] = ParseCharAttribute(3 + idx, _decimalFormatAttributes[3 + idx].name, DefaultValues[idx]);
System.Reflection.Metadata (12)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
270NumberStyles.None, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System.Runtime.Numerics (70)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
509thousandsSepPos[thousandsSepCtr] = groupTotalSizeCount;
src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
108number.Digits[digCount] = (byte)ch; 169number.Digits[digEnd] = (byte)'\0'; 230number.Digits[number.DigitsCount] = (byte)'\0';
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
System\Number.BigInteger.cs (13)
366uint.TryParse(intDigits.Slice(0, PowersOf1e9.MaxPartialDigits), out base1E9[di]); 507bits[resultLength++] = carry; 516bits[resultLength++] = carry; 532bits[resultLength++] = carry; 544bits[i] = (uint)p; 602chars[charsPos++] = hexValues[b >> 4]; 603chars[charsPos++] = hexValues[b & 0xF]; 811base1E9Buffer[iuDst] = (uint)rem; 815(uCarry, base1E9Buffer[cuDst++]) = Math.DivRem(uCarry, TenPowMaxPartial); 817base1E9Buffer[cuDst++] = uCarry; 1195bits2[i] = (uint)p; 1201bits[omittedLength + curLength] = carry; 1244out destination[i]))
System\Numerics\BigInteger.cs (26)
1505destination[curByte] = unchecked((byte)highDword); 1509destination[curByte] = unchecked((byte)(highDword >> 8)); 1513destination[curByte] = unchecked((byte)(highDword >> 16)); 1517destination[curByte] = unchecked((byte)(highDword >> 24)); 1530destination[curByte] = highByte; 1581buffer[buffer.Length - 1] = highDWord; 2397z[i] = xu & yu; 2453z[i] = xu | yu; 2504z[i] = xu ^ yu; 2553zd[i + digitShift] = xd[i]; 2563zd[i + digitShift] = rot << smallShift | carry; 2568zd[zd.Length - 1] = carry; 2634zd[i - digitShift] = xd[i]; 2646zd[i - digitShift] = (rot >> smallShift) | (0xFFFFFFFF << carryShift); 2648zd[i - digitShift] = (rot >> smallShift) | carry; 2657zd[zd.Length - 1] = 0xFFFFFFFF; 3337zd[dstIndex] = xd[srcIndex]; 3349zd[dstIndex] = xd[srcIndex]; 3378zd[dstIndex] = (part << smallShift) | carry; 3392zd[dstIndex] = (part << smallShift) | carry; 3492zd[dstIndex] = xd[srcIndex]; 3504zd[dstIndex] = xd[srcIndex]; 3525zd[dstIndex] = (part >> smallShift) | carry; 3539zd[dstIndex] = (part >> smallShift) | carry; 5350zd[i - digitShift] = xd[i]; 5360zd[i - digitShift] = (rot >>> smallShift) | carry;
System\Numerics\BigIntegerCalculator.AddSub.cs (2)
83left[i] = (uint)digit; 159left[i] = (uint)digit;
System\Numerics\BigIntegerCalculator.DivRem.cs (8)
48quotient[i] = (uint)digit; 286quotient[n] = (uint)digit; 289left[i] = 0; 303ref uint leftElement = ref left[i]; 327ref uint leftElement = ref left[i]; 422bits[i] = bits[i] << sigmaSmall | carry; 502remainder[i] = rt[i] >> sigmaSmall | carry; 674--quotient[qi];
System\Numerics\BigIntegerCalculator.FastReducer.cs (1)
32r[r.Length - 1] = 1;
System\Numerics\BigIntegerCalculator.GcdInv.cs (2)
297x[i] = unchecked((uint)xDigit); 298y[i] = unchecked((uint)yDigit);
System\Numerics\BigIntegerCalculator.SquMul.cs (3)
146bits[i] = unchecked((uint)digits); 149bits[i] = (uint)carry; 399core[i] = (uint)digit;
System\Numerics\NumericsHelpers.cs (1)
152d[offset] = ~d[offset];
System.Security.Cryptography (31)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
54dest[password.Length] = '\0';
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
245into[i] = (byte)tmp;
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (5)
138destination[ps.Length + 2] = 0; 283destination[paddingLength + 2] = 0; 419em[emLen - 1] = 0xBC; 449db[psLen] = 0x01; 644a[i] ^= b[i];
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
36_bytes[byteCount] = 0;
System\Security\Cryptography\AsnFormatter.cs (3)
33hexOrder[j++] = ' '; 37hexOrder[j++] = HexConverter.ToCharUpper(digit >> 4); 38hexOrder[j++] = HexConverter.ToCharUpper(digit);
System\Security\Cryptography\RandomNumberGenerator.cs (5)
300values[i] = values[j]; 301values[j] = temp; 382destination[i] = choices[randomBytes[i] & mask]; 419destination[i++] = choices[masked]; 433destination[i] = choices[GetInt32(choices.Length)];
System\Security\Cryptography\SymmetricPadding.cs (2)
70destination[count + padBytes - 1] = (byte)padBytes; 87destination[count + padBytes - 1] = (byte)padBytes;
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
296tempChain[i] = Interop.Crypto.GetX509StackField(chainStack, i);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
580destination[written++] = c;
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
245into[i] = (byte)tmp;
System.Security.Cryptography.Xml (5)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\FramingEncoders.cs (2)
22span[offset++] = (byte)((value & 0x7F) | 0x80); 26span[offset] = (byte)value;
System.Text.Encodings.Web (24)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
89thisAllowedCharactersBitmap[i] &= BinaryPrimitives.ReadUInt32LittleEndian(definedCharsBitmapAsLittleEndian.Slice(i * sizeof(uint)));
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (4)
110destination[idxOfSemicolon] = (byte)';'; 121destination[i] = (byte)asUpperHex; 185destination[idxOfSemicolon] = ';'; 198destination[i] = asUpperHex;
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (5)
81allowedAsciiBytes[allowedAsciiCount] = (byte)i; 82allowedAsciiChars[allowedAsciiCount] = (char)i; 158destination[dstIdx] = (char)(byte)preescapedEntry; 178destination[dstIdxTemp++] = (char)(byte)preescapedEntry; 295destination[dstIdxTemp++] = (byte)preescapedEntry;
System\Text\Encodings\Web\TextEncoder.cs (3)
78utf8Destination[dstIdx++] = (byte)utf8lsb; 359utf8Destination[dstIdxTemp++] = (byte)utf8lsb; 588destination[i] = source[i];
System.Text.Json (463)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (2)
45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
151destination[charsWritten++] = value;
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
396newDbInts[i] -= locationOffset;
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (14)
504destination[written++] = JsonConstants.Quote; 507destination[written++] = JsonConstants.LineFeed; 510destination[written++] = JsonConstants.CarriageReturn; 513destination[written++] = JsonConstants.BackSlash; 516destination[written++] = JsonConstants.Slash; 519destination[written++] = JsonConstants.Tab; 522destination[written++] = JsonConstants.BackSpace; 525destination[written++] = JsonConstants.FormFeed; 610destination[written++] = source[idx++]; 613destination[written++] = source[idx++]; 614destination[written++] = source[idx++]; 617destination[written++] = source[idx++]; 618destination[written++] = source[idx++]; 619destination[written++] = source[idx++];
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
123buffer[length - 1] = Quote;
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
100buffer[length - 1] = Quote;
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
100buffer[length - 1] = Quote;
System\Text\Json\ThrowHelper.Serialization.cs (3)
362builder[MaxLength] = builder[MaxLength + 1] = builder[MaxLength + 2] = '.';
System\Text\Json\Writer\JsonWriterHelper.cs (3)
24buffer[i++] = indentByte; 25buffer[i++] = indentByte; 30buffer[i] = indentByte;
System\Text\Json\Writer\JsonWriterHelper.Date.cs (7)
91buffer[curIndex] = buffer[maxDateTimeLength]; 92buffer[curIndex + 1] = buffer[maxDateTimeLength + 1]; 93buffer[curIndex + 2] = buffer[maxDateTimeLength + 2]; 94buffer[curIndex + 3] = buffer[maxDateTimeLength + 3]; 95buffer[curIndex + 4] = buffer[maxDateTimeLength + 4]; 96buffer[curIndex + 5] = buffer[maxDateTimeLength + 5]; 104buffer[curIndex] = (byte)'Z';
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (28)
141destination[written] = val; 161destination[written++] = (byte)'\\'; 166destination[written++] = (byte)'u'; 167destination[written++] = (byte)'0'; 168destination[written++] = (byte)'0'; 169destination[written++] = (byte)'2'; 170destination[written++] = (byte)'2'; 173destination[written++] = (byte)'n'; 176destination[written++] = (byte)'r'; 179destination[written++] = (byte)'t'; 182destination[written++] = (byte)'\\'; 185destination[written++] = (byte)'b'; 188destination[written++] = (byte)'f'; 191destination[written++] = (byte)'u'; 259destination[written] = val; 281destination[written++] = '\\'; 286destination[written++] = 'u'; 287destination[written++] = '0'; 288destination[written++] = '0'; 289destination[written++] = '2'; 290destination[written++] = '2'; 293destination[written++] = 'n'; 296destination[written++] = 'r'; 299destination[written++] = 't'; 302destination[written++] = '\\'; 305destination[written++] = 'b'; 308destination[written++] = 'f'; 311destination[written++] = 'u';
System\Text\Json\Writer\Utf8JsonWriter.cs (8)
599output[BytesPending++] = JsonConstants.ListSeparator; 601output[BytesPending++] = token; 679output[BytesPending++] = JsonConstants.ListSeparator; 689output[BytesPending++] = token; 1035output[BytesPending++] = token; 1122output[BytesPending++] = token; 1133output[BytesPending++] = JsonConstants.CarriageReturn; 1135output[BytesPending++] = JsonConstants.LineFeed;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (26)
225output[BytesPending++] = JsonConstants.ListSeparator; 227output[BytesPending++] = JsonConstants.Quote; 231output[BytesPending++] = JsonConstants.Quote; 232output[BytesPending++] = JsonConstants.KeyValueSeparator; 234output[BytesPending++] = JsonConstants.Quote; 238output[BytesPending++] = JsonConstants.Quote; 260output[BytesPending++] = JsonConstants.ListSeparator; 262output[BytesPending++] = JsonConstants.Quote; 267output[BytesPending++] = JsonConstants.Quote; 268output[BytesPending++] = JsonConstants.KeyValueSeparator; 270output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.Quote; 299output[BytesPending++] = JsonConstants.ListSeparator; 312output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.KeyValueSeparator; 318output[BytesPending++] = JsonConstants.Space; 320output[BytesPending++] = JsonConstants.Quote; 324output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.ListSeparator; 362output[BytesPending++] = JsonConstants.Quote; 367output[BytesPending++] = JsonConstants.Quote; 368output[BytesPending++] = JsonConstants.KeyValueSeparator; 369output[BytesPending++] = JsonConstants.Space; 371output[BytesPending++] = JsonConstants.Quote; 375output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (26)
230output[BytesPending++] = JsonConstants.ListSeparator; 232output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.Quote; 237output[BytesPending++] = JsonConstants.KeyValueSeparator; 239output[BytesPending++] = JsonConstants.Quote; 244output[BytesPending++] = JsonConstants.Quote; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 273output[BytesPending++] = JsonConstants.Quote; 278output[BytesPending++] = JsonConstants.Quote; 301output[BytesPending++] = JsonConstants.ListSeparator; 314output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.KeyValueSeparator; 320output[BytesPending++] = JsonConstants.Space; 322output[BytesPending++] = JsonConstants.Quote; 327output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.ListSeparator; 362output[BytesPending++] = JsonConstants.Quote; 367output[BytesPending++] = JsonConstants.Quote; 368output[BytesPending++] = JsonConstants.KeyValueSeparator; 369output[BytesPending++] = JsonConstants.Space; 371output[BytesPending++] = JsonConstants.Quote; 376output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (26)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 238output[BytesPending++] = JsonConstants.Quote; 243output[BytesPending++] = JsonConstants.Quote; 262output[BytesPending++] = JsonConstants.ListSeparator; 264output[BytesPending++] = JsonConstants.Quote; 269output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.KeyValueSeparator; 272output[BytesPending++] = JsonConstants.Quote; 277output[BytesPending++] = JsonConstants.Quote; 300output[BytesPending++] = JsonConstants.ListSeparator; 313output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.KeyValueSeparator; 319output[BytesPending++] = JsonConstants.Space; 321output[BytesPending++] = JsonConstants.Quote; 326output[BytesPending++] = JsonConstants.Quote; 348output[BytesPending++] = JsonConstants.ListSeparator; 361output[BytesPending++] = JsonConstants.Quote; 366output[BytesPending++] = JsonConstants.Quote; 367output[BytesPending++] = JsonConstants.KeyValueSeparator; 368output[BytesPending++] = JsonConstants.Space; 370output[BytesPending++] = JsonConstants.Quote; 375output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (18)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 259output[BytesPending++] = JsonConstants.ListSeparator; 261output[BytesPending++] = JsonConstants.Quote; 266output[BytesPending++] = JsonConstants.Quote; 267output[BytesPending++] = JsonConstants.KeyValueSeparator; 294output[BytesPending++] = JsonConstants.ListSeparator; 307output[BytesPending++] = JsonConstants.Quote; 311output[BytesPending++] = JsonConstants.Quote; 312output[BytesPending++] = JsonConstants.KeyValueSeparator; 313output[BytesPending++] = JsonConstants.Space; 339output[BytesPending++] = JsonConstants.ListSeparator; 352output[BytesPending++] = JsonConstants.Quote; 357output[BytesPending++] = JsonConstants.Quote; 358output[BytesPending++] = JsonConstants.KeyValueSeparator; 359output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (18)
233output[BytesPending++] = JsonConstants.ListSeparator; 235output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.Quote; 240output[BytesPending++] = JsonConstants.KeyValueSeparator; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 298output[BytesPending++] = JsonConstants.ListSeparator; 311output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.KeyValueSeparator; 317output[BytesPending++] = JsonConstants.Space; 343output[BytesPending++] = JsonConstants.ListSeparator; 356output[BytesPending++] = JsonConstants.Quote; 361output[BytesPending++] = JsonConstants.Quote; 362output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (18)
233output[BytesPending++] = JsonConstants.ListSeparator; 235output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.Quote; 240output[BytesPending++] = JsonConstants.KeyValueSeparator; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 298output[BytesPending++] = JsonConstants.ListSeparator; 311output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.KeyValueSeparator; 317output[BytesPending++] = JsonConstants.Space; 343output[BytesPending++] = JsonConstants.ListSeparator; 356output[BytesPending++] = JsonConstants.Quote; 361output[BytesPending++] = JsonConstants.Quote; 362output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (26)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 238output[BytesPending++] = JsonConstants.Quote; 244output[BytesPending++] = JsonConstants.Quote; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 273output[BytesPending++] = JsonConstants.Quote; 279output[BytesPending++] = JsonConstants.Quote; 302output[BytesPending++] = JsonConstants.ListSeparator; 315output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.Quote; 320output[BytesPending++] = JsonConstants.KeyValueSeparator; 321output[BytesPending++] = JsonConstants.Space; 323output[BytesPending++] = JsonConstants.Quote; 329output[BytesPending++] = JsonConstants.Quote; 351output[BytesPending++] = JsonConstants.ListSeparator; 364output[BytesPending++] = JsonConstants.Quote; 369output[BytesPending++] = JsonConstants.Quote; 370output[BytesPending++] = JsonConstants.KeyValueSeparator; 371output[BytesPending++] = JsonConstants.Space; 373output[BytesPending++] = JsonConstants.Quote; 379output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (22)
91output[BytesPending++] = JsonConstants.ListSeparator; 93output[BytesPending++] = JsonConstants.Quote; 98output[BytesPending++] = JsonConstants.Quote; 99output[BytesPending++] = JsonConstants.KeyValueSeparator; 100output[BytesPending++] = token; 122output[BytesPending++] = JsonConstants.ListSeparator; 135output[BytesPending++] = JsonConstants.Quote; 140output[BytesPending++] = JsonConstants.Quote; 142output[BytesPending++] = JsonConstants.KeyValueSeparator; 143output[BytesPending++] = JsonConstants.Space; 144output[BytesPending++] = token; 164output[BytesPending++] = JsonConstants.ListSeparator; 166output[BytesPending++] = JsonConstants.Quote; 170output[BytesPending++] = JsonConstants.Quote; 171output[BytesPending++] = JsonConstants.KeyValueSeparator; 172output[BytesPending++] = token; 195output[BytesPending++] = JsonConstants.ListSeparator; 208output[BytesPending++] = JsonConstants.Quote; 212output[BytesPending++] = JsonConstants.Quote; 214output[BytesPending++] = JsonConstants.KeyValueSeparator; 215output[BytesPending++] = JsonConstants.Space; 216output[BytesPending++] = token;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (19)
349output[BytesPending++] = JsonConstants.ListSeparator; 351output[BytesPending++] = JsonConstants.Quote; 355output[BytesPending++] = JsonConstants.Quote; 356output[BytesPending++] = JsonConstants.KeyValueSeparator; 379output[BytesPending++] = JsonConstants.ListSeparator; 381output[BytesPending++] = JsonConstants.Quote; 386output[BytesPending++] = JsonConstants.Quote; 387output[BytesPending++] = JsonConstants.KeyValueSeparator; 411output[BytesPending++] = JsonConstants.ListSeparator; 442output[BytesPending++] = JsonConstants.ListSeparator; 455output[BytesPending++] = JsonConstants.Quote; 459output[BytesPending++] = JsonConstants.Quote; 460output[BytesPending++] = JsonConstants.KeyValueSeparator; 461output[BytesPending++] = JsonConstants.Space; 487output[BytesPending++] = JsonConstants.ListSeparator; 500output[BytesPending++] = JsonConstants.Quote; 505output[BytesPending++] = JsonConstants.Quote; 506output[BytesPending++] = JsonConstants.KeyValueSeparator; 507output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (18)
302output[BytesPending++] = JsonConstants.ListSeparator; 304output[BytesPending++] = JsonConstants.Quote; 308output[BytesPending++] = JsonConstants.Quote; 309output[BytesPending++] = JsonConstants.KeyValueSeparator; 332output[BytesPending++] = JsonConstants.ListSeparator; 334output[BytesPending++] = JsonConstants.Quote; 339output[BytesPending++] = JsonConstants.Quote; 340output[BytesPending++] = JsonConstants.KeyValueSeparator; 367output[BytesPending++] = JsonConstants.ListSeparator; 380output[BytesPending++] = JsonConstants.Quote; 384output[BytesPending++] = JsonConstants.Quote; 385output[BytesPending++] = JsonConstants.KeyValueSeparator; 386output[BytesPending++] = JsonConstants.Space; 412output[BytesPending++] = JsonConstants.ListSeparator; 425output[BytesPending++] = JsonConstants.Quote; 430output[BytesPending++] = JsonConstants.Quote; 431output[BytesPending++] = JsonConstants.KeyValueSeparator; 432output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (71)
174output[BytesPending++] = JsonConstants.ListSeparator; 176output[BytesPending++] = JsonConstants.Quote; 180output[BytesPending++] = JsonConstants.Quote; 181output[BytesPending++] = JsonConstants.KeyValueSeparator; 205output[BytesPending++] = JsonConstants.ListSeparator; 216output[BytesPending++] = JsonConstants.Quote; 220output[BytesPending++] = JsonConstants.Quote; 221output[BytesPending++] = JsonConstants.KeyValueSeparator; 222output[BytesPending++] = JsonConstants.Space; 334output[BytesPending++] = JsonConstants.ListSeparator; 336output[BytesPending++] = JsonConstants.Quote; 341output[BytesPending++] = JsonConstants.Quote; 342output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.ListSeparator; 392output[BytesPending++] = JsonConstants.ListSeparator; 405output[BytesPending++] = JsonConstants.Quote; 410output[BytesPending++] = JsonConstants.Quote; 411output[BytesPending++] = JsonConstants.KeyValueSeparator; 412output[BytesPending++] = JsonConstants.Space; 1373output[BytesPending++] = JsonConstants.ListSeparator; 1375output[BytesPending++] = JsonConstants.Quote; 1379output[BytesPending++] = JsonConstants.Quote; 1380output[BytesPending++] = JsonConstants.KeyValueSeparator; 1382output[BytesPending++] = JsonConstants.Quote; 1386output[BytesPending++] = JsonConstants.Quote; 1407output[BytesPending++] = JsonConstants.ListSeparator; 1409output[BytesPending++] = JsonConstants.Quote; 1414output[BytesPending++] = JsonConstants.Quote; 1415output[BytesPending++] = JsonConstants.KeyValueSeparator; 1417output[BytesPending++] = JsonConstants.Quote; 1422output[BytesPending++] = JsonConstants.Quote; 1444output[BytesPending++] = JsonConstants.ListSeparator; 1446output[BytesPending++] = JsonConstants.Quote; 1450output[BytesPending++] = JsonConstants.Quote; 1451output[BytesPending++] = JsonConstants.KeyValueSeparator; 1453output[BytesPending++] = JsonConstants.Quote; 1458output[BytesPending++] = JsonConstants.Quote; 1480output[BytesPending++] = JsonConstants.ListSeparator; 1482output[BytesPending++] = JsonConstants.Quote; 1487output[BytesPending++] = JsonConstants.Quote; 1488output[BytesPending++] = JsonConstants.KeyValueSeparator; 1490output[BytesPending++] = JsonConstants.Quote; 1494output[BytesPending++] = JsonConstants.Quote; 1519output[BytesPending++] = JsonConstants.ListSeparator; 1532output[BytesPending++] = JsonConstants.Quote; 1536output[BytesPending++] = JsonConstants.Quote; 1537output[BytesPending++] = JsonConstants.KeyValueSeparator; 1538output[BytesPending++] = JsonConstants.Space; 1540output[BytesPending++] = JsonConstants.Quote; 1544output[BytesPending++] = JsonConstants.Quote; 1568output[BytesPending++] = JsonConstants.ListSeparator; 1581output[BytesPending++] = JsonConstants.Quote; 1586output[BytesPending++] = JsonConstants.Quote; 1587output[BytesPending++] = JsonConstants.KeyValueSeparator; 1588output[BytesPending++] = JsonConstants.Space; 1590output[BytesPending++] = JsonConstants.Quote; 1595output[BytesPending++] = JsonConstants.Quote; 1620output[BytesPending++] = JsonConstants.ListSeparator; 1633output[BytesPending++] = JsonConstants.Quote; 1637output[BytesPending++] = JsonConstants.Quote; 1638output[BytesPending++] = JsonConstants.KeyValueSeparator; 1639output[BytesPending++] = JsonConstants.Space; 1641output[BytesPending++] = JsonConstants.Quote; 1646output[BytesPending++] = JsonConstants.Quote; 1671output[BytesPending++] = JsonConstants.ListSeparator; 1684output[BytesPending++] = JsonConstants.Quote; 1689output[BytesPending++] = JsonConstants.Quote; 1690output[BytesPending++] = JsonConstants.KeyValueSeparator; 1691output[BytesPending++] = JsonConstants.Space; 1693output[BytesPending++] = JsonConstants.Quote; 1697output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (18)
311output[BytesPending++] = JsonConstants.ListSeparator; 313output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.KeyValueSeparator; 341output[BytesPending++] = JsonConstants.ListSeparator; 343output[BytesPending++] = JsonConstants.Quote; 348output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.KeyValueSeparator; 376output[BytesPending++] = JsonConstants.ListSeparator; 389output[BytesPending++] = JsonConstants.Quote; 393output[BytesPending++] = JsonConstants.Quote; 394output[BytesPending++] = JsonConstants.KeyValueSeparator; 395output[BytesPending++] = JsonConstants.Space; 421output[BytesPending++] = JsonConstants.ListSeparator; 434output[BytesPending++] = JsonConstants.Quote; 439output[BytesPending++] = JsonConstants.Quote; 440output[BytesPending++] = JsonConstants.KeyValueSeparator; 441output[BytesPending++] = JsonConstants.Space;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (6)
78output[BytesPending++] = JsonConstants.ListSeparator; 80output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.Quote; 118output[BytesPending++] = JsonConstants.ListSeparator; 131output[BytesPending++] = JsonConstants.Quote; 135output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (16)
93output[BytesPending++] = JsonConstants.Slash; 94output[BytesPending++] = JsonConstants.Asterisk; 105output[BytesPending++] = JsonConstants.Asterisk; 106output[BytesPending++] = JsonConstants.Slash; 134output[BytesPending++] = JsonConstants.Slash; 135output[BytesPending++] = JsonConstants.Asterisk; 146output[BytesPending++] = JsonConstants.Asterisk; 147output[BytesPending++] = JsonConstants.Slash; 206output[BytesPending++] = JsonConstants.Slash; 207output[BytesPending++] = JsonConstants.Asterisk; 212output[BytesPending++] = JsonConstants.Asterisk; 213output[BytesPending++] = JsonConstants.Slash; 241output[BytesPending++] = JsonConstants.Slash; 242output[BytesPending++] = JsonConstants.Asterisk; 247output[BytesPending++] = JsonConstants.Asterisk; 248output[BytesPending++] = JsonConstants.Slash;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (6)
55output[BytesPending++] = JsonConstants.ListSeparator; 58output[BytesPending++] = JsonConstants.Quote; 63output[BytesPending++] = JsonConstants.Quote; 83output[BytesPending++] = JsonConstants.ListSeparator; 96output[BytesPending++] = JsonConstants.Quote; 101output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (6)
56output[BytesPending++] = JsonConstants.ListSeparator; 59output[BytesPending++] = JsonConstants.Quote; 64output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.ListSeparator; 97output[BytesPending++] = JsonConstants.Quote; 102output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (2)
55output[BytesPending++] = JsonConstants.ListSeparator; 79output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (2)
59output[BytesPending++] = JsonConstants.ListSeparator; 83output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (2)
59output[BytesPending++] = JsonConstants.ListSeparator; 83output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (2)
60output[BytesPending++] = JsonConstants.ListSeparator; 85output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (6)
55output[BytesPending++] = JsonConstants.ListSeparator; 58output[BytesPending++] = JsonConstants.Quote; 64output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.ListSeparator; 97output[BytesPending++] = JsonConstants.Quote; 103output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (2)
79output[BytesPending++] = JsonConstants.ListSeparator; 103output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (2)
184output[BytesPending++] = JsonConstants.ListSeparator; 272output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (2)
68output[BytesPending++] = JsonConstants.ListSeparator; 92output[BytesPending++] = JsonConstants.ListSeparator;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (12)
133output[BytesPending++] = JsonConstants.ListSeparator; 135output[BytesPending++] = JsonConstants.Quote; 139output[BytesPending++] = JsonConstants.Quote; 163output[BytesPending++] = JsonConstants.ListSeparator; 176output[BytesPending++] = JsonConstants.Quote; 180output[BytesPending++] = JsonConstants.Quote; 279output[BytesPending++] = JsonConstants.ListSeparator; 281output[BytesPending++] = JsonConstants.Quote; 286output[BytesPending++] = JsonConstants.Quote; 309output[BytesPending++] = JsonConstants.ListSeparator; 322output[BytesPending++] = JsonConstants.Quote; 327output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (7)
489output[BytesPending++] = JsonConstants.ListSeparator; 502output[BytesPending++] = JsonConstants.Quote; 518output[BytesPending++] = JsonConstants.ListSeparator; 521output[BytesPending++] = JsonConstants.Quote; 531_memory.Span[BytesPending++] = JsonConstants.Quote; 549dest[total++] = srcLeft[i]; 560dest[total++] = srcRight[i];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (2)
70output[BytesPending++] = JsonConstants.ListSeparator; 94output[BytesPending++] = JsonConstants.ListSeparator;
System.Text.Json.SourceGeneration (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (2)
45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
151destination[charsWritten++] = value;
System.Text.RegularExpressions (38)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
System\Text\RegularExpressions\RegexCharClass.cs (20)
577span[FlagsIndex] = (char)0x1; 578span[SetLengthIndex] = (char)(state.set.Length - 2); 579span[CategoryLengthIndex] = (char)state.category.Length; 585span[FlagsIndex] = '\0'; 586span[SetLengthIndex] = (char)state.set.Length; 587span[CategoryLengthIndex] = (char)state.category.Length; 678categories[numCategories++] = (UnicodeCategory)(c - 1); 694categories[numCategories++] = (UnicodeCategory)(-1 - c); 717categories[numCategories++] = (UnicodeCategory)(c - 1); 738categories[numCategories++] = (UnicodeCategory)(-1 - c); 870chars[count++] = (char)c; 1599span[FlagsIndex] = (char)0; 1600span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1601span[CategoryLengthIndex] = (char)0; 1605span[i++] = c; 1608span[i++] = (char)(c + 1); 1656headerSpan[FlagsIndex] = (char)(_negate ? 1 : 0); 1657headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1658headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1992invertedGroup[i] = (char)-(short)group[i];
System\Text\RegularExpressions\RegexCompiler.cs (1)
5980dest[i >> 4] |= (char)(1 << (i & 0xF));
System\Text\RegularExpressions\Symbolic\MintermClassifier.cs (1)
60charRangesPerMinterm[mintermId] = ranges;
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
429categoryCodes[cat] = true;
System.Text.RegularExpressions.Generator (36)
RegexGenerator.Emitter.cs (1)
5321dest[i >> 4] |= (char)(1 << (i & 0xF));
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (20)
577span[FlagsIndex] = (char)0x1; 578span[SetLengthIndex] = (char)(state.set.Length - 2); 579span[CategoryLengthIndex] = (char)state.category.Length; 585span[FlagsIndex] = '\0'; 586span[SetLengthIndex] = (char)state.set.Length; 587span[CategoryLengthIndex] = (char)state.category.Length; 678categories[numCategories++] = (UnicodeCategory)(c - 1); 694categories[numCategories++] = (UnicodeCategory)(-1 - c); 717categories[numCategories++] = (UnicodeCategory)(c - 1); 738categories[numCategories++] = (UnicodeCategory)(-1 - c); 870chars[count++] = (char)c; 1619span[FlagsIndex] = (char)0; 1620span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1621span[CategoryLengthIndex] = (char)0; 1626span[i++] = c; 1629span[i++] = (char)(c + 1); 1656headerSpan[FlagsIndex] = (char)(_negate ? 1 : 0); 1657headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1658headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1992invertedGroup[i] = (char)-(short)group[i];
System.Web.HttpUtility (16)
src\libraries\Common\src\System\HexConverter.cs (5)
79buffer[startingIndex + 1] = (byte)packedResult; 80buffer[startingIndex] = (byte)(packedResult >> 8); 89buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 90buffer[startingIndex] = (char)(packedResult >> 8); 376bytes[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (6)
76_chars[Length] = '\0'; 86return ref _chars[index]; 109_chars[Length] = '\0'; 178chars[pos] = c; 198_chars[pos] = s[0]; 233dst[i] = c;
System\Web\Util\HttpEncoder.cs (5)
234decodedBytes[decodedBytesCount++] = b; 652_charBuffer[_numChars++] = ch; 666_byteBuffer[_numBytes++] = b; 691chars[i] = (char)Rune.ReplacementChar.Value; 701chars[i] = (char)Rune.ReplacementChar.Value;
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (1)
60buffer[format.Length] = '\0';
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
49int.TryParse(s.AsSpan(rgbs[i]), out rgb[i]);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
360monthDayStates[currentMonthIndex] |= 1U << currentDate.Day - 1; 1102boldDates[monthIndex] |= (0x00000001 << (date.Day - 1)); 1110boldDates[i] |= _monthsOfYear[startMonth % MonthsInYear] | _datesToBoldMonthly;
System\Windows\Forms\Rendering\ControlPaint.cs (17)
183colors[i] = new RGBQUAD 622topLineLefts[i] = bounds.X + leftOffset; 623topLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 627leftLineTops[leftOffset] = bounds.Y + i + 1; 632rightLineTops[rightOffset] = bounds.Y + i; 638leftLineTops[j] = bounds.Y + i + 1; 643rightLineTops[j] = bounds.Y + i; 650leftLineTops[i] = bounds.Y; 655rightLineTops[i] = bounds.Y; 667bottomLineLefts[i] = bounds.X + leftOffset; 668bottomLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 672leftLineBottoms[leftOffset] = bounds.Y + bounds.Height - i - 1; 677rightLineBottoms[rightOffset] = bounds.Y + bounds.Height - i - 1; 683leftLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 688rightLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 695leftLineBottoms[i] = bounds.Y + bounds.Height - 1; 700rightLineBottoms[i] = bounds.Y + bounds.Height - 1;
System.Windows.Forms.Design (5)
System\ComponentModel\Design\ByteViewer.cs (3)
190charsToDraw[i] = CharIsPrintable(c) ? c : '.'; 216charsBuffer[charsWritten] = ' '; // Add one extra in the middle. 412text[size] = '\0';
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1023span[i] = char.ToLower(baseName[i], CultureInfo.CurrentCulture);
System\Windows\Forms\Design\DesignerUtils.cs (1)
666alphaValues[i] = (byte)(i * opacity);
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeConverterHelper.cs (1)
55output[i] = (T)converter.ConvertFromString(context, culture, text[tokens[i]].ToString())!;
System.Windows.Forms.Primitives.Tests (2)
Interop\Ole32\CADWORDTests.cs (1)
46elements[i] = values[i];
Interop\Ole32\CALPOLESTRTests.cs (1)
48elements[i] = nativeCopy;
System.Windows.Forms.UI.IntegrationTests (5)
Input\KeyboardSimulator.cs (5)
76inputs[i * 2] = InputBuilder.CharacterDown(text[i]); 77inputs[i * 2 + 1] = InputBuilder.CharacterUp(text[i]); 101inputs[i] = InputBuilder.KeyDown(modifierArray[i]); 107inputs[modifierArray.Length + i] = InputBuilder.KeyDown(keyArray[i]); 108inputs[modifierArray.Length + i + 1] = InputBuilder.KeyUp(keyArray[i]);
Test.Utilities (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Text.Analyzers (21)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
705values[i] = values[j]; 706values[j] = value; 720values[i] = values[j]; 721values[j] = v; 863values[i - 1] = values[child - 1]; 868values[i - 1] = dValue; 884values[j + 1] = values[j]; 889values[j + 1] = tValue; 956values[i] = values[j]; 957values[j] = value; 971values[i] = values[j]; 972values[j] = v; 1113values[i - 1] = values[child - 1]; 1118values[i - 1] = dValue; 1132values[j + 1] = values[j]; 1137values[j + 1] = tValue; 1255values[left] = values[i]; 1256values[i] = tempValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
1075 references to
aspire (1)
src\Shared\CircularBuffer.cs (1)
104var overflowItem = data[data.Length - 1];
Aspire.Dashboard (1)
src\Shared\CircularBuffer.cs (1)
104var overflowItem = data[data.Length - 1];
Aspire.Hosting (1)
src\Shared\CircularBuffer.cs (1)
104var overflowItem = data[data.Length - 1];
GenerateDocumentationAndConfigFiles (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Metrics (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Metrics.Legacy (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.AspNetCore.Components (8)
src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\FormDataReader.cs (1)
271if (_currentPrefixBuffer.Span[index] == '.')
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
156var componentId = componentIdsInDepthOrder[i].ComponentId;
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
400index += targetSpan.Slice(index).Write7BitEncodedInt(purposeLengthsPool[i]);
Microsoft.AspNetCore.Http (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
563if (_comparer.Equals(ArrayStorageSpan[i].Key, key))
Microsoft.AspNetCore.Http.Abstractions (8)
src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
271if (_currentPrefixBuffer.Span[index] == '.')
Microsoft.AspNetCore.Identity.FunctionalTests (10)
src\Identity\Extensions.Core\src\Base32.cs (5)
132b1 = (offset < input.Length) ? input[offset++] : 0U; 133b2 = (offset < input.Length) ? input[offset++] : 0U; 134b3 = (offset < input.Length) ? input[offset++] : 0U; 135b4 = (offset < input.Length) ? input[offset++] : 0U; 136b5 = (offset < input.Length) ? input[offset++] : 0U;
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (5)
60var offset = hash[hash.Length - 1] & 0xf; 62var binaryCode = (hash[offset] & 0x7f) << 24 63| (hash[offset + 1] & 0xff) << 16 64| (hash[offset + 2] & 0xff) << 8 65| (hash[offset + 3] & 0xff);
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperRunner.cs (1)
39var task = tagHelpers[i].ProcessAsync(tagHelperContext, tagHelperOutput);
Microsoft.AspNetCore.Routing (9)
Matching\DfaMatcherBuilder.cs (3)
443if (!hasFailingPolicy[literalIndex] && !constraint.MatchesLiteral(parameterPart.Name, literal)) 448allFailed &= hasFailingPolicy[literalIndex]; 465if (!hasFailingPolicy[k])
Matching\HttpMethodMatcherPolicy.cs (2)
402if (object.ReferenceEquals(methods[i], httpMethod)) 410if (HttpMethods.Equals(methods[i], httpMethod))
Matching\ILEmitTrieFactory.cs (4)
134var group = groups[i]; 160il.Emit(OpCodes.Ldc_I4, groups[mid].Key); 375il.Emit(OpCodes.Ldc_I8, unchecked((long)groups[mid].Key)); 507il.Emit(OpCodes.Ldc_I4, unchecked(((int)(uint)groups[mid].Key | 0x20)));
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
167if (char.IsDigit(buffer[c]) && c < buffer.Length / 2)
Microsoft.AspNetCore.Server.HttpSys (7)
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
60while (scan < raw.Length && raw[scan] != '?')
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (3)
68if (rawPath[reader] == '%') 88rawPath[writer++] = rawPath[reader++]; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
54if (src[nextIndex] == ByteSlash) 84if (src[nextIndex] == ByteSlash) 90else if (src[nextIndex] == ByteDot)
Microsoft.AspNetCore.Server.IIS (7)
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
60while (scan < raw.Length && raw[scan] != '?')
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (3)
68if (rawPath[reader] == '%') 88rawPath[writer++] = rawPath[reader++]; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
54if (src[nextIndex] == ByteSlash) 84if (src[nextIndex] == ByteSlash) 90else if (src[nextIndex] == ByteDot)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
src\Shared\PathNormalizer\PathNormalizer.cs (3)
54if (src[nextIndex] == ByteSlash) 84if (src[nextIndex] == ByteSlash) 90else if (src[nextIndex] == ByteDot)
src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
AsciiDecoding.cs (2)
46var b = asciiBytes[i]; 142var b = asciiBytes[i];
src\Shared\test\Shared.Tests\runtime\Http2\HPackIntegerTest.cs (1)
72decodeResult = decoder.TryDecode(integerBytes[j], out intResult);
TestHelpers\AssertExtensions.cs (2)
20if (expected[i] != actual[i]) 22throw new XunitException($@"Expected byte at index {i} to be '{expected[i]}' but was '{actual[i]}'");
VariableIntHelperTests.cs (1)
31Assert.Equal(expected[i], outputBuffer[i]);
Microsoft.AspNetCore.Shared.Tests (17)
runtime\Http2\HPackIntegerTest.cs (1)
72decodeResult = decoder.TryDecode(integerBytes[j], out intResult);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
563if (_comparer.Equals(ArrayStorageSpan[i].Key, key))
src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
60while (scan < raw.Length && raw[scan] != '?')
src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (3)
68if (rawPath[reader] == '%') 88rawPath[writer++] = rawPath[reader++]; 242buffer[writer++] = buffer[begin++];
src\Shared\PathNormalizer\PathNormalizer.cs (3)
54if (src[nextIndex] == ByteSlash) 84if (src[nextIndex] == ByteSlash) 90else if (src[nextIndex] == ByteDot)
src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
813if (!isStreaming[i])
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsInvoker.cs (2)
417if (states[i] > max) 419max = states[i];
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
490var resource = resources[i];
Microsoft.AspNetCore.WebUtilities (10)
HttpRequestStreamReader.cs (2)
402if (span[index] == carriageReturn) 432if (span[index] == lineFeed)
src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.Build (7)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
121if (char.IsWhiteSpace(c) && (normalizedCommandIndex == 0 || char.IsWhiteSpace(normalizedBuildCommand[normalizedCommandIndex - 1])))
FileUtilities.cs (6)
645bool isCurSlash = IsAnySlash(str[i]); 646bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 650str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 665&& ((path[0] == singleQuote && path[endId] == singleQuote) 666|| (path[0] == doubleQuote && path[endId] == doubleQuote));
Microsoft.Build.Engine.OM.UnitTests (6)
FileUtilities.cs (6)
645bool isCurSlash = IsAnySlash(str[i]); 646bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 650str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 665&& ((path[0] == singleQuote && path[endId] == singleQuote) 666|| (path[0] == doubleQuote && path[endId] == doubleQuote));
Microsoft.Build.Framework (18)
ArraySortHelper.cs (18)
700TValue value = values[i]; 701values[i] = values[j]; 715TValue v = values[i]; 716values[i] = values[j]; 847TValue dValue = values[lo + i - 1]; 861values[lo + i - 1] = values[lo + child - 1]; 876TValue tValue = values[i + 1]; 882values[j + 1] = values[j]; 953TValue value = values[i]; 954values[i] = values[j]; 968TValue v = values[i]; 969values[i] = values[j]; 1100TValue dValue = values[lo + i - 1]; 1114values[lo + i - 1] = values[lo + child - 1]; 1127TValue tValue = values[i + 1]; 1133values[j + 1] = values[j]; 1256TValue tempValue = values[left]; 1257values[left] = values[i];
Microsoft.Build.Tasks.Core (6)
FileUtilities.cs (6)
645bool isCurSlash = IsAnySlash(str[i]); 646bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 650str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 665&& ((path[0] == singleQuote && path[endId] == singleQuote) 666|| (path[0] == doubleQuote && path[endId] == doubleQuote));
Microsoft.Build.Utilities.Core (6)
FileUtilities.cs (6)
645bool isCurSlash = IsAnySlash(str[i]); 646bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 650str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 665&& ((path[0] == singleQuote && path[endId] == singleQuote) 666|| (path[0] == doubleQuote && path[endId] == doubleQuote));
Microsoft.CodeAnalysis (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Analyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.BannedApiAnalyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.CodeStyle (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Collections.Package (18)
Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Extensions.Package (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.InteractiveHost (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.PublicApiAnalyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.ResxSourceGenerator (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Threading.Package (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Workspaces (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Microsoft.Data.Analysis (50)
DataFrame.cs (2)
430span[i] = span[i] && column.IsValid(index); 450span[i] = span[i] || column.IsValid(index);
DataFrameColumn.cs (17)
612TKey pivot = span[sortIndices[middle]]; 624if (left == (hi - 1) && comparer.Compare(span[sortIndices[left]], pivot) < 0) 630if (right == lo && comparer.Compare(pivot, span[sortIndices[right]]) < 0) 686int di = sortIndices[lo - 1 + i]; 694comparer.Compare(span[sortIndices[lo + child - 1]], span[sortIndices[lo + child]]) < 0) 699if (!(comparer.Compare(d, span[sortIndices[lo + child - 1]]) < 0)) 702sortIndices[lo + i - 1] = sortIndices[lo + child - 1]; 721var t = span[sortIndices[j + 1]]; 722var ti = sortIndices[j + 1]; 723if (j >= lo && comparer.Compare(t, span[sortIndices[j]]) < 0) 727sortIndices[j + 1] = sortIndices[j]; 730while (j >= lo && comparer.Compare(t, span[sortIndices[j]]) < 0); 754if (comparer.Compare(span[sortIndices[i]], span[sortIndices[j]]) > 0) 756int temp = sortIndices[i]; 757sortIndices[i] = sortIndices[j];
PrimitiveColumnContainer.BinaryOperations.cs (2)
34leftSpan[j] = arithmetic.HandleOperation(operation, leftSpan[j], rightSpan[j]); 85rightSpan[j] = arithmetic.HandleOperation(operation, left, rightSpan[j]);
PrimitiveColumnContainer.cs (3)
189T? value = func(isValid ? mutableBuffer[i] : null, curIndex); 208span[i] = func(span[i]); 296byte curBitMap = bitMapBufferSpan[bitMapBufferIndex];
PrimitiveDataFrameColumnComputations.cs (24)
255mutableSpan[i] = (byte)(Math.Abs((decimal)mutableSpan[i])); 724mutableSpan[i] = (byte)(Math.Round((decimal)mutableSpan[i])); 742mutableSpan[i] = (char)(Math.Abs((decimal)mutableSpan[i])); 1211mutableSpan[i] = (char)(Math.Round((decimal)mutableSpan[i])); 1229mutableSpan[i] = (decimal)(Math.Abs((decimal)mutableSpan[i])); 1698mutableSpan[i] = (decimal)(Math.Round((decimal)mutableSpan[i])); 1716mutableSpan[i] = (double)(Math.Abs((decimal)mutableSpan[i])); 2185mutableSpan[i] = (double)(Math.Round((decimal)mutableSpan[i])); 2203mutableSpan[i] = (float)(Math.Abs((decimal)mutableSpan[i])); 2672mutableSpan[i] = (float)(Math.Round((decimal)mutableSpan[i])); 2690mutableSpan[i] = (int)(Math.Abs((decimal)mutableSpan[i])); 3159mutableSpan[i] = (int)(Math.Round((decimal)mutableSpan[i])); 3177mutableSpan[i] = (long)(Math.Abs((decimal)mutableSpan[i])); 3646mutableSpan[i] = (long)(Math.Round((decimal)mutableSpan[i])); 3664mutableSpan[i] = (sbyte)(Math.Abs((decimal)mutableSpan[i])); 4133mutableSpan[i] = (sbyte)(Math.Round((decimal)mutableSpan[i])); 4151mutableSpan[i] = (short)(Math.Abs((decimal)mutableSpan[i])); 4620mutableSpan[i] = (short)(Math.Round((decimal)mutableSpan[i])); 4638mutableSpan[i] = (uint)(Math.Abs((decimal)mutableSpan[i])); 5107mutableSpan[i] = (uint)(Math.Round((decimal)mutableSpan[i])); 5125mutableSpan[i] = (ulong)(Math.Abs((decimal)mutableSpan[i])); 5594mutableSpan[i] = (ulong)(Math.Round((decimal)mutableSpan[i])); 5612mutableSpan[i] = (ushort)(Math.Abs((decimal)mutableSpan[i])); 6081mutableSpan[i] = (ushort)(Math.Round((decimal)mutableSpan[i]));
Utils\BitUtility.cs (2)
74? (byte)(data[idx] | BitMask[mod]) 75: (byte)(data[idx] & ~BitMask[mod]);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
154ints[i] = BinaryPrimitives.ReverseEndianness(ints[i]);
Microsoft.Extensions.DependencyInjection.Abstractions (3)
ActivatorUtilities.cs (3)
818if (_parameterValues[applyIndex] == null && 836if (_parameterValues[i] == null && 857if (_parameterValues[index] == null)
Microsoft.Extensions.Diagnostics (2)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
145ulong value = _bitMap[bitIndex]; 156ulong value = _bitMap[bitIndex];
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Linux\Network\LinuxNetworkUtilizationParser.cs (3)
84ReadOnlySpan<char> tcpConnectionState = line.Slice(range[Target - 2].Start.Value, range[Target - 2].End.Value - range[Target - 2].Start.Value);
Linux\OSFileSystem.cs (2)
70if (buffer.Span[end] == (byte)'\n') 129if (buffer[end] == terminator)
Microsoft.Extensions.Identity.Core (5)
Base32.cs (5)
132b1 = (offset < input.Length) ? input[offset++] : 0U; 133b2 = (offset < input.Length) ? input[offset++] : 0U; 134b3 = (offset < input.Length) ? input[offset++] : 0U; 135b4 = (offset < input.Length) ? input[offset++] : 0U; 136b5 = (offset < input.Length) ? input[offset++] : 0U;
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
1130bEditor.Indices[i] = a.GetIndices()[bEditor.Indices[i]];
Microsoft.ML.Data (29)
Deprecated\Vector\GenericSpanSortHelper.cs (26)
64if (keys[a] != null && keys[a].CompareTo(keys[b]) > 0) 66TKey key = keys[a]; 67TValue value = values[a]; 68keys[a] = keys[b]; 69values[a] = values[b]; 80TKey k = keys[i]; 81TValue v = values[i]; 82keys[i] = keys[j]; 83values[i] = values[j]; 162TKey pivot = keys[middle]; 214TKey d = keys[lo + i - 1]; 215TValue dValue = values[lo + i - 1]; 220if (child < n && (keys[lo + child - 1] == null || keys[lo + child - 1].CompareTo(keys[lo + child]) < 0)) 224if (keys[lo + child - 1] == null || keys[lo + child - 1].CompareTo(d) < 0) 226keys[lo + i - 1] = keys[lo + child - 1]; 227values[lo + i - 1] = values[lo + child - 1]; 247t = keys[i + 1]; 248tValue = values[i + 1]; 249while (j >= lo && (t == null || t.CompareTo(keys[j]) < 0)) 251keys[j + 1] = keys[j]; 252values[j + 1] = values[j];
Deprecated\Vector\VectorUtils.cs (2)
138var value = aEditor.Values[i]; 148aEditor.Values[i] = ratio * aEditor.Values[i];
Scorers\FeatureContributionCalculation.cs (1)
246var val = values[i];
Microsoft.ML.StandardTrainers (5)
Standard\LogisticRegression\LogisticRegression.cs (1)
214Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
272Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1)); 1247dst[i] = MathUtils.ExpSlow(dst[i] - softmax);
Standard\ModelStatistics.cs (1)
381pValueEditor.Values[i - 1] = 1 - (float)ProbabilityFunctions.Erf(Math.Abs(zScoreEditor.Values[i - 1] / sqrt2));
Standard\PoissonRegression\PoissonRegression.cs (1)
179Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.Indices[BiasCount - 1] == BiasCount - 1));
Microsoft.ML.TestFrameworkCommon (2)
TestLogger.cs (2)
48if ((span.Length >= 2) && (span[count - 2] == '\r') && (span[count - 1] == '\n'))
Microsoft.ML.TimeSeries (3)
AdaptiveSingularSpectrumSequenceModeler.cs (3)
1445resEditor.Values[i] += resEditor.Values[j] * _alpha[k]; 1467sdEditor.Values[i] = sdEditor.Values[i - 1] + _autoregressionNoiseVariance * temp * temp; 1471sdEditor.Values[i] = (float)Math.Sqrt(sdEditor.Values[i]);
Microsoft.ML.Tokenizers (33)
Model\BPETokenizer.cs (4)
1458charsConsumed = charsConsumed >= textSpan.Length ? text.Length : mapping[charsConsumed]; 1479charsConsumed = charsConsumed >= textSpan.Length ? text.Length : mapping[charsConsumed]; 1539textIndex = textIndex >= textSpan.Length ? text.Length : mapping[textIndex]; 1561textIndex = textIndex >= textSpan.Length ? text.Length : mapping[textIndex];
Model\CodeGenTokenizer.cs (2)
1682int endIndex = index + length < mapping.Length ? mapping[index + length] : originalText.Length; 1683return new EncodedToken(id, token, new Range(mapping[index], endIndex));
Model\EnglishRobertaTokenizer.cs (6)
919if (tokens[i].Offset.Start.Value != indexMapping[index] || tokens[i].Offset.End.Value != indexMapping[index] + tokens[i].Value.Length) 929list.Add(new EncodedToken(tokens[j].Id, tokens[j].Value, new Range(indexMapping[index], indexMapping[index] + tokens[j].Value.Length))); 1050tokens.Add(new EncodedToken(_vocab[new StringSpanOrdinalKey(w)], w, new Range(indexMapping[index], indexMapping[index] + w.Length)));
Model\SentencePieceBaseModel.cs (1)
554Debug.Assert(destination[suffixIndex] == ' ');
Model\SentencePieceBpeModel.cs (2)
240int id = (int)utf8Bytes[j] + ByteCodeToIdOffset; // byte code is mapped to the to the Ids starting from 4. 543accumulatedIds.Add((int)utf8Bytes[j] + ByteCodeToIdOffset); // byte code is mapped to the to the Ids starting from 4.
Model\SentencePieceUnigramModel.cs (2)
438id = ByteCodeToIdOffset + destination[j]; 493float bestPathScoreTillHere = bestPathEndsAt[startsAt].BestPathScore;
Normalizer\SentencePieceNormalizer.cs (4)
263span[i] = span[i - 1]; 292if (longestLength == 0 || trieResults[k].Length > longestLength) 294longestLength = trieResults[k].Length; // length of prefix 295longestValue = trieResults[k].Value; // pointer to |_normalized|.
Utils\BytePairEncoder.cs (9)
39var slice = mergingBytes.SliceStartEnd(byteIndicesAndRanks[startIndex].Index, byteIndicesAndRanks[startIndex + skip + 2].Index); 54byteIndicesAndRanks[i].Rank = rank; 63if (byteIndicesAndRanks[i].Rank < minRank.Rank) 65minRank = (i, byteIndicesAndRanks[i].Rank); 72byteIndicesAndRanks[j].Rank = GetRank(byteIndicesAndRanks, j, 1); 75byteIndicesAndRanks[j - 1].Rank = GetRank(byteIndicesAndRanks, j - 1, 1); 90int startIndex = byteIndicesAndRanks[i].Index; 91int endIndex = byteIndicesAndRanks[i + 1].Index;
Utils\DoubleArrayTrie.cs (2)
1088results[numResults].Value = (int)_array[nodePos].Value; 1089results[numResults].Length = i + 1;
Utils\Helpers.netstandard.cs (1)
116if (span[i] == oldValue)
Microsoft.ML.Tokenizers.Tests (3)
LlamaTests.cs (1)
904if (sp.Length > 0 && sp[sp.Length - 1] == ' ')
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (2)
1088results[numResults].Value = (int)_array[nodePos].Value; 1089results[numResults].Length = i + 1;
Microsoft.ML.Transforms (11)
Dracula\Featurizer.cs (6)
182if (counts[ifeat] < 0) 185sum += counts[ifeat]; 199_host.Assert(counts[i] >= 0); 200if (counts[i] <= 0 && countTable.PriorFrequencies[i] <= 0 || countTable.PriorFrequencies[i] >= 1) 205(counts[i] + PriorCoef[iCol] * countTable.PriorFrequencies[i]) / 206(sum - counts[i] + PriorCoef[iCol] * (1 - countTable.PriorFrequencies[i])));
MutualInformationFeatureSelection.cs (1)
572Contracts.Assert(labelsEditor.Values[i] < _numLabels);
Text\LdaTransform.cs (2)
537Contracts.Assert(i == 0 || editor.Indices[i - 1] < index); 550editor.Values[i] = (float)(editor.Values[i] / normalizer);
Text\WordEmbeddingsExtractor.cs (2)
587if (editor.Values[i] > currentTerm) 590if (editor.Values[offset + i] < currentTerm)
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
903labelWriter.WriteByte(labelsSpan[index]); 909featuresWriter.WriteByte(featureSpan[index]);
MSBuild (6)
FileUtilities.cs (6)
645bool isCurSlash = IsAnySlash(str[i]); 646bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 650str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 665&& ((path[0] == singleQuote && path[endId] == singleQuote) 666|| (path[0] == doubleQuote && path[endId] == doubleQuote));
PresentationCore (6)
System\Windows\Media\ColorTransform.cs (6)
143if (srcValue[i] >= 1.0)// this fails for values above 1.0 and below 0.0 147else if (srcValue[i] <= 0.0) 153channel[i] = (UInt16)(srcValue[i] * (float)0xFFFF); 165if (srcValue[i] >= 1.0)// this fails for values above 1.0 and below 0.0 169else if (srcValue[i] <= 0.0) 175channel[i] = (byte)(srcValue[i] * (float)0xFF);
Roslyn.Diagnostics.Analyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenHashTable.cs (3)
70int hashCode = hashCodes[index]; 89int bucketStart = bucketStarts[bucketNum]; 107index = nexts[index];
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
214if ((seenItems[index / BitsPerInt32] & (1 << index)) == 0)
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
42int destIndex = hashCodes[srcIndex];
System\Collections\Frozen\ItemsFrozenSet.cs (1)
37int destIndex = hashCodes[srcIndex];
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
39int destIndex = hashCodes[srcIndex];
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (1)
54int destIndex = hashCodes[srcIndex];
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
45int destIndex = hashCodes[srcIndex];
System.Console (4)
System\ConsolePal.Unix.cs (4)
515Debug.Assert(readBytes[escPos] == Esc); 516Debug.Assert(readBytes[bracketPos] == '['); 517Debug.Assert(readBytes[semiPos] == ';'); 518Debug.Assert(readBytes[rPos] == 'R');
System.Data.Common (28)
System\Data\SQLTypes\SQLDecimal.cs (26)
984szResult[iCurChar++] = pszTmp[iDigits]; 1304dwlAccum += rglData1[iulData]; 1306dwlAccum += rglData2[iulData]; 1349dwlAccum += rglData1[iulData]; 1351dwlAccum -= rglData2[iulData]; 1354if (rglData1[iulData] != 0) 1501dwlNextAccum = dwlAccum + rgulRes[idRes]; 1523for (; (rgulRes[idRes] == 0) && (idRes > 0); idRes--) 2125dwlAccum += rguiData[iData]; 2170ulong ulTemp = rguiData[iData]; 2238dwlAccum = (dwlAccum << 32) + rguiData[iData - 1]; // dwlA*x_dwlBaseUI4 + rglData 2511ulong ulTemp = piulD[iData]; 2551dwlAccum = (((ulong)ulCarry) << 32) + rgulU[idU]; 2553ulCarry = (uint)(dwlAccum - rgulU[idU] * ulD); // (ULONG) (dwlAccum % iulD) 2669ulDHigh = rgulD[ciulD - 1]; 2679ulDHigh = rgulD[ciulD - 1]; 2682ulDSecond = rgulD[ciulD - 2]; 2692dwlAccum = DWL(rgulR[iulRindex - 1], rgulR[iulRindex]); 2693if (ulDHigh == rgulR[iulRindex]) 2700while (ulDSecond * ulTemp > DWL(rgulR[iulRindex - 2], RH)) 2713ulong ulTemp2 = rgulD[iulDindex]; 2715dwlAccum += (ulong)rgulR[iulRwork] - LO(dwlMulAccum); 2720dwlAccum += rgulR[iulRwork] - dwlMulAccum; 2734dwlAccum = rgulD[iulDindex] + (ulong)rgulR[iulRwork] + ulCarry;
System\Data\SQLTypes\SQLGuid.cs (2)
132byte b1 = xBytes[rgiGuidOrder[i]]; 133byte b2 = yBytes[rgiGuidOrder[i]];
System.Diagnostics.DiagnosticSource (4)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
145ulong value = _bitMap[bitIndex]; 156ulong value = _bitMap[bitIndex];
System\Diagnostics\Metrics\AggregatorStore.cs (2)
505labels[i] = new KeyValuePair<string, string>(indexedNames[i], indexedValues[i]?.ToString() ?? "");
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
397value[byteIdx] = (byte)((value[byteIdx] * 0x0202020202ul & 0x010884422010ul) % 1023);
System.Formats.Nrbf (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
208if (resultAsBytes[i] != 0) // it can be any byte different than 0
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1043destination[i] = converted[j];
System.IO.Compression (2)
System\IO\Compression\DeflateManaged\HuffmanTree.cs (2)
130tempCode = (tempCode + bitLengthCount[bits - 1]) << 1; 141code[i] = BitReverse(nextCode[len], len);
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (5)
1041int length = (uint)carriageReturnIndex < (uint)buffer.Length && buffer[carriageReturnIndex] == '\r' 1105else if (line[MinStatusLineLength] == ' ') 1162if (buffer[colIdx] == '\n') 1191int crOrLfIdx = (uint)crIdx < (uint)valueIterator.Length && valueIterator[crIdx] == '\r' 1201if (valueIterator[spIdx] is not (byte)'\t' and not (byte)' ')
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
449numbers[toIndex--] = numbers[fromIndex];
System\Net\IPAddressParser.cs (1)
204if (destination[pos - 1] != TChar.CreateTruncating(':'))
System.Net.Quic (1)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
449numbers[toIndex--] = numbers[fromIndex];
System.Net.Security (1)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
449numbers[toIndex--] = numbers[fromIndex];
System.Net.Sockets (13)
System\Net\Sockets\SocketPal.Unix.cs (13)
313iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset + startOffset]; 314iovecs[i].Count = (UIntPtr)(buffer.Count - startOffset); 343handles[i].Free(); 427iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset]; 428iovecs[i].Count = (UIntPtr)bufferCount; 469handles[i].Free(); 566iovecs[i].Base = &((byte*)handles[i].AddrOfPinnedObject())[buffer.Offset]; 567iovecs[i].Count = (UIntPtr)buffer.Count; 621handles[i].Free(); 1925if (results[i] == 0)
System.Net.WebSockets (7)
System\Net\WebSockets\ManagedWebSocket.cs (7)
828long payloadLength = _receiveBuffer.Span[_receiveBufferOffset + 1] & 0x7F; 1296header.Fin = (receiveBufferSpan[_receiveBufferOffset] & 0x80) != 0; 1297bool reservedSet = (receiveBufferSpan[_receiveBufferOffset] & 0b_0011_0000) != 0; 1298header.Opcode = (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF); 1299header.Compressed = (receiveBufferSpan[_receiveBufferOffset] & 0b_0100_0000) != 0; 1301bool masked = (receiveBufferSpan[_receiveBufferOffset + 1] & 0x80) != 0; 1302header.PayloadLength = receiveBufferSpan[_receiveBufferOffset + 1] & 0x7F;
System.Numerics.Tensors (6)
System\Numerics\Tensors\netcore\TensorShape.cs (6)
191int strideIndex = stridesOrder[i]; 199nint sortedStride = destinationStrides[i]; 544NRange curRange = ranges[dimension]; 549if (ranges[i].Start.Value >= lengths[i]) 558ranges[i - 1] = new NRange(ranges[i - 1].Start.Value + 1, ranges[i - 1].End.Value + 1);
System.Private.CoreLib (136)
src\libraries\Common\src\System\Number.Formatting.Common.cs (2)
547if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 580if (digPos == thousandsSepPos[thousandsSepCtr] + 1)
src\libraries\Common\src\System\Number.NumberBuffer.cs (2)
71byte digit = Digits[numDigits]; 99byte digit = Digits[i];
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
266attributeValueSpan[parts[i]],
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
636source[localDestIndex - localBytesWritten + i] = buffer[i];
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (6)
444thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 547uint right = (uint)ReverseIfBE(intSpan[fromIndex]) >> shiftCount; 553mask &= (uint)ReverseIfBE(intSpan[fromIndex]); 598int left = ReverseIfBE(intSpan[fromindex]) << shiftCount; 603intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (67)
103if (comparer(keys[i], keys[j]) > 0) 105T key = keys[i]; 106keys[i] = keys[j]; 116T t = a[i]; 117a[i] = a[j]; 194T pivot = keys[middle]; 239T d = keys[i - 1]; 243if (child < n && comparer(keys[child - 1], keys[child]) < 0) 248if (!(comparer(d, keys[child - 1]) < 0)) 251keys[i - 1] = keys[child - 1]; 262T t = keys[i + 1]; 265while (j >= 0 && comparer(t, keys[j]) < 0) 267keys[j + 1] = keys[j]; 526T d = keys[i - 1]; 530if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child]))) 535if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1])) 538keys[i - 1] = keys[child - 1]; 640if (comparer.Compare(keys[i], keys[j]) > 0) 642TKey key = keys[i]; 643keys[i] = keys[j]; 646TValue value = values[i]; 647values[i] = values[j]; 657TKey k = keys[i]; 658keys[i] = keys[j]; 661TValue v = values[i]; 662values[i] = values[j]; 738TKey pivot = keys[middle]; 783TKey d = keys[i - 1]; 784TValue dValue = values[i - 1]; 789if (child < n && comparer.Compare(keys[child - 1], keys[child]) < 0) 794if (!(comparer.Compare(d, keys[child - 1]) < 0)) 797keys[i - 1] = keys[child - 1]; 798values[i - 1] = values[child - 1]; 812TKey t = keys[i + 1]; 813TValue tValue = values[i + 1]; 816while (j >= 0 && comparer.Compare(t, keys[j]) < 0) 818keys[j + 1] = keys[j]; 819values[j + 1] = values[j]; 884keys[i] = keys[j]; 887TValue value = values[i]; 888values[i] = values[j]; 898TKey k = keys[i]; 899keys[i] = keys[j]; 902TValue v = values[i]; 903values[i] = values[j]; 966TKey pivot = keys[middle]; 1016TKey d = keys[i - 1]; 1017TValue dValue = values[i - 1]; 1022if (child < n && (keys[child - 1] == null || LessThan(ref keys[child - 1], ref keys[child]))) 1027if (keys[child - 1] == null || !LessThan(ref d, ref keys[child - 1])) 1030keys[i - 1] = keys[child - 1]; 1031values[i - 1] = values[child - 1]; 1043TKey t = keys[i + 1]; 1044TValue tValue = values[i + 1]; 1049keys[j + 1] = keys[j]; 1050values[j + 1] = values[j]; 1119if ((typeof(TKey) == typeof(double) && double.IsNaN((double)(object)keys[i])) || 1120(typeof(TKey) == typeof(float) && float.IsNaN((float)(object)keys[i])) || 1121(typeof(TKey) == typeof(Half) && Half.IsNaN((Half)(object)keys[i]))) 1123TKey temp = keys[left]; 1124keys[left] = keys[i]; 1129TValue tempValue = values[left]; 1130values[left] = values[i];
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
141providersNative[i].Release();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (6)
620rgGCHandle[i] = GCHandle.Alloc(dataRefObj[i], GCHandleType.Pinned); 621if (dataRefObj[i] is string) 623fixed (char* p = (string?)dataRefObj[i]) 624userDataPtr[refObjPosition[i]].Ptr = (ulong)p; 628fixed (byte* p = (byte[]?)dataRefObj[i]) 629userDataPtr[refObjPosition[i]].Ptr = (ulong)p;
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (5)
227if (priorMatches[matchCount - 1] == maxState) 244expressionOffset = (priorMatches[priorMatch++] + 1) / 2; 391while ((priorMatch < previousLength) && (priorMatches[priorMatch] < currentMatches[priorMatchCount])) 412currentState = priorMatches[matchCount - 1];
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (2)
210int n = (int)vectors[buffersOffset].Count; 223Interop.Sys.IOVector current = vectors[buffersOffset];
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
4545if (EqualityComparer<T>.Default.Equals(span[i], oldValue)) 4560if (comparer.Equals(span[i], oldValue))
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
803if (!char.IsWhiteSpace(span[start])) 812if (!char.IsWhiteSpace(span[end]))
src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
458if (buffer[curDigit] != '9')
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (1)
879if (buffer[i] != ('0' + 10))
src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
235destination[i] = choices[randomBytes[i] & mask]; 374T temp = values[i]; 375values[i] = values[j];
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
31publicKeyToken[i] = hash[hash.Length - 1 - i];
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (4)
253object? arg = arguments[i]; 298ByReference.Create(ref copyOfArgs[i]!.GetRawData()) : 329object? arg = arguments[i]; 366object? arg = arguments[i];
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (6)
168ByReference.Create(ref copyOfArgs[i]!.GetRawData()) : 328if (shouldCopyBack[i]) 332Debug.Assert(copyOfParameters[i] != null); 333Debug.Assert(((RuntimeType)copyOfParameters[i]!.GetType()).IsNullableOfT); 334dest![i] = RuntimeMethodHandle.ReboxFromNullable(copyOfParameters[i]); 338dest![i] = copyOfParameters[i];
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (9)
306object? arg = arguments[i]; 351ByReference.Create(ref copyOfArgs[i]!.GetRawData()) : 382object? arg = arguments[i]; 419object? arg = arguments[i]; 446if (shouldCopyBack[i]) 450Debug.Assert(copyOfParameters[i] != null); 451Debug.Assert(((RuntimeType)copyOfParameters[i]!.GetType()).IsNullableOfT); 452dest![i] = RuntimeMethodHandle.ReboxFromNullable(copyOfParameters[i]); 456dest![i] = copyOfParameters[i];
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
871dispatches[i]._thisPtr = (ManagedObjectWrapper*)wrapperMem; 872Span<IntPtr> dispatchVtables = dispatches[i].Vtables; 880dispatchVtables[j] = (index < userDefinedCount) ? userDefined[index].Vtable : runtimeDefinedVtable[index - userDefinedCount];
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
143ReadOnlySpan<char> component = frameworkNameSpan[components[i]];
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
124if (bucketIndexes[i] == bucketIndex)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
3524object? currentContinuation = continuations[i]; 3571object? currentContinuation = continuations[i];
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
266SafeWaitHandle? safeWaitHandle = safeWaitHandles[i];
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
1198uint t = ((uint)(i) < (uint)(left.Length)) ? left[i] : 0; 1200ulong valHi = ((ulong)(t) << 32) | left[i - 1]; 1201uint valLo = (i > 1) ? left[i - 2] : 0; 1206uint valNx = i > 2 ? left[i - 3] : 0;
src\System\RuntimeType.CoreCLR.cs (2)
703if (overrides[methodSlot]) 1318if (usedSlots[slot])
System.Private.CoreLib.Generators (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System.Private.Uri (8)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
449numbers[toIndex--] = numbers[fromIndex];
System\IPv4AddressHelper.cs (1)
45numbers[i].TryFormat(stackSpace.Slice(totalChars), out charsWritten);
System\IPv6AddressHelper.cs (5)
37success = (numbers[i] >> 8).TryFormat(stackSpace.Slice(pos), out charsWritten); 42success = (numbers[i] & 0xFF).TryFormat(stackSpace.Slice(pos), out charsWritten); 47success = (numbers[i + 1] >> 8).TryFormat(stackSpace.Slice(pos), out charsWritten); 52success = (numbers[i + 1] & 0xFF).TryFormat(stackSpace.Slice(pos), out charsWritten); 81success = numbers[i].TryFormat(stackSpace.Slice(pos), out charsWritten, format: "x");
System\Uri.cs (1)
4581char ch = span[i];
System.Private.Windows.Core (22)
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (1)
34_bufferScope[i] = colors[i];
Windows\Win32\System\Com\SAFEARRAY.cs (2)
76int c1 = indices[indicesIndex++]; 90int diff = (indices[indicesIndex++] - bounds[boundIndex].lLbound);
Windows\Win32\System\Variant\VARIANT.cs (19)
332result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 344result[i] = data[i].ToDecimal(); 356result[i] = decimal.FromOACurrency(data[i]); 368result[i] = DateTime.FromOADate(data[i]); 380result[i] = Marshal.PtrToStringUni(data[i]); 393result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 405result[i] = data[i].ToObject(); 486if (++indices[i] <= upper[i]) 491indices[i] = lower[i]; 515int diff = indices[i - 1] - lowerBounds[i - 1]; 764result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 791result[i] = decimal.FromOACurrency(data[i]); 803result[i] = DateTime.FromOADate(data[i]); 815result[i] = data[i].ToDateTime(); 830result[i] = Marshal.PtrToStringUni(data[i]); 842result[i] = Marshal.PtrToStringAnsi(data[i]); 854result[i] = data[i].ToObject();
System.Private.Xml (5)
System\Xml\BinaryXml\SqlUtils.cs (1)
236szResult[iCurChar++] = pszTmp[iDigits];
System\Xml\Xsl\Xslt\XsltLoader.cs (4)
969if (characters[i] == characters[j]) 991CheckError(characters[idx] != format.Characters[idx], /*[XT1290]*/SR.Xslt_DecimalFormatRedefined, _decimalFormatAttributes[3 + idx].name, char.ToString(characters[idx]));
System.Reflection.Metadata (1)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
266attributeValueSpan[parts[i]],
System.Runtime.Numerics (60)
src\libraries\Common\src\System\Number.Formatting.Common.cs (2)
547if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 580if (digPos == thousandsSepPos[thousandsSepCtr] + 1)
src\libraries\Common\src\System\Number.NumberBuffer.cs (2)
71byte digit = Digits[numDigits]; 99byte digit = Digits[i];
System\Number.BigInteger.cs (12)
505Debug.Assert(bits[resultLength] == 0); 514Debug.Assert(bits[resultLength] == 0); 530Debug.Assert(bits[resultLength] == 0); 543ulong p = (ulong)multiplier * bits[i] + carry; 575byte head = bits[cur]; 601byte b = bits[cur--]; 700AppendByte(ref sb, bytes[i]); 805Debug.Assert(base1E9Buffer[iuDst] < TenPowMaxPartial); 808ulong uuRes = NumericsHelpers.MakeUInt64(base1E9Buffer[iuDst], uCarry); 1077Debug.Assert(toExclusive == pow1E9.Length || pow1E9[toExclusive] == 0); 1171while (--curLength >= 0 && powersOfTen[curLength] == 0) ; 1194ulong p = (ulong)multiplier * bits2[i] + carry;
System\Numerics\BigInteger.cs (28)
234while (size > 0 && bits[size - 1] == 0) 554if ((length == 0) || ((int)value[length - 1] >= 0)) 559Debug.Assert((int)value[length - 1] < 0); 1568while (msb > 0 && buffer[msb] == highDWord) 1574bool needExtraByte = (buffer[msb] & 0x80000000) != (highDWord & 0x80000000); 2395uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2396uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 2451uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2452uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 2502uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2503uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 2553zd[i + digitShift] = xd[i]; 2562uint rot = xd[i]; 2620trackSignBit = smallShift == 0 && xd[xd.Length - 1] == 0; 2634zd[i - digitShift] = xd[i]; 2643uint rot = xd[i]; 3337zd[dstIndex] = xd[srcIndex]; 3349zd[dstIndex] = xd[srcIndex]; 3371carry = xd[srcIndex - 1] >> carryShift; 3376uint part = xd[srcIndex]; 3390uint part = xd[srcIndex]; 3492zd[dstIndex] = xd[srcIndex]; 3504zd[dstIndex] = xd[srcIndex]; 3519uint carry = xd[digitShift] << carryShift; 3523uint part = xd[srcIndex]; 3537uint part = xd[srcIndex]; 5350zd[i - digitShift] = xd[i]; 5359uint rot = xd[i];
System\Numerics\BigIntegerCalculator.AddSub.cs (2)
82long digit = left[i] + carry; 158long digit = left[i] + carry;
System\Numerics\BigIntegerCalculator.DivRem.cs (8)
244uint t = (uint)i < (uint)left.Length ? left[i] : 0; 246ulong valHi = ((ulong)t << 32) | left[i - 1]; 247uint valLo = i > 1 ? left[i - 2] : 0; 252uint valNx = i > 2 ? left[i - 3] : 0; 421uint carryTmp = bits[i] >> carryShift; 422bits[i] = bits[i] << sigmaSmall | carry; 502remainder[i] = rt[i] >> sigmaSmall | carry; 503carry = rt[i] << carryShift;
System\Numerics\BigIntegerCalculator.GcdInv.cs (4)
293long xDigit = a * x[i] - b * y[i] + xCarry; 294long yDigit = d * y[i] - c * x[i] + yCarry;
System\Numerics\BigIntegerCalculator.SquMul.cs (1)
398long digit = core[i] + carry;
System\Numerics\NumericsHelpers.cs (1)
152d[offset] = ~d[offset];
System.Security.Cryptography (11)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (1)
164ret[i] ^= part2[i];
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
244int tmp = carry + into[i] + addend[i];
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (2)
543if (dbMask[i] != 0) 551if (dbMask[emLen - hLen - sLen - 2] != 0x01)
System\Security\Cryptography\Base64Transforms.cs (2)
279if (tmpBuffer[len - 2] == padding) 284if (tmpBuffer[len - 1] == padding)
System\Security\Cryptography\RandomNumberGenerator.cs (3)
299T temp = values[i]; 300values[i] = values[j]; 382destination[i] = choices[randomBytes[i] & mask];
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
312_buffer[j] ^= uiSpan[j];
System\Security\Cryptography\XmlKeyHelper.cs (1)
114while (valBuf[start] == 0)
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
244int tmp = carry + into[i] + addend[i];
System.ServiceModel.NetFramingBase (4)
System\ServiceModel\Channels\FramingEncoders.cs (4)
76(EncodedBytes.Span[EncodedBytes.Length / 2] << 8) | 77EncodedBytes.Span[EncodedBytes.Length - 1]; 110if (EncodedBytes.Span[i] != otherBytes.Span[i])
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.Ascii.cs (1)
51uint thisChar = tempBuffer[j];
System.Text.Json (21)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (5)
32if (i == 1 && !char.IsUpper(chars[i])) 40if (i > 0 && hasNext && !char.IsUpper(chars[i + 1])) 43if (chars[i + 1] == ' ') 45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
395Debug.Assert(newDbInts[i] >= locationOffset);
System\Text\Json\Writer\JsonWriterHelper.Date.cs (14)
57if (buffer[maxDateTimeLength - 1] == '0') 58if (buffer[maxDateTimeLength - 2] == '0') 59if (buffer[maxDateTimeLength - 3] == '0') 60if (buffer[maxDateTimeLength - 4] == '0') 61if (buffer[maxDateTimeLength - 5] == '0') 62if (buffer[maxDateTimeLength - 6] == '0') 63if (buffer[maxDateTimeLength - 7] == '0') 91buffer[curIndex] = buffer[maxDateTimeLength]; 92buffer[curIndex + 1] = buffer[maxDateTimeLength + 1]; 93buffer[curIndex + 2] = buffer[maxDateTimeLength + 2]; 94buffer[curIndex + 3] = buffer[maxDateTimeLength + 3]; 95buffer[curIndex + 4] = buffer[maxDateTimeLength + 4]; 96buffer[curIndex + 5] = buffer[maxDateTimeLength + 5]; 102Debug.Assert(buffer[maxDateTimeLength] == 'Z');
System.Text.Json.SourceGeneration (6)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (5)
32if (i == 1 && !char.IsUpper(chars[i])) 40if (i > 0 && hasNext && !char.IsUpper(chars[i + 1])) 43if (chars[i + 1] == ' ') 45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
System.Text.RegularExpressions (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System\Text\RegularExpressions\Regex.Replace.cs (2)
226length += span[i].Length; 233ReadOnlySpan<char> segment = span[i].Span;
System\Text\RegularExpressions\RegexReplacement.cs (1)
268length += span[i];
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
509if (catCodes[i])
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System.Web.HttpUtility (3)
System\Web\Util\HttpEncoder.cs (3)
686if (char.IsHighSurrogate(chars[i])) 688if ((uint)(i + 1) >= (uint)chars.Length || !char.IsLowSurrogate(chars[i + 1])) 698else if (char.IsLowSurrogate(chars[i]))
System.Windows.Forms (26)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
49int.TryParse(s.AsSpan(rgbs[i]), out rgb[i]);
System\Windows\Forms\Rendering\ControlPaint.cs (25)
182PALETTEENTRY entry = entries[i]; 720hdc.DrawLine(hpen, topLineLefts[i], bounds.Y + i, topLineRights[i] + 1, bounds.Y + i); 735graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 756hdc.DrawLine(hpen, topLineLefts[i], bounds.Y + i, topLineRights[i] + 1, bounds.Y + i); 779hdc.DrawLine(hpen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i] + 1); 794graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 815hdc.DrawLine(hpen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i] + 1); 840bottomLineLefts[i], 842bottomLineRights[i] + 1, 860bottomLineLefts[i], 862bottomLineRights[i], 886bottomLineLefts[i], 888bottomLineRights[i] + 1, 915rightLineTops[i], 917rightLineBottoms[i] + 1); 935rightLineTops[i], 937rightLineBottoms[i]); 960rightLineTops[i], 962rightLineBottoms[i] + 1);
System.Windows.Forms.Tests (1)
System\Windows\Forms\MonthCalendarTests.cs (1)
4211uint actualState = boldedDates[currentMonthIndex] & expectedState;
Test.Utilities (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];
Text.Analyzers (18)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (18)
704TValue value = values[i]; 705values[i] = values[j]; 719TValue v = values[i]; 720values[i] = values[j]; 849TValue dValue = values[i - 1]; 863values[i - 1] = values[child - 1]; 878TValue tValue = values[i + 1]; 884values[j + 1] = values[j]; 955TValue value = values[i]; 956values[i] = values[j]; 970TValue v = values[i]; 971values[i] = values[j]; 1099TValue dValue = values[i - 1]; 1113values[i - 1] = values[child - 1]; 1126TValue tValue = values[i + 1]; 1132values[j + 1] = values[j]; 1254TValue tempValue = values[left]; 1255values[left] = values[i];