2909 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 (5)
ILLink.RoslynAnalyzer (12)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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 (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
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)
384purposeLengthsPool[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)
106_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)
106_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)
446pathBuffer[i] = (byte)ch;
Internal\Http3\Http3Stream.cs (1)
1210pathBuffer[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 (31)
Buffers\PooledArrayBufferWriterTests.cs (1)
192span[i] = 42;
Buffers\RefPooledArrayBufferWriterTests.cs (3)
181span[i] = (byte)(i % 256); 211span[i] = (byte)(i % 256); 294span[j] = (byte)((i * 10 + j) % 256);
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)
106_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)
106_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)
106_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.CodeAnalysis (21)
CodeGen\PrivateImplementationDetails.cs (2)
554destination[i++] = hexchar(b >> 4); 555destination[i++] = hexchar(b & 0xF);
CommandLine\CommandLineParser.cs (1)
645lineBuffer[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)
130hashes[i] = checksums[i]; 145checksumsSpan[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 (145)
Computations\Arithmetic.net8.cs (40)
115destination[i] = x[i] % y[i]; 123destination[i] = x[i] % y; 131destination[i] = x % y[i]; 141destination[i] = (x[i] == y[i]); 149destination[i] = (x[i] == y); 157destination[i] = (x[i] != y[i]); 165destination[i] = (x[i] != y); 173destination[i] = (x[i] >= y[i]); 181destination[i] = (x[i] >= y); 189destination[i] = (x[i] <= y[i]); 197destination[i] = (x[i] <= y); 205destination[i] = (x[i] > y[i]); 213destination[i] = (x[i] > y); 221destination[i] = (x[i] < y[i]); 229destination[i] = (x[i] < y); 473destination[i] = (x[i] == y[i]); 481destination[i] = (x[i] == y); 489destination[i] = (x[i] != y[i]); 497destination[i] = (x[i] != y); 505destination[i] = (x[i] >= y[i]); 513destination[i] = (x[i] >= y); 521destination[i] = (x[i] <= y[i]); 529destination[i] = (x[i] <= y); 537destination[i] = (x[i] > y[i]); 545destination[i] = (x[i] > y); 553destination[i] = (x[i] < y[i]); 561destination[i] = (x[i] < y); 574destination[i] = (bool)(x[i] & y[i]); 585destination[i] = (bool)(x[i] & y); 596destination[i] = (bool)(x & y[i]); 607destination[i] = (bool)(x[i] | y[i]); 618destination[i] = (bool)(x[i] | y); 629destination[i] = (bool)(x | y[i]); 640destination[i] = (bool)(x[i] ^ y[i]); 651destination[i] = (bool)(x[i] ^ y); 662destination[i] = (bool)(x ^ y[i]); 671destination[i] = (x[i] == y[i]); 679destination[i] = (x[i] == y); 687destination[i] = (x[i] != y[i]); 695destination[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 (3)
ToolReduction\EmbeddingToolReductionStrategy.cs (3)
255toolRankingInfo.Span[toolIndex] = new AIToolRankingInfo(tool, originalIndex: i); 270ref var info = ref toolInfo.Span[i]; 306ref var info = ref toolInfo.Span[toolInfoIndex];
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\BinaryEmbedding.cs (1)
103utf8[i] = value[i] ? (byte)'1' : (byte)'0';
Microsoft.Extensions.Caching.Hybrid.Tests (1)
TagSetTests.cs (1)
175chars[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)
134destination[offset] = _base64CharactersTable[(hashToConvert[i] & 0xfc) >> 2]; 135destination[offset + 1] = _base64CharactersTable[((hashToConvert[i] & 0x03) << 4) | ((hashToConvert[i + 1] & 0xf0) >> 4)]; 136destination[offset + 2] = _base64CharactersTable[((hashToConvert[i + 1] & 0x0f) << 2) | ((hashToConvert[i + 2] & 0xc0) >> 6)]; 137destination[offset + 3] = _base64CharactersTable[hashToConvert[i + 2] & 0x3f]; 155destination[offset] = _base64CharactersTable[(hashToConvert[iterations] & 0xfc) >> 2]; 156destination[offset + 1] = _base64CharactersTable[(hashToConvert[iterations] & 0x03) << 4]; 157destination[offset + 2] = _base64CharactersTable[64]; 158destination[offset + 3] = _base64CharactersTable[64];
Microsoft.Extensions.DataIngestion (5)
Chunkers\ValueStringBuilder.cs (5)
68_chars[_pos] = '\0'; 87return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
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)
149destinationMany[index++] = SeparatorChar;
Microsoft.Extensions.Identity.Core (8)
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.Extensions.Logging.Abstractions (5)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
Microsoft.Extensions.Logging.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;
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.CpuMath (7)
CpuMathUtils.netcoreapp.cs (7)
175destination[i] = scale * (destination[i] + addend); 212destination[index] += scale * source[i]; 248destination[index] += source[i]; 543v[i] += source[i] * primalUpdate; 545w[i] = Math.Abs(value) > threshold ? (value > 0 ? value - threshold : value + threshold) : 0; 586v[index] += source[i] * primalUpdate; 588w[index] = Math.Abs(value) > threshold ? (value > 0 ? value - threshold : value + threshold) : 0;
Microsoft.ML.Data (140)
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 (3)
662editor.Values[nstr.Id] = nstr.Value; 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)
72bufferEditor.Values[i] = op.inputs[i].op.name.AsMemory(); 420result[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 (87)
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)
1053current[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\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];
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 (7)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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); 1315rglData1[iulData] = unchecked((uint)dwlAccum); // equiv to mod x_lInt32Base 1329rglData1[iulData] = (uint)dwlAccum; 1360rglData1[iulData] = unchecked((uint)dwlAccum); // equiv to mod BaseUI4 1518rgulRes[idRes++] = unchecked((uint)dwlAccum); // & x_ulInt32BaseForMod); // equiv to mod x_lInt32Base 1527rgulRes[idRes++] = (uint)dwlAccum; 1571rgulRes[idRes] = 0; 1599rgulRes[idRes] = 0; 1617rgulRes[idRes] = 0; 2133rguiData[iData] = (uint)dwlAccum; // equivalent to mod x_dwlBaseUI4 2153rguiData[iData] = (uint)dwlAccum; 2184rguiData[iData] = unchecked((uint)dwlAccum); // equivalent to mod x_dwlBaseUI4 2197rguiData[iDataMax] = (uint)dwlAccum; 2249rguiData[iData - 1] = ulQuotientCur; 2475rgulD[i] = rgulS[i]; 2521piulD[iData] = LO(dwlAccum); 2527piulD[iData] = ulCarry; 2559rgulU[idU] = (uint)(dwlAccum / ulD); 2680rgulR[ciulU] = 0; 2724rgulR[iulRwork] = LO(dwlAccum); 2728rgulR[iulRwork] = LO(dwlAccum); 2729rgulQ[iulRindex - ciulD] = QH; 2737rgulQ[iulRindex - ciulD] = QH - 1; 2743rgulR[iulRwork] = LO(dwlAccum); 2745rgulR[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System\Diagnostics\Activity.cs (1)
2039outBytes[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 (6)
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
80dst[prefix.Length] = ' ';
System.Drawing.Common (1)
System\Drawing\Imaging\EncoderParameters.cs (1)
29parameters[i] = Param[i].ToNative();
System.Formats.Asn1 (10)
System\Formats\Asn1\Asn1Tag.cs (1)
339destination[idx] = (byte)segment;
System\Formats\Asn1\AsnCharacterStringEncodings.cs (5)
232bytes[i] = (byte)c; 262chars[i] = (char)b; 303bytes[writeIdx + 1] = (byte)val16; 304bytes[writeIdx] = (byte)(val16 >> 8); 348chars[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 (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System\Formats\Tar\TarHeader.Write.cs (7)
677buffer[FieldLocations.TypeFlag] = (byte)typeFlagChar; 909span[bytesWritten++] = (byte)' '; 911span[bytesWritten++] = (byte)'='; 913span[bytesWritten++] = (byte)'\n'; 1044destination[i] = converted[j]; 1049destination[i] = (byte)'0'; // Leading zero chars 1192digits[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)
598cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeBySpecification] = (byte)_versionMadeBySpecification; 599cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeByCompatibility] = (byte)CurrentZipPlatform;
System.IO.FileSystem.Watcher (5)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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 (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System\Net\Http\Headers\HttpHeaders.cs (2)
1313values[currentIndex] = parser == null || storeValue is InvalidValue ? storeValue.ToString() : parser.ToString(storeValue); 1321values[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 (6)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.Mail (11)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System.Net.NetworkInformation (9)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
System.Net.Primitives (35)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
336numbers[index++] = (ushort)number; 355numbers[index++] = (ushort)number; 396numbers[index++] = (ushort)(ipv4Address >> 16); 397numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 412numbers[index++] = (ushort)number; 435numbers[index++] = (ushort)number; 451numbers[toIndex--] = numbers[fromIndex]; 452numbers[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)
142addressString[pos++] = TChar.CreateTruncating('.'); 144addressString[pos++] = TChar.CreateTruncating('.'); 146addressString[pos++] = TChar.CreateTruncating('.'); 194destination[pos++] = TChar.CreateTruncating(':'); 209destination[pos++] = TChar.CreateTruncating('%'); 239destination[offset++] = TChar.CreateTruncating(':'); 246destination[offset++] = TChar.CreateTruncating(':'); 247destination[offset++] = TChar.CreateTruncating(':'); 256destination[offset++] = TChar.CreateTruncating(':'); 272destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 12)); 275destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 8)); 278destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value >> 4)); 281destination[offset++] = TChar.CreateTruncating(HexConverter.ToCharLower(value));
System.Net.Quic (18)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
336numbers[index++] = (ushort)number; 355numbers[index++] = (ushort)number; 396numbers[index++] = (ushort)(ipv4Address >> 16); 397numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 412numbers[index++] = (ushort)number; 435numbers[index++] = (ushort)number; 451numbers[toIndex--] = numbers[fromIndex]; 452numbers[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 (22)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
494handles[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
336numbers[index++] = (ushort)number; 355numbers[index++] = (ushort)number; 396numbers[index++] = (ushort)(ipv4Address >> 16); 397numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 412numbers[index++] = (ushort)number; 435numbers[index++] = (ushort)number; 451numbers[toIndex--] = numbers[fromIndex]; 452numbers[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 (6)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.WebSockets (1)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
175output[written] = _remainingByte.GetValueOrDefault();
System.Numerics.Tensors (68)
System\Buffers\NRange.cs (3)
77span[pos++] = '.'; 78span[pos++] = '.'; 82span[pos++] = '^';
System\Numerics\Tensors\netcore\Tensor.cs (28)
255ranges[i] = 0..1; 259ranges[i] = ..; 357span[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2)); 376span[i] = T.CreateChecked(random.NextDouble()); 1288newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1289newStrides[i] = tensor.Strides[tensor.Rank - 1 - i]; 1300newLengths[i] = tensor.Lengths[dimensions[i]]; 1301newStrides[i] = tensor.Strides[dimensions[i]]; 1662srcIndexes[i] = NRange.All; 1663dstIndexes[i] = NRange.All; 1668srcIndexes[dimension] = new NRange(i - 1, i); 1669dstIndexes[dimension] = new NRange(tensor.Lengths[dimension] - i, tensor.Lengths[dimension] - i + 1); 1765sliceDims[i] = NRange.All; 1817lengths[index] = tensor.Lengths[i]; 1818strides[index] = tensor.Strides[i]; 1884lengths[index] = tensor.Lengths[i]; 1885strides[index] = tensor.Strides[i]; 1951lengths[index] = tensor.Lengths[i]; 1952strides[index] = tensor.Strides[i]; 2300newLengths[dimension] = 1; 2306newStrides[dimension] = 0; 2312newStrides[dimension] = 0; 2337newLengths[dimension] = 1; 2343newStrides[dimension] = 0; 2349newStrides[dimension] = 0; 2374newLengths[dimension] = 1; 2380newStrides[dimension] = 0; 2386newStrides[dimension] = 0;
System\Numerics\Tensors\netcore\TensorOperation.cs (19)
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); 2003destination[i] = T.Exp(x[i]) / y; 2088destination[i] = (x[i] - y) * (x[i] - y); 2101destination[i] = (x[i] - y[i]) * (x[i] - y[i]); 2122destination[i] = diff * diff; 2275destination[i] = y[i]; 2294destination[i] = y; 2319destination[i] = (left[i] > right); 2327destination[i] = (left[i] > right[i]); 2408destination[i] = (left[i] >= right); 2416destination[i] = (left[i] >= right[i]); 2497destination[i] = (left[i] < right); 2505destination[i] = (left[i] < right[i]); 2586destination[i] = (left[i] <= right); 2594destination[i] = (left[i] <= right[i]);
System\Numerics\Tensors\netcore\TensorShape.cs (18)
130destinationStrides[i] = stride; 176stridesOrder[i] = i; 425nint index = ++indexes[destinationRankIndex]; 442indexes[destinationRankIndex] = 0; 455nint index = ++indexes[rankIndex]; 466indexes[rankIndex] = 0; 490nint index = --indexes[destinationRankIndex]; 507indexes[destinationRankIndex] = lengths[rankIndex]; 520nint index = ++indexes[rankIndex]; 531indexes[rankIndex] = 0; 540ranges[dimension] = new NRange(curRange.Start.Value + 1, curRange.End.Value + 1); 546ranges[i] = 0..1; 553ranges[i - 1] = new NRange(ranges[i - 1].Start.Value + 1, ranges[i - 1].End.Value + 1); 721lengths[i] = array.GetLength(i); 778intermediateLengths[i] = array.GetLength(i); 813intermediateLengths[index] -= offset; 1174intermediateLengths[i] = length; 1175intermediateStrides[i] = stride;
System.Private.CoreLib (304)
LibraryImports.g.cs (2)
1348__nestedTypeNames_native__nativeSpan[__i0] = (global::System.IntPtr)__nestedTypeNames_native__nativeSpan____i0_exactType; 1415__nestedTypeNames_native__nativeSpan[__i0] = (global::System.IntPtr)__nestedTypeNames_native__nativeSpan____i0_exactType;
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (5)
41w[i] = BinaryPrimitives.ReadUInt32BigEndian(source); 50tail[pos++] = 0x80; 53tail[pos++] = 0x00; 62w[i] = BinaryPrimitives.ReadUInt32BigEndian(tail); 180w[i] = BitOperations.RotateLeft(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (5)
875dst[j++] = HexConverter.ToCharUpper(b >> 4); 876dst[j++] = HexConverter.ToCharUpper(b); 880dst[j++] = '-'; 881dst[j++] = HexConverter.ToCharUpper(b >> 4); 882dst[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)
445thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 537intSpan[ints - 1] &= ReverseIfBE((int)mask); 550intSpan[toIndex++] = ReverseIfBE(left | (int)right); 555intSpan[toIndex++] = ReverseIfBE((int)(mask >> shiftCount)); 601intSpan[lastIndex] = ReverseIfBE(left | (int)right); 604intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (80)
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; 1174a[i] = a[j]; 1175a[j] = t; 1185keys[i] = keys[j]; 1186keys[j] = key; 1319keys[i - 1] = keys[child - 1]; 1323keys[i - 1] = d; 1335keys[j + 1] = keys[j]; 1339keys[j + 1] = t; 1377keys[i] = keys[j]; 1378keys[j] = k; 1381values[i] = values[j]; 1382values[j] = v; 1395keys[i] = keys[j]; 1396keys[j] = key; 1399values[i] = values[j]; 1400values[j] = value; 1533keys[i - 1] = keys[child - 1]; 1534values[i - 1] = values[child - 1]; 1538keys[i - 1] = d; 1539values[i - 1] = dValue; 1554keys[j + 1] = keys[j]; 1555values[j + 1] = values[j]; 1559keys[j + 1] = t; 1560values[j + 1] = tValue;
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)
533dataRefObj[refObjIndex] = supportedRefObj; 534refObjPosition[refObjIndex] = idx; 563dataRefObj[refObjIndex] = null; 564refObjPosition[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)
736normalizedName[i] = (char)(((int)name[i]) + 0x20); 741normalizedName[i] = name[i]; 756normalizedName[i] = (char)(((int)name[i]) - 0x20); 761normalizedName[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)
1504dest[offset + 0] = TChar.CastFrom('0'); 1505dest[offset + 1] = TChar.CastFrom('x'); 1506dest[offset + 2] = TChar.CastFrom(HexConverter.ToCharLower(val >> 4)); 1507dest[offset + 3] = TChar.CastFrom(HexConverter.ToCharLower(val)); 1510dest[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)
4573span[i] = newValue; 4588span[i] = newValue; 4768destination[i] = EqualityComparer<T>.Default.Equals(source[i], oldValue) ? newValue : source[i]; 4782destination[i] = comparer.Equals(source[i], oldValue) ? newValue : source[i]; 4833span[pos] = newValue; 4882span[pos] = newValue; 5341destinationMinusOne[rangeCount] = startInclusive..endExclusive; 5365destination[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)
41number.Digits[length] = (byte)('\0'); 344buffer[curDigit] = (byte)('0' + outputDigit); 379buffer[curDigit] = (byte)('0' + outputDigit); 407buffer[curDigit] = (byte)('0' + outputDigit); 440buffer[curDigit] = (byte)('0' + outputDigit); 453buffer[curDigit] = (byte)('1'); 466buffer[curDigit]++; 476buffer[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)]; 374values[i] = values[j]; 375values[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 (8)
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; 399dest[i] = RuntimeMethodHandle.ReboxFromNullable(copyOfParameters[i]); 403dest[i] = copyOfParameters[i];
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 (8)
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; 452dest[i] = RuntimeMethodHandle.ReboxFromNullable(copyOfParameters[i]); 456dest[i] = copyOfParameters[i];
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)
844runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIUnknownVftblPtr; 849runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIReferenceTrackerTargetVftblPtr; 853runtimeDefinedVtable[runtimeDefinedCount++] = TaggedImplVftblPtr; 891dispatchVtables[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\BitVector256.cs (2)
59chars[size] = (char)i; 74bytes[size] = (byte)i;
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)
1000scratch[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)
3535continuations[i] = null; // so that we can skip this later 3545continuations[i] = null; 3577continuations[i] = null; // to enable free'ing up memory earlier
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
261safeWaitHandles[i] = safeWaitHandle; 262unsafeWaitHandles[i] = safeWaitHandle.DangerousGetHandle(); 275safeWaitHandles[i] = null; 394unsafeWaitHandles[i] = safeWaitHandles[i].DangerousGetHandle();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Cache.cs (1)
227offsets[encountered] = transition.Offset + _baseUtcOffset;
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)
716overrides[methodSlot] = true; 1364usedSlots[slot] = true;
src\System\StubHelpers.cs (1)
488native[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 (8)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
System\Xml\XmlConverter.cs (2)
1106chars[count++] = c; 1137chars[count++] = c;
System.Private.Uri (40)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (8)
336numbers[index++] = (ushort)number; 355numbers[index++] = (ushort)number; 396numbers[index++] = (ushort)(ipv4Address >> 16); 397numbers[index++] = (ushort)(ipv4Address & 0xFFFF); 412numbers[index++] = (ushort)number; 435numbers[index++] = (ushort)number; 451numbers[toIndex--] = numbers[fromIndex]; 452numbers[fromIndex--] = 0;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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\IPv4AddressHelper.cs (1)
37stackSpace[periodPos] = '.';
System\IPv6AddressHelper.cs (8)
34stackSpace[pos++] = ':'; 41stackSpace[pos++] = '.'; 46stackSpace[pos++] = '.'; 51stackSpace[pos++] = '.'; 62stackSpace[pos++] = ':'; 68stackSpace[pos++] = ':'; 79stackSpace[pos++] = ':'; 86stackSpace[pos++] = ']';
System\Uri.cs (2)
4424chars[writeOffset++] = decoded; 4430chars[writeOffset++] = chars[i];
System\UriHelper.cs (1)
609buffer[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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 (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
System.Runtime.Numerics (66)
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_1.cs (6)
81_chars[Length] = default; 91return ref _chars[index]; 126_chars[Length] = default; 191chars[pos] = c; 211_chars[pos] = text[0]; 242dst[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)
374uint.TryParse(intDigits.Slice(0, PowersOf1e9.MaxPartialDigits), out base1E9[di]); 512bits[resultLength++] = carry; 521bits[resultLength++] = carry; 537bits[resultLength++] = carry; 549bits[i] = (uint)p; 608chars[charsPos++] = TChar.CastFrom(hexValues[b >> 4]); 609chars[charsPos++] = TChar.CastFrom(hexValues[b & 0xF]); 1082base1E9[iuDst] = (uint)rem; 1086(uCarry, base1E9Buffer[base1E9Written++]) = Math.DivRem(uCarry, PowersOf1e9.TenPowMaxPartial); 1088base1E9Buffer[base1E9Written++] = uCarry; 1370bits2[i] = (uint)p; 1376bits[omittedLength + curLength] = carry; 1422out destination[i]))
System\Numerics\BigInteger.cs (12)
1525destination[curByte] = unchecked((byte)highDword); 1529destination[curByte] = unchecked((byte)(highDword >> 8)); 1533destination[curByte] = unchecked((byte)(highDword >> 16)); 1537destination[curByte] = unchecked((byte)(highDword >> 24)); 1550destination[curByte] = highByte; 1601buffer[buffer.Length - 1] = highDWord; 2438z[i] = xu & yu; 2494z[i] = xu | yu; 2545z[i] = xu ^ yu; 2696++zd[leastSignificant]; 3337zd[leadingZeroCount] = (uint)(-(int)zd[leadingZeroCount]); 5178zd[negLeadingZeroCount] = (uint)(-(int)zd[negLeadingZeroCount]);
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.ShiftRot.cs (4)
154bits[i] = value; 164bits[i] = value; 223bits[i] = value; 233bits[i] = value;
System\Numerics\BigIntegerCalculator.SquMul.cs (8)
203bits[i] = unchecked((uint)digits); 206bits[i] = (uint)carry; 831bits[i] = quo; 842bits[i] = oneThird + quo; 852bits[i] = twoThirds + quo; 896core[i] = (uint)digit; 998bits[i] = value; 1008bits[i] = value;
System\Numerics\NumericsHelpers.cs (2)
119d[i] = (uint)(-(int)d[i]); 167d[offset] = ~d[offset];
System.Security.Cryptography (31)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
54dest[password.Length] = '\0';
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
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 (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[i] = c;
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 (7)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
245into[i] = (byte)tmp;
System.Security.Cryptography.Xml (6)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[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 (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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 (464)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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)
416destination[written++] = JsonConstants.Quote; 419destination[written++] = JsonConstants.LineFeed; 422destination[written++] = JsonConstants.CarriageReturn; 425destination[written++] = JsonConstants.BackSlash; 428destination[written++] = JsonConstants.Slash; 431destination[written++] = JsonConstants.Tab; 434destination[written++] = JsonConstants.BackSpace; 437destination[written++] = JsonConstants.FormFeed; 522destination[written++] = source[idx++]; 525destination[written++] = source[idx++]; 526destination[written++] = source[idx++]; 529destination[written++] = source[idx++]; 530destination[written++] = source[idx++]; 531destination[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 (4)
25buffer[i++] = indentByte; 26buffer[i++] = indentByte; 31buffer[i] = indentByte; 322quotedValue[quotedValue.Length - 1] = JsonConstants.Quote;
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 (8)
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\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
151destination[charsWritten++] = value;
System.Text.RegularExpressions (38)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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)
447span[FlagsIndex] = (char)0x1; 448span[SetLengthIndex] = (char)(state.set.Length - 2); 449span[CategoryLengthIndex] = (char)state.category.Length; 455span[FlagsIndex] = '\0'; 456span[SetLengthIndex] = (char)state.set.Length; 457span[CategoryLengthIndex] = (char)state.category.Length; 548categories[numCategories++] = (UnicodeCategory)(c - 1); 564categories[numCategories++] = (UnicodeCategory)(-1 - c); 587categories[numCategories++] = (UnicodeCategory)(c - 1); 608categories[numCategories++] = (UnicodeCategory)(-1 - c); 740chars[count++] = (char)c; 1548span[FlagsIndex] = (char)0; 1549span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1550span[CategoryLengthIndex] = (char)0; 1554span[i++] = c; 1557span[i++] = (char)(c + 1); 1605headerSpan[FlagsIndex] = (char)(_negate ? 1 : 0); 1606headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1607headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1944invertedGroup[i] = (char)-(short)group[i];
System\Text\RegularExpressions\RegexCompiler.cs (1)
5986dest[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)
5449dest[i >> 4] |= (char)(1 << (i & 0xF));
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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)
447span[FlagsIndex] = (char)0x1; 448span[SetLengthIndex] = (char)(state.set.Length - 2); 449span[CategoryLengthIndex] = (char)state.category.Length; 455span[FlagsIndex] = '\0'; 456span[SetLengthIndex] = (char)state.set.Length; 457span[CategoryLengthIndex] = (char)state.category.Length; 548categories[numCategories++] = (UnicodeCategory)(c - 1); 564categories[numCategories++] = (UnicodeCategory)(-1 - c); 587categories[numCategories++] = (UnicodeCategory)(c - 1); 608categories[numCategories++] = (UnicodeCategory)(-1 - c); 740chars[count++] = (char)c; 1568span[FlagsIndex] = (char)0; 1569span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1570span[CategoryLengthIndex] = (char)0; 1575span[i++] = c; 1578span[i++] = (char)(c + 1); 1605headerSpan[FlagsIndex] = (char)(_negate ? 1 : 0); 1606headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1607headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1944invertedGroup[i] = (char)-(short)group[i];
System.Web.HttpUtility (16)
src\libraries\Common\src\System\HexConverter.cs (6)
80buffer[startingIndex + 1] = (byte)packedResult; 81buffer[startingIndex] = (byte)(packedResult >> 8); 90buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 91buffer[startingIndex] = (char)(packedResult >> 8); 483destination[j++] = (byte)((byteHi << 4) | byteLo); 518destination[j++] = (byte)((byteHi << 4) | byteLo);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
63_chars[_pos] = '\0'; 82return ref _chars[index]; 144chars[pos] = c; 164_chars[pos] = s[0]; 199dst[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)
356monthDayStates[currentMonthIndex] |= 1U << currentDate.Day - 1; 1096boldDates[monthIndex] |= (0x00000001 << (date.Day - 1)); 1104boldDates[i] |= _monthsOfYear[startMonth % MonthsInYear] | _datesToBoldMonthly;
System\Windows\Forms\Rendering\ControlPaint.cs (17)
211colors[i] = new RGBQUAD 657topLineLefts[i] = bounds.X + leftOffset; 658topLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 662leftLineTops[leftOffset] = bounds.Y + i + 1; 667rightLineTops[rightOffset] = bounds.Y + i; 673leftLineTops[j] = bounds.Y + i + 1; 678rightLineTops[j] = bounds.Y + i; 685leftLineTops[i] = bounds.Y; 690rightLineTops[i] = bounds.Y; 702bottomLineLefts[i] = bounds.X + leftOffset; 703bottomLineRights[i] = bounds.X + bounds.Width - rightOffset - 1; 707leftLineBottoms[leftOffset] = bounds.Y + bounds.Height - i - 1; 712rightLineBottoms[rightOffset] = bounds.Y + bounds.Height - i - 1; 718leftLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 723rightLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 730leftLineBottoms[i] = bounds.Y + bounds.Height - 1; 735rightLineBottoms[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]);
1111 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)
406index += 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 (18)
RequestProcessing\Response.cs (11)
547unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].NameLength = checked((ushort)bytesLength); 548unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].pName = (PCSTR)bytes; 553unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].RawValueLength = checked((ushort)bytesLength); 554unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].pRawValue = (PCSTR)bytes; 562knownHeaders[lookup].RawValueLength = checked((ushort)bytesLength); 563knownHeaders[lookup].pRawValue = (PCSTR)bytes; 574knownHeaderInfo[_nativeResponse.ResponseInfoCount].Type = HTTP_RESPONSE_INFO_TYPE.HttpResponseInfoTypeMultipleKnownHeaders; 575knownHeaderInfo[_nativeResponse.ResponseInfoCount].Length = (uint)sizeof(HTTP_MULTIPLE_KNOWN_HEADERS); 592nativeHeaderValues[header->KnownHeaderCount].RawValueLength = checked((ushort)bytesLength); 593nativeHeaderValues[header->KnownHeaderCount].pRawValue = (PCSTR)bytes; 597knownHeaderInfo[_nativeResponse.ResponseInfoCount].pInfo = header;
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.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.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 (10)
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;
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.Extensions.Logging.Generators (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
1130bEditor.Indices[i] = a.GetIndices()[bEditor.Indices[i]];
Microsoft.ML.CpuMath (3)
CpuMathUtils.netcoreapp.cs (3)
175destination[i] = scale * (destination[i] + addend); 544float value = v[i]; 587float value = v[index];
Microsoft.ML.Data (30)
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 (2)
246var val = values[i]; 247var ind = indices[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 (32)
Model\BPETokenizer.cs (4)
1462charsConsumed = charsConsumed >= textSpan.Length ? text.Length : mapping[charsConsumed]; 1483charsConsumed = charsConsumed >= textSpan.Length ? text.Length : mapping[charsConsumed]; 1543textIndex = textIndex >= textSpan.Length ? text.Length : mapping[textIndex]; 1565textIndex = 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;
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)
887labelWriter.WriteByte(labelsSpan[index]); 893featuresWriter.WriteByte(featureSpan[index]);
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]; 1311dwlAccum += rglData1[iulData]; 1313dwlAccum += rglData2[iulData]; 1356dwlAccum += rglData1[iulData]; 1358dwlAccum -= rglData2[iulData]; 1361if (rglData1[iulData] != 0) 1508dwlNextAccum = dwlAccum + rgulRes[idRes]; 1530for (; (rgulRes[idRes] == 0) && (idRes > 0); idRes--) 2132dwlAccum += rguiData[iData]; 2177ulong ulTemp = rguiData[iData]; 2245dwlAccum = (dwlAccum << 32) + rguiData[iData - 1]; // dwlA*x_dwlBaseUI4 + rglData 2518ulong ulTemp = piulD[iData]; 2558dwlAccum = (((ulong)ulCarry) << 32) + rgulU[idU]; 2560ulCarry = (uint)(dwlAccum - rgulU[idU] * ulD); // (ULONG) (dwlAccum % iulD) 2676ulDHigh = rgulD[ciulD - 1]; 2686ulDHigh = rgulD[ciulD - 1]; 2689ulDSecond = rgulD[ciulD - 2]; 2699dwlAccum = DWL(rgulR[iulRindex - 1], rgulR[iulRindex]); 2700if (ulDHigh == rgulR[iulRindex]) 2707while (ulDSecond * ulTemp > DWL(rgulR[iulRindex - 2], RH)) 2720ulong ulTemp2 = rgulD[iulDindex]; 2722dwlAccum += (ulong)rgulR[iulRwork] - LO(dwlMulAccum); 2727dwlAccum += rgulR[iulRwork] - dwlMulAccum; 2741dwlAccum = 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.Drawing.Common (13)
System\Drawing\BufferedGraphicsContext.cs (4)
292rgbQuads[i].rgbRed = paletteEntries[i].peRed; 293rgbQuads[i].rgbGreen = paletteEntries[i].peGreen; 294rgbQuads[i].rgbBlue = paletteEntries[i].peBlue; 295rgbQuads[i].rgbReserved = 0;
System\Drawing\Imaging\EncoderParameters.cs (4)
47new Encoder(nativeParameters[i].Guid), 48(int)nativeParameters[i].NumberOfValues, 49(EncoderParameterValueType)nativeParameters[i].Type, 50(nint)nativeParameters[i].Value);
System\Drawing\Printing\PrinterSettings.cs (5)
885(PaperKind)kinds[i], 887PrinterUnitConvert.Convert(sizes[i].Width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display), 888PrinterUnitConvert.Convert(sizes[i].Height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display)); 931(PaperSourceKind)kinds[i], 974Point resolution = resolutions[i];
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)
1044destination[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)
451numbers[toIndex--] = numbers[fromIndex];
System\Net\IPAddressParser.cs (1)
192if (destination[pos - 1] != TChar.CreateTruncating(':'))
System.Net.Quic (1)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
451numbers[toIndex--] = numbers[fromIndex];
System.Net.Security (1)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
451numbers[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)
186int strideIndex = stridesOrder[i]; 194nint sortedStride = destinationStrides[i]; 539NRange curRange = ranges[dimension]; 544if (ranges[i].Start.Value >= lengths[i]) 553ranges[i - 1] = new NRange(ranges[i - 1].Start.Value + 1, ranges[i - 1].End.Value + 1);
System.Private.CoreLib (185)
LibraryImports.g.cs (2)
1346byte* __nestedTypeNames_native__nativeSpan____i0_exactType = (byte*)__nestedTypeNames_native__nativeSpan[__i0]; 1413ushort* __nestedTypeNames_native__nativeSpan____i0_exactType = (ushort*)__nestedTypeNames_native__nativeSpan[__i0];
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\Common\src\System\Sha1ForNonSecretPurposes.cs (9)
70BinaryPrimitives.WriteUInt32BigEndian(destination, w[i]); 180w[i] = BitOperations.RotateLeft(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1); 193uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 200uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 207uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp; 214uint temp = BitOperations.RotateLeft(a, 5) + f + e + k + w[i]; e = d; d = c; c = BitOperations.RotateLeft(b, 30); b = a; a = temp;
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)
445thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 548uint right = (uint)ReverseIfBE(intSpan[fromIndex]) >> shiftCount; 554mask &= (uint)ReverseIfBE(intSpan[fromIndex]); 599int left = ReverseIfBE(intSpan[fromindex]) << shiftCount; 604intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (105)
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]; 1173T t = a[i]; 1174a[i] = a[j]; 1182if (comparer.Compare(keys[i], keys[j]) > 0) 1184T key = keys[i]; 1185keys[i] = keys[j]; 1262T pivot = keys[middle]; 1307T d = keys[i - 1]; 1311if (child < n && comparer.Compare(keys[child - 1], keys[child]) < 0) 1316if (!(comparer.Compare(d, keys[child - 1]) < 0)) 1319keys[i - 1] = keys[child - 1]; 1330T t = keys[i + 1]; 1333while (j >= 0 && comparer.Compare(t, keys[j]) < 0) 1335keys[j + 1] = keys[j]; 1376TKey k = keys[i]; 1377keys[i] = keys[j]; 1380TValue v = values[i]; 1381values[i] = values[j]; 1392if (comparer.Compare(keys[i], keys[j]) > 0) 1394TKey key = keys[i]; 1395keys[i] = keys[j]; 1398TValue value = values[i]; 1399values[i] = values[j]; 1475TKey pivot = keys[middle]; 1519TKey d = keys[i - 1]; 1520TValue dValue = values[i - 1]; 1525if (child < n && comparer.Compare(keys[child - 1], keys[child]) < 0) 1530if (!(comparer.Compare(d, keys[child - 1]) < 0)) 1533keys[i - 1] = keys[child - 1]; 1534values[i - 1] = values[child - 1]; 1548TKey t = keys[i + 1]; 1549TValue tValue = values[i + 1]; 1552while (j >= 0 && comparer.Compare(t, keys[j]) < 0) 1554keys[j + 1] = keys[j]; 1555values[j + 1] = values[j];
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)
621rgGCHandle[i] = GCHandle.Alloc(dataRefObj[i], GCHandleType.Pinned); 622if (dataRefObj[i] is string) 624fixed (char* p = (string?)dataRefObj[i]) 625userDataPtr[refObjPosition[i]].Ptr = (ulong)p; 629fixed (byte* p = (byte[]?)dataRefObj[i]) 630userDataPtr[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)
4571if (EqualityComparer<T>.Default.Equals(span[i], oldValue)) 4586if (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)
462if (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]; 373T temp = values[i]; 374values[i] = values[j];
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
27publicKeyToken[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)
882dispatches[i]._thisPtr = (ManagedObjectWrapper*)wrapperMem; 883Span<IntPtr> dispatchVtables = dispatches[i].Vtables; 891dispatchVtables[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)
3525object? currentContinuation = continuations[i]; 3572object? currentContinuation = continuations[i];
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
269SafeWaitHandle? 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)
713if (overrides[methodSlot]) 1361if (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 (12)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
451numbers[toIndex--] = numbers[fromIndex];
System\IPv4AddressHelper.cs (1)
35numbers[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 (4)
4418if (chars[i] == '%' && (uint)(i + 2) < (uint)chars.Length) 4420char decoded = UriHelper.DecodeHexChars(chars[i + 1], chars[i + 2]); 4430chars[writeOffset++] = chars[i];
System\UriHelper.cs (1)
641char 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 (59)
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)
510Debug.Assert(bits[resultLength] == 0); 519Debug.Assert(bits[resultLength] == 0); 535Debug.Assert(bits[resultLength] == 0); 548ulong p = (ulong)multiplier * bits[i] + carry; 581byte head = bits[cur]; 607byte b = bits[cur--]; 708AppendByte(ref sb, bytes[i]); 1076Debug.Assert(base1E9[iuDst] < PowersOf1e9.TenPowMaxPartial); 1079ulong uuRes = NumericsHelpers.MakeUInt64(base1E9[iuDst], uCarry); 1233Debug.Assert(toExclusive == pow1E9.Length || pow1E9[toExclusive] == 0); 1348while (--curLength >= 0 && powersOfTen[curLength] == 0) ; 1369ulong p = (ulong)multiplier * bits2[i] + carry;
System\Numerics\BigInteger.cs (13)
234while (size > 0 && bits[size - 1] == 0) 558if ((length == 0) || ((int)value[length - 1] >= 0)) 563Debug.Assert((int)value[length - 1] < 0); 1588while (msb > 0 && buffer[msb] == highDWord) 1594bool needExtraByte = (buffer[msb] & 0x80000000) != (highDWord & 0x80000000); 2436uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2437uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 2492uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2493uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 2543uint xu = ((uint)i < (uint)x.Length) ? x[i] : xExtend; 2544uint yu = ((uint)i < (uint)y.Length) ? y[i] : yExtend; 3337zd[leadingZeroCount] = (uint)(-(int)zd[leadingZeroCount]); 5178zd[negLeadingZeroCount] = (uint)(-(int)zd[negLeadingZeroCount]);
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.ShiftRot.cs (8)
152uint value = carry2 | bits[i] << shift; 153carry2 = bits[i] >> back; 162uint value = carry | bits[i] << shift; 163carry = bits[i] >> back; 221uint value = carry2 | bits[i] >> shift; 222carry2 = bits[i] << back; 231uint value = carry | bits[i] >> shift; 232carry = bits[i] << back;
System\Numerics\BigIntegerCalculator.SquMul.cs (6)
825(uint quo, uint rem) = Math.DivRem(bits[i], 3); 895long digit = core[i] + carry; 996uint value = carry | bits[i] << 1; 997carry = bits[i] >> 31; 1006uint value = carry | bits[i] >> 1; 1007carry = bits[i] << 31;
System\Numerics\NumericsHelpers.cs (2)
119d[i] = (uint)(-(int)d[i]); 167d[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 (7)
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]);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), 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)
210PALETTEENTRY entry = entries[i]; 755hdc.DrawLine(hpen, topLineLefts[i], bounds.Y + i, topLineRights[i] + 1, bounds.Y + i); 770graphics.DrawLine(pen, topLineLefts[i], bounds.Y + i, topLineRights[i], bounds.Y + i); 791hdc.DrawLine(hpen, topLineLefts[i], bounds.Y + i, topLineRights[i] + 1, bounds.Y + i); 814hdc.DrawLine(hpen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i] + 1); 829graphics.DrawLine(pen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i]); 850hdc.DrawLine(hpen, bounds.X + i, leftLineTops[i], bounds.X + i, leftLineBottoms[i] + 1); 875bottomLineLefts[i], 877bottomLineRights[i] + 1, 895bottomLineLefts[i], 897bottomLineRights[i], 921bottomLineLefts[i], 923bottomLineRights[i] + 1, 950rightLineTops[i], 952rightLineBottoms[i] + 1); 970rightLineTops[i], 972rightLineBottoms[i]); 995rightLineTops[i], 997rightLineBottoms[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];