3171 writes to
aspire (1)
src\Shared\CircularBuffer.cs (1)
127data[internalIndex] = item;
Aspire.Dashboard (3)
Otlp\Model\OtlpHelpers.cs (2)
214buffer[startingIndex + 1] = (char)(packedResult & 0xFF); 215buffer[startingIndex] = (char)(packedResult >> 8);
src\Shared\CircularBuffer.cs (1)
127data[internalIndex] = item;
Aspire.Hosting (2)
src\Shared\CircularBuffer.cs (1)
127data[internalIndex] = item;
VolumeNameGenerator.cs (1)
48s[i] = IsValidChar(i, c) ? c : '_';
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
3228buffer[index++] = char.ToLowerInvariant(c);
GenerateDocumentationAndConfigFiles (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
ILCompiler.Compiler (32)
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
493padding[i] = (byte)(LF_PAD0 + paddingLength - i);
Compiler\ObjectWriter\MachObjectWriter.Aot.cs (4)
174registerOffset[i] -= spOffset; 186registerOffset[dwarfReg - REG_DWARF_X19 + REG_IDX_X19] = cfiOffset; 190registerOffset[dwarfReg - REG_DWARF_D8 + REG_IDX_D8] = cfiOffset; 211registerOffset[i] += cfiOffset;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
110rest[i] = (byte)_types[i];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
797buffer[sliceIndex + 2] = (byte)StorageClass; 798buffer[sliceIndex + 3] = NumberOfAuxiliaryRecords;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (6)
38buffer[pos++] = (byte)((value & 0x7F) | ((value >= 0x80) ? 0x80u : 0)); 74buffer[pos++] = b; 90bytes[actualSize - 1] |= 0x80; 92bytes[bytes.Length - 1] = 0x00; 102bytes[actualSize - 1] |= 0x80; 104bytes[bytes.Length - 1] = padValue;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (2)
127buffer[size - 1] = 0; 137buffer[size - 1] = 0;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (4)
98(input[l], input[i]) = (input[i], input[l]); 104(input[h], input[i]) = (input[i], input[h]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (4)
226buffer[pos++] = 0x0B; // end opcode 301buffer[i] = new Relocation(r.RelocType, r.Offset + offset, r.Target); 743buffer[pos++] = (byte)absheaptype; 771buffer[pos++] = (byte)BlockType;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (3)
118buffer[pos++] = (byte)0x70; // element type: funcref 119buffer[pos++] = (byte)0; // table limits: flags (0 = min-only, 1 = min+max) 156buffer[pos++] = (byte)_limitType;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
ILCompiler.ReadyToRun (25)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
110rest[i] = (byte)_types[i];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
797buffer[sliceIndex + 2] = (byte)StorageClass; 798buffer[sliceIndex + 3] = NumberOfAuxiliaryRecords;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (6)
38buffer[pos++] = (byte)((value & 0x7F) | ((value >= 0x80) ? 0x80u : 0)); 74buffer[pos++] = b; 90bytes[actualSize - 1] |= 0x80; 92bytes[bytes.Length - 1] = 0x00; 102bytes[actualSize - 1] |= 0x80; 104bytes[bytes.Length - 1] = padValue;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (2)
127buffer[size - 1] = 0; 137buffer[size - 1] = 0;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (4)
98(input[l], input[i]) = (input[i], input[l]); 104(input[h], input[i]) = (input[i], input[h]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (4)
226buffer[pos++] = 0x0B; // end opcode 301buffer[i] = new Relocation(r.RelocType, r.Offset + offset, r.Target); 743buffer[pos++] = (byte)absheaptype; 771buffer[pos++] = (byte)BlockType;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmNative.cs (3)
118buffer[pos++] = (byte)0x70; // element type: funcref 119buffer[pos++] = (byte)0; // table limits: flags (0 = min-only, 1 = min+max) 156buffer[pos++] = (byte)_limitType;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
4019lowering.LoweredElements[index] = (CorInfoType)((int)CorInfoType.CORINFO_TYPE_BYTE + sizeShift * 2);
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (2)
240lowering.LoweredElements[i] = loweredTypes[i].type; 241lowering.Offsets[i] = (uint)loweredTypes[i].offset;
ILCompiler.RyuJit (3)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
4019lowering.LoweredElements[index] = (CorInfoType)((int)CorInfoType.CORINFO_TYPE_BYTE + sizeShift * 2);
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (2)
240lowering.LoweredElements[i] = loweredTypes[i].type; 241lowering.Offsets[i] = (uint)loweredTypes[i].offset;
ILCompiler.TypeSystem (10)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\ILStackHelper.cs (5)
44stackHeights[region.HandlerOffset] = 1; 48stackHeights[region.FilterOffset] = 1; 49stackHeights[region.HandlerOffset] = 1; 73stackHeights[currentOffset] = stackHeight; 239stackHeights[target] = stackHeight;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
illink (5)
ILLink.RoslynAnalyzer (12)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
270NumberStyles.None, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
Microsoft.AspNetCore.Antiforgery (6)
Internal\DefaultAntiforgeryTokenSerializer.cs (4)
226tokenBytes[offset++] = TokenVersion; 229tokenBytes[offset++] = token.IsCookieToken ? (byte)1 : (byte)0; 235tokenBytes[offset++] = 1; // isClaimsBased 241tokenBytes[offset++] = 0; // isClaimsBased
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
42target[index++] = (byte)(uValue | ~0x7Fu); 46target[index++] = (byte)uValue;
Microsoft.AspNetCore.Components (11)
NavigationManagerExtensions.cs (1)
820chars[position++] = '#';
src\aspnetcore\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)
139componentIdsInDepthOrder[i] = new(componentId, GetComponentDepth(componentId));
Microsoft.AspNetCore.Components.Server (2)
Circuits\ServerComponentDeserializer.cs (1)
320seenSsrComponentIds[currentSsrComponentIdIndex++] = operation.SsrComponentId;
src\aspnetcore\src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.DataProtection (7)
KeyManagement\KeyRingBasedDataProtector.cs (1)
383purposeLengthsPool[i] = purposeLength;
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (4)
112prfInput[prfInput.Length - 4] = (byte)(outputSizeInBits >> 24); 113prfInput[prfInput.Length - 3] = (byte)(outputSizeInBits >> 16); 114prfInput[prfInput.Length - 2] = (byte)(outputSizeInBits >> 8); 115prfInput[prfInput.Length - 1] = (byte)(outputSizeInBits);
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
42target[index++] = (byte)(uValue | ~0x7Fu); 46target[index++] = (byte)uValue;
Microsoft.AspNetCore.Http.Abstractions (12)
src\aspnetcore\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\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
Microsoft.AspNetCore.Http.Connections.Common (1)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
106_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.Http.Extensions (10)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
179computedPrefix[charsWritten + 1] = ']';
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\aspnetcore\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\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\aspnetcore\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.Mvc.Core (2)
Formatters\TextOutputFormatter.cs (2)
295indices[j] = indices[j - 1]; 299indices[j] = i;
Microsoft.AspNetCore.Mvc.Razor (2)
ViewPath.cs (2)
31span[spanIndex++] = '/'; 36span[spanIndex++] = ch == '\\' ? '/' : ch;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\aspnetcore\src\Mvc\Mvc.Razor\src\ViewPath.cs (2)
31span[spanIndex++] = '/'; 36span[spanIndex++] = ch == '\\' ? '/' : ch;
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
106_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.Razor.Utilities.Shared (12)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\EnumerableExtensions.cs (2)
233destination[index++] = item; 244destination[index++] = item;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\HashSetExtensions.cs (1)
49destination[index++] = item;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\MemoryBuilder`1.cs (4)
71return ref _memory.Span[index]; 86memory.Span[index] = item; 103memory.Span[index] = source[0]; 118_memory.Span[index] = item;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (1)
1188destination[i] = list[i];
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Utilities\SortHelper`1.cs (4)
87keys[i] = new(Index: i, currentKey); 116keys[i] = new(Index: i, currentKey); 161keys[i] = new(Index: i, currentKey); 191keys[i] = new(Index: i, currentKey);
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.Server.HttpSys (18)
RequestProcessing\ResponseBody.cs (4)
238SetDataChunk(dataChunks, ref currentChunk, chunkHeaderBuffer, out pins[pinsIndex++]); 243SetDataChunk(dataChunks, ref currentChunk, data, out pins[pinsIndex++]); 258_requestContext.Response.SerializeTrailers(ref allocator, out dataChunks[currentChunk++]); 283ref var chunk = ref chunks[chunkIndex++];
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
539destination[index] = headerName;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
286observedHeaders[observedHeadersCount++] = GetHeaderKeyName(header);
src\aspnetcore\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\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
Microsoft.AspNetCore.Server.IIS (14)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
539destination[index] = headerName;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
286observedHeaders[observedHeadersCount++] = GetHeaderKeyName(header);
src\aspnetcore\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\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\aspnetcore\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)
456pathBuffer[i] = (byte)ch;
Internal\Http3\Http3Stream.cs (1)
1283pathBuffer[i] = (byte)ch;
Middleware\Internal\LoggingStream.cs (3)
182charBuilder[charBuilderIndex++] = '.'; 186charBuilder[charBuilderIndex++] = bufferChar; 203charBuilder[charBuilderIndex++] = ' ';
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (3)
59else if (MemoryMarshal.CreateSpan(ref src[nextIndex], 2).StartsWith(dotSlash)) 87src[writtenLength++] = ByteSlash; 117src[writtenLength++] = ByteSlash;
src\aspnetcore\src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\aspnetcore\src\Shared\runtime\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
src\aspnetcore\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.Transport.DirectTls (1)
TlsEventPump.cs (1)
1242expired[count++] = kvp.Key;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
93buffer[length] = 0;
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
139buffer[i] = tupleSeparator;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1041isStreaming[i] = true;
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
106_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
106_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\aspnetcore\src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
27ref var current = ref output[lenNumBytes];
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
106_memory.Span[_memoryUsed] = (byte)value;
Microsoft.AspNetCore.WebSockets (9)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (2)
35span[pos] = item; 50_span[pos] = item;
src\aspnetcore\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\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (10)
60buffer[sourceIndex] = 0x20; 82buffer[destinationIndex++] = buffer[sourceIndex++]; 114buffer[destinationIndex++] = (byte)byte1; 216buffer[destinationIndex++] = (byte)byte1; 220buffer[destinationIndex++] = (byte)byte2; 224buffer[destinationIndex++] = (byte)byte3; 228buffer[destinationIndex++] = (byte)byte4; 238buffer[writer++] = buffer[begin++]; 421buffer[destinationIndex++] = buffer[sourceIndex++]; 452buffer[destinationIndex++] = (char)codeUnit1;
Microsoft.Build (22)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
126normalizedBuildCommand[normalizedCommandIndex++] = c;
Construction\Solution\ProjectInSolution.cs (1)
526dest[pos] = cleanCharacter;
Logging\OptimizedStringIndenter.cs (2)
149segments[i] = new StringSegment(start, input.Length); 161segments[i] = new StringSegment(start, index);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\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.Build.Framework (18)
Collections\RefArrayBuilder.cs (4)
125span[count] = item; 160span[count] = source[0]; 207span[index] = item; 352span[count - 1] = default!;
FileUtilities.cs (1)
796str[sliceLength] = str[i] == '\\' ? '/' : str[i];
Globbing\MSBuildPathMatcher.cs (3)
432next[patternIndex] = 1; 437next[patternIndex + 1] = 1; 482states[patternIndex + 1] = 1;
Utilities\BufferScope.cs (1)
119=> ref _span[i];
Utilities\FileMatcher.cs (1)
3176activeExcludeSpan[index] = 1;
Utilities\ProcessExtensions.cs (1)
192decodedChars[i] = ' ';
Utilities\ValueStringBuilder.cs (7)
113_chars[_length] = '\0'; 125return ref _chars[index]; 153_chars[Length] = '\0'; 281_chars[pos] = c; 305_chars[pos] = s[0]; 339dst[i] = c; 359dst[i] = *value++;
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (2)
806nonce[nonce.Length - 1] &= 0x7f; 807nonce[nonce.Length - 1] |= 0x01;
Microsoft.CodeAnalysis (21)
CommandLine\CommandLineParser.cs (1)
644lineBuffer[lineBufferLength] = (char)ch;
InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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 (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.CodeStyle (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
209array[i] = b;
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
209array[i] = b;
Microsoft.CodeAnalysis.Extensions.Package (18)
src\roslyn\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.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstring.cs (1)
107isSubstringLookup[argument.Parameter.Ordinal] = true;
Microsoft.CodeAnalysis.Razor.Compiler (8)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (5)
583tokenLists[tokenListsCount++] = tokens1; 589tokenLists[tokenListsCount++] = tokens2; 595tokenLists[tokenListsCount++] = tokens3; 601tokenLists[tokenListsCount++] = tokens4; 607tokenLists[tokenListsCount++] = tokens5;
Language\TagHelperCollection_Factories.cs (1)
206destination[index++] = collection;
Language\TagHelperDiscoverer.cs (2)
94typeProducers[index++] = producer; 200typeProducers[index++] = producer;
Microsoft.CodeAnalysis.ResxSourceGenerator (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
94targetLowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(target[i]);
Microsoft.CodeAnalysis.Workspaces (25)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\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.CSharp (3)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\ComEventsSink.cs (3)
173ref ComVariant pvar = ref GetVariant(ref vars[i]); 196ref ComVariant pvar = ref GetVariant(ref vars[pDispParams.cArgs - 1 - i]); 228ref ComVariant pvar = ref GetVariant(ref vars[idxToPos]);
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; 525retSpan[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.Diagnostics.DataContractReader (1)
ContractDescriptorTarget.cs (1)
686buffer[i] = ReadPointer(address);
Microsoft.Diagnostics.DataContractReader.Contracts (9)
PrintfStressMessageFormatter.cs (3)
188buffer[buffer.Length - paddingFormat.Precision - 1] = '.'; 198buffer[buffer.Length - paddingFormat.Precision - 1] = '.'; 199buffer[buffer.Length - paddingFormat.Precision - 2] = '0';
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (6)
38buffer[pos++] = (byte)((value & 0x7F) | ((value >= 0x80) ? 0x80u : 0)); 74buffer[pos++] = b; 90bytes[actualSize - 1] |= 0x80; 92bytes[bytes.Length - 1] = 0x00; 102bytes[actualSize - 1] |= 0x80; 104bytes[bytes.Length - 1] = padValue;
Microsoft.Diagnostics.DataContractReader.Legacy (34)
_generated\37\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (20)
307__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 329__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 369__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 383__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 546__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 569__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 610__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 625__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 903__modules_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__modules_native__managedSpan[__i0]); 926__modules_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__modules_native__nativeSpan[__i0]); 967__modules_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__modules_native__nativeSpan[__i0]); 982__modules_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__modules_native__managedSpan[__i0]); 2299__heaps_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__heaps_native__managedSpan[__i0]); 2321__heaps_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__heaps_native__nativeSpan[__i0]); 2361__heaps_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__heaps_native__nativeSpan[__i0]); 2375__heaps_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__heaps_native__managedSpan[__i0]); 3965__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 3988__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 4029__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 4044__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]);
_generated\40\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4.cs (4)
59__arguments_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__arguments_native__managedSpan[__i0]); 81__arguments_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__arguments_native__nativeSpan[__i0]); 121__arguments_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__arguments_native__nativeSpan[__i0]); 135__arguments_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__arguments_native__managedSpan[__i0]);
_generated\46\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10.cs (4)
68__mowList_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__mowList_native__managedSpan[__i0]); 91__mowList_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__mowList_native__nativeSpan[__i0]); 132__mowList_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__mowList_native__nativeSpan[__i0]); 147__mowList_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__mowList_native__managedSpan[__i0]);
_generated\55\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (4)
112__args_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__args_native__managedSpan[__i0]); 134__args_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__args_native__nativeSpan[__i0]); 174__args_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__args_native__nativeSpan[__i0]); 188__args_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__args_native__managedSpan[__i0]);
OutputBufferHelpers.cs (1)
30target[nullTerminatorLocation] = '\0';
SOSDacImpl.IXCLRDataProcess.cs (1)
1175exInfo[i] = new TargetPointer(record->ExceptionInformation[i]);
Microsoft.DiaSymReader (126)
_generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (4)
174__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 198__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 249__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 267__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType;
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (12)
411__parameters_native__nativeSpan[__i0] = (global::System.IntPtr)__parameters_native__nativeSpan____i0_exactType; 435__parameters_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__parameters_native__nativeSpan____i0_exactType); 486__parameters_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__parameters_native__nativeSpan____i0_exactType); 503__parameters_native__nativeSpan[__i0] = (global::System.IntPtr)__parameters_native__nativeSpan____i0_exactType; 604__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 630__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 693__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 713__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 752__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 781__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 859__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 883__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType;
_generated\20\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (6)
297__parameters_native__nativeSpan[__i0] = (global::System.IntPtr)__parameters_native__nativeSpan____i0_exactType; 321__parameters_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__parameters_native__nativeSpan____i0_exactType); 414__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 440__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 496__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 525__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType);
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (8)
119__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 143__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 194__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 211__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 252__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 276__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 327__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 344__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType;
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (20)
157__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 181__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 232__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 249__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 452__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 476__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 527__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 544__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 585__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 609__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 660__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 677__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 841__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 865__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 916__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 933__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 1201__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 1226__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 1279__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 1297__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType;
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (14)
199__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 224__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 277__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 295__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 374__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 398__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 547__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 571__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 627__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 651__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 772__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 796__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 975__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 1000__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType);
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (12)
234__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 258__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 407__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 431__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 487__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 511__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 632__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 656__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 835__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 860__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 1047__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 1072__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType);
_generated\25\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (12)
269__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 293__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 442__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 466__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 522__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 546__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 667__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 691__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 870__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 895__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 1082__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 1107__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType);
_generated\26\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (12)
174__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 198__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 347__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 371__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 427__variables_native__nativeSpan[__i0] = (global::System.IntPtr)__variables_native__nativeSpan____i0_exactType; 451__variables_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__variables_native__nativeSpan____i0_exactType); 572__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 596__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 775__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 800__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType); 987__methods_native__nativeSpan[__i0] = (global::System.IntPtr)__methods_native__nativeSpan____i0_exactType; 1012__methods_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToManaged(__methods_native__nativeSpan____i0_exactType);
_generated\28\Microsoft.DiaSymReader.ISymUnmanagedScope.cs (12)
194__children_native__nativeSpan[__i0] = (global::System.IntPtr)__children_native__nativeSpan____i0_exactType; 218__children_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToManaged(__children_native__nativeSpan____i0_exactType); 269__children_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToManaged(__children_native__nativeSpan____i0_exactType); 286__children_native__nativeSpan[__i0] = (global::System.IntPtr)__children_native__nativeSpan____i0_exactType; 459__locals_native__nativeSpan[__i0] = (global::System.IntPtr)__locals_native__nativeSpan____i0_exactType; 483__locals_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__locals_native__nativeSpan____i0_exactType); 534__locals_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__locals_native__nativeSpan____i0_exactType); 551__locals_native__nativeSpan[__i0] = (global::System.IntPtr)__locals_native__nativeSpan____i0_exactType; 592__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 616__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 667__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType); 684__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType;
_generated\29\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (10)
116__constants_native__nativeSpan[__i0] = (global::System.IntPtr)__constants_native__nativeSpan____i0_exactType; 140__constants_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedConstant>.ConvertToManaged(__constants_native__nativeSpan____i0_exactType); 191__constants_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedConstant>.ConvertToManaged(__constants_native__nativeSpan____i0_exactType); 208__constants_native__nativeSpan[__i0] = (global::System.IntPtr)__constants_native__nativeSpan____i0_exactType; 321__children_native__nativeSpan[__i0] = (global::System.IntPtr)__children_native__nativeSpan____i0_exactType; 345__children_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToManaged(__children_native__nativeSpan____i0_exactType); 464__locals_native__nativeSpan[__i0] = (global::System.IntPtr)__locals_native__nativeSpan____i0_exactType; 488__locals_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToManaged(__locals_native__nativeSpan____i0_exactType); 544__namespaces_native__nativeSpan[__i0] = (global::System.IntPtr)__namespaces_native__nativeSpan____i0_exactType; 568__namespaces_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToManaged(__namespaces_native__nativeSpan____i0_exactType);
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (4)
231__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType; 255__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 306__documents_native__managedSpan[__i0] = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToManaged(__documents_native__nativeSpan____i0_exactType); 323__documents_native__nativeSpan[__i0] = (global::System.IntPtr)__documents_native__nativeSpan____i0_exactType;
Microsoft.DotNet.Cli.Utils (1)
BufferScope.cs (1)
123=> ref _span[i];
Microsoft.DotNet.NativeWrapper (1)
_generated\0\LibraryImports.g.cs (1)
216__argv_native__nativeSpan[__i0] = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(__argv_native__managedSpan[__i0]);
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.Configuration.Binder.SourceGeneration (4)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
Microsoft.Extensions.Configuration.EnvironmentVariables (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
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)
827_parameterValues[applyIndex] = givenParameters[givenIndex]; 846_parameterValues[i] = defaultValue; 873_parameterValues[index] = defaultValue; 878_parameterValues[index] = value; 905_parameterValues[i] = givenParameters[(int)parameterMap[i]!];
Microsoft.Extensions.Diagnostics (1)
src\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
148_bitMap[bitIndex] = value | mask;
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\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
Microsoft.Extensions.Logging.Console (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
Microsoft.Extensions.Logging.Generators (4)
src\runtime\src\libraries\Common\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 (88)
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)
758bestPathEndsAt[i] = new BestPathNode(); 787ref BestPathNode targetNode = ref bestPathEndsAt[keyPos]; 810ref 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)
200span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 211span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : c; 223span[bufferIndex++] = c; 236span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 275span[bufferIndex++] = EscapeWhiteSpaces ? DummyPrefix : ' '; 311span[i] = span[i - 1]; 314span[currentBufferIndex + 1] = EscapeWhiteSpaces ? DummyPrefix : ' '; 501normalized[normalizedIndex++] = sp[n]; 561normalized[normalizedIndex] = (byte)' ';
Utils\BytePairEncoder.cs (2)
41byteIndicesAndRanks[i] = (i, int.MaxValue); 182state[i + 1] = new State
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.Build.Containers (1)
Layer.cs (1)
346checksumField[i] = (byte)('0' + (checksum & 7));
Microsoft.Net.Http.Headers (5)
HeaderUtilities.cs (5)
641span[spanIndex] = segment[nextIndex]; 646span[spanIndex] = segment[i]; 700span[span.Length - 1] = span[0] = '\"'; 707span[spanIndex++] = '\\'; 715span[spanIndex++] = segment[i];
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (4)
348(assets[i], assets[parentIndex]) = (assets[parentIndex], assets[i]); 360(assets[i], assets[placeableIndex]) = (assets[placeableIndex], assets[i]);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Data\StaticWebAsset.cs (4)
348(assets[i], assets[parentIndex]) = (assets[parentIndex], assets[i]); 360(assets[i], assets[placeableIndex]) = (assets[placeableIndex], assets[i]);
Utils\Globbing\StaticWebAssetGlobMatcher.cs (1)
138span[index++] = '/';
Microsoft.Private.Windows.Core (12)
System\BufferScope.cs (1)
103public ref T this[int i] => ref _span[i];
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (3)
367fileBuffer[file.Length] = '\0'; 408span[value.Length] = '\0'; 428span[byteCount] = 0;
System\SpanHelpers.cs (1)
25destination[source.Length] = '\0';
System\Text\ValueStringBuilder.cs (7)
89_chars[Length] = '\0'; 100return ref _chars[index]; 127_chars[Length] = '\0'; 192_chars[pos] = c; 219_chars[pos] = s[0]; 268dst[i] = c; 285dst[i] = *value++;
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
1121span[dataLength++] = 0;
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 (23)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (2)
34destination[destinationIndex++] = hexChar(value >> 4, firstHexLetter); 35destination[destinationIndex++] = hexChar(value & 0xF, firstHexLetter);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (1)
183tempBuffer[charsWritten++] = c;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (1)
79lowerCaseCharacters[i] = CaseInsensitiveComparison.ToLower(value[i]);
src\roslyn\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)
396destination[i] = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
System\Collections\Frozen\FrozenHashTable.cs (3)
79ref int bucketStart = ref bucketStarts[bucketNum]; 80nexts[index] = bucketStart; 106ref 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\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\ConsolePal.Unix.cs (2)
588dst[dstPos++] = b; 617foundByteDst[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\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
148_bitMap[bitIndex] = value | mask;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Diagnostics\Activity.cs (1)
2135outBytes[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)
206tags[index] = item;
System.Diagnostics.EventLog (2)
_generated\0\LibraryImports.g.cs (2)
1472__valuePaths_native__nativeSpan[__i0] = (global::System.IntPtr)__valuePaths_native__nativeSpan____i0_exactType; 1668__values_native__nativeSpan[__i0] = global::Microsoft.Win32.UnsafeNativeMethods.EvtStringVariant.Marshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]);
System.Diagnostics.Process (14)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (8)
65inheritedFds[i] = (int)handle.DangerousGetHandle(); 140pointers[i] = (nint)(dataPtr + dataOffset); 143data[dataOffset + bytesWritten] = (byte)'\0'; 147pointers[count] = 0; // null terminator 187pointers[entryIndex] = (nint)(dataPtr + dataOffset); 190data[dataOffset + keyBytes] = (byte)'='; 192data[dataOffset + keyBytes + 1 + valueBytes] = (byte)'\0'; 199pointers[entryIndex] = 0; // null terminator
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[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 (14)
System\Formats\Asn1\Asn1Tag.cs (1)
339destination[idx] = (byte)segment;
System\Formats\Asn1\AsnCharacterStringEncodings.cs (4)
233bytes[i] = (byte)c; 265bytes[position] = (byte)c; 297chars[i] = (char)b; 331chars[position] = (char)b;
System\Formats\Asn1\AsnCharacterStringEncodings.net.cs (5)
240bytes[position] = (byte)c; 272chars[position] = (char)b; 422bytes[writeIdx + 1] = (byte)val16; 423bytes[writeIdx] = (byte)(val16 >> 8); 474chars[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\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Formats\Tar\TarHeader.Write.cs (7)
641buffer[FieldLocations.TypeFlag] = (byte)typeFlagChar; 868span[bytesWritten++] = (byte)' '; 870span[bytesWritten++] = (byte)'='; 872span[bytesWritten++] = (byte)'\n'; 945destination[i] = converted[j]; 950destination[i] = (byte)'0'; // Leading zero chars 1093digits[i] = (byte)('0' + (remaining % 8));
System.IO.Compression (10)
System\IO\Compression\DeflateManaged\HuffmanTree.cs (3)
121bitLengthCount[codeLength]++; 131nextCode[bits] = tempCode; 142nextCode[len]++;
System\IO\Compression\WinZipAesStream.cs (1)
331dest[i] ^= src[i];
System\IO\Compression\ZipArchiveEntry.cs (2)
864cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeBySpecification] = (byte)_versionMadeBySpecification; 865cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionMadeByCompatibility] = (byte)CurrentZipPlatform;
System\IO\Compression\ZipCryptoStream.cs (3)
170header[i] = (byte)(p ^ ks); 297destination[i] = DecryptAndUpdateKeys(destination[i]); 408span[i] = DecryptAndUpdateKeys(span[i]);
System\IO\Compression\Zstandard\ZstandardDictionary.cs (1)
121lengthsAsNuint[i] = (nuint)length;
System.IO.Compression.ZipFile (2)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Windows.cs (2)
42dest[state.i] = '_'; 48dest[i] = s_illegalChars.Contains(c) ? '_' : c;
System.IO.FileSystem.AccessControl (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System.IO.FileSystem.Watcher (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\IO\FileSystemWatcher.Linux.cs (1)
1390pathBuffer[length] = '/';
System.Linq (14)
System\Linq\Lookup.cs (1)
174span[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)
161destination[i] = source[sourceIndex];
System.Linq.AsyncEnumerable (2)
System\Linq\SingleLinkedNode.cs (2)
108span[index] = node.Item; 123span[index] = node.Item;
System.Net.Http (24)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (2)
717dst[j++] = (byte)lookupValue; 784dst[j++] = (byte)lookupValue;
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\IntegerEncoder.cs (2)
58destination[i++] = (byte)(value % 128 + 128); 68destination[i++] = (byte)value;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Net\Http\Headers\HttpHeaders.cs (2)
1317values[currentIndex] = parser == null || storeValue is InvalidValue ? storeValue.ToString() : parser.ToString(storeValue); 1325values[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\DecompressionHandler.cs (4)
41if (GZipEnabled) methods[count++] = Gzip; 42if (DeflateEnabled) methods[count++] = Deflate; 43if (BrotliEnabled) methods[count++] = Brotli; 44if (ZstandardEnabled) methods[count++] = Zstd;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (2)
1221valueIterator[crOrLfIdx] = (byte)' '; 1222valueIterator[lfIdx] = (byte)' ';
System.Net.HttpListener (6)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.Mail (23)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Net\Base64Stream.cs (3)
109buffer[destination++] = (byte)(ReadState.Val + (s >> 4)); 114buffer[destination++] = (byte)(ReadState.Val + (s >> 2)); 119buffer[destination++] = (byte)(ReadState.Val + s);
System\Net\Mime\QEncodedStream.cs (5)
101buffer[destination++] = (byte)((b1 << 4) + b2); 117buffer[destination++] = (byte)((b1 << 4) + b2); 137buffer[destination++] = (byte)' '; 142buffer[destination++] = buffer[source++]; 171buffer[destination++] = (byte)((b1 << 4) + b2);
System\Net\Mime\QuotedPrintableStream.cs (4)
130buffer[destination++] = (byte)((b1 << 4) + b2); 146buffer[destination++] = (byte)((b1 << 4) + b2); 164buffer[destination++] = buffer[source++]; 192buffer[destination++] = (byte)((b1 << 4) + b2);
System.Net.NameResolution (10)
System\Net\DnsEncodedName.cs (6)
161destination[labelStart] = (byte)labelLen; 172destination[wireLen - 1] = 0; 346destination[bytesWritten] = (byte)label.Length; 356destination[bytesWritten] = 0; // root label 387destination[charsWritten] = '.'; 403labelChars[i] = (char)label[i];
System\Net\DnsResolver.cs (4)
543chars[pos++] = ToHex(b & 0xF); 544chars[pos++] = '.'; 545chars[pos++] = ToHex(b >> 4); 546chars[pos++] = '.';
System.Net.NetworkInformation (9)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[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\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
System.Net.Primitives (35)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\runtime\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\runtime\src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (1)
62buffer[buffer.Length - 1] = 0;
src\runtime\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\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\runtime\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\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
111line[labelUtf8.Length] = (byte)' '; 114line[labelUtf8.Length + 1 + clientRandomUtf8.Length] = (byte)' ';
System.Net.Security (22)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
520handles[i] = certList[i].Handle;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
354buffer[offset++] = (byte)protocol.Protocol.Length;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\runtime\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\runtime\src\libraries\Common\src\System\Net\Security\MD4.cs (1)
185output[i] = BinaryPrimitives.ReadUInt32LittleEndian(input.Slice(j));
src\runtime\src\libraries\Common\src\System\Net\Security\RC4.cs (1)
87output[counter] = (byte)(input[counter] ^ state[xorIndex]);
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
111line[labelUtf8.Length] = (byte)' '; 114line[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\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
System.Net.WebSockets (1)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
187output[written] = _remainingByte.GetValueOrDefault();
System.Numerics.Tensors (69)
System\Buffers\NRange.cs (3)
77span[pos++] = '.'; 78span[pos++] = '.'; 82span[pos++] = '^';
System\Numerics\Tensors\netcore\Tensor.cs (28)
294ranges[i] = 0..1; 298ranges[i] = ..; 385span[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2)); 420span[i] = T.CreateChecked(random.NextDouble()); 1343newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1344newStrides[i] = tensor.Strides[tensor.Rank - 1 - i]; 1355newLengths[i] = tensor.Lengths[dimensions[i]]; 1356newStrides[i] = tensor.Strides[dimensions[i]]; 1759srcIndexes[i] = NRange.All; 1760dstIndexes[i] = NRange.All; 1765srcIndexes[dimension] = new NRange(i - 1, i); 1766dstIndexes[dimension] = new NRange(tensor.Lengths[dimension] - i, tensor.Lengths[dimension] - i + 1); 1881sliceDims[i] = NRange.All; 1933lengths[index] = tensor.Lengths[i]; 1934strides[index] = tensor.Strides[i]; 2000lengths[index] = tensor.Lengths[i]; 2001strides[index] = tensor.Strides[i]; 2067lengths[index] = tensor.Lengths[i]; 2068strides[index] = tensor.Strides[i]; 2416newLengths[dimension] = 1; 2422newStrides[dimension] = 0; 2428newStrides[dimension] = 0; 2453newLengths[dimension] = 1; 2459newStrides[dimension] = 0; 2465newStrides[dimension] = 0; 2490newLengths[dimension] = 1; 2496newStrides[dimension] = 0; 2502newStrides[dimension] = 0;
System\Numerics\Tensors\netcore\TensorOperation.cs (20)
135destinationIndexes[i] = destination.Lengths[i] - 1; 382resultLengths[i] = Math.Max(xLen, yLen); 445destination[i] = (left[i] == right); 453destination[i] = (left[i] == right[i]); 676destination[i] = T.Atan2(x[i], y); 705destination[i] = T.Atan2Pi(x[i], y); 2023destination[i] = T.Exp(x[i]) / y; 2108destination[i] = (x[i] - y) * (x[i] - y); 2121destination[i] = (x[i] - y[i]) * (x[i] - y[i]); 2142destination[i] = diff * diff; 2295destination[i] = y[i]; 2314destination[i] = y; 2339destination[i] = (left[i] > right); 2347destination[i] = (left[i] > right[i]); 2428destination[i] = (left[i] >= right); 2436destination[i] = (left[i] >= right[i]); 2517destination[i] = (left[i] < right); 2525destination[i] = (left[i] < right[i]); 2606destination[i] = (left[i] <= right); 2614destination[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] = destinationLengths[destinationRankIndex] - 1; 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; 1192intermediateLengths[i] = length; 1193intermediateStrides[i] = stride;
System.Private.CoreLib (387)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
76native[numChars] = '\0';
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (5)
687thousandsSepPos[thousandsSepCtr] = groupTotalSizeCount; 1025groupBuffer[j] = TChar.CastFrom((uint)digitIndex < (uint)intDigits.Length ? (char)intDigits[digitIndex] : '0'); 1036buffer[writePos] = sGroup[0]; 1326dig[i - 1]++; 1353dig[i] = (byte)('\0');
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
117number.Digits[digCount] = (byte)ch; 188number.Digits[digEnd] = (byte)'\0'; 257number.Digits[number.DigitsCount] = (byte)'\0';
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
270NumberStyles.None, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
56buffer[byteCount] = 0; // null-terminate
src\runtime\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\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1572span[foundCount++] = value;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
393destination[i] = ReverseEndianness(source[i]); 401destination[i] = ReverseEndianness(source[i]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (7)
539buffer[bufferIdx] = source[encodedIdx]; 563int paddingCount = GetPaddingCount(decoder, ref buffer[BlockSize - 1]); 644buffer[bufferIdx] = source[encodedIdx]; 668int paddingCount = GetPaddingCount(decoder, ref buffer[BlockSize - 1]); 776buffer[bufferIdx] = source[(int)sourceIndex]; 801buffer[bufferIdx++] = (byte)EncodingPad; 827source[localDestIndex - localBytesWritten + i] = buffer[i];
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (6)
539thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 631intSpan[ints - 1] &= ReverseIfBE((int)mask); 644intSpan[toIndex++] = ReverseIfBE(left | (int)right); 649intSpan[toIndex++] = ReverseIfBE((int)(mask >> shiftCount)); 695intSpan[lastIndex] = ReverseIfBE(left | (int)right); 698intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
2474destination[writeOffset++] = '\r'; 2475destination[writeOffset++] = '\n';
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (10)
696result[hiRes] = quotient; 737result[cur]++; 773remainder = (uint)num - (result[i] = (uint)(num / power)) * power; 1081num[cur] = (uint)tmp64; 1093rgulNum[hiProd] = (uint)tmp64; 1128rgulNum[cur] = uint.MaxValue; 1131rgulNum[cur]--; 1159rgulNum[cur]++; 1172rgulNum[cur] = 1; 2325buf[i] = (uint)tmp64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
128EventPipeProviderConfigurationNative.MarshalToNative(providers[i], ref providersNative[i]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (4)
517dataRefObj[refObjIndex] = supportedRefObj; 518refObjPosition[refObjIndex] = idx; 547dataRefObj[refObjIndex] = null; 548refObjPosition[refObjIndex] = -1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2086foundItems[foundItemsCount] = index;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (7)
192modifiedPattern[index] = s[index]; 201modifiedPattern[index] = 'y'; 205modifiedPattern[index] = s[index]; 225modifiedPattern[index + 1] = 'y'; // second y 226modifiedPattern[index + 2] = 'y'; // third y 227modifiedPattern[index + 3] = 'y'; // fourth y 234modifiedPattern[index + 2] = s[index];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
30values[valueIndex++] = (char)i;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (4)
735normalizedName[i] = (char)(((int)name[i]) + 0x20); 740normalizedName[i] = name[i]; 755normalizedName[i] = (char)(((int)name[i]) - 0x20); 760normalizedName[i] = name[i];
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1513destination[FormatOMinLength] = TChar.CastFrom('Z');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5977result[i] = ch;
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
765destination[i] = source[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (8)
187destination[i] = (char)s_basicLatin[c]; 197SurrogateCasing.ToUpper(c, cl, out destination[i], out destination[i + 1]); 203destination[i] = ToUpper(c); 241destination[i] = (char)s_lowerBasicLatin[c]; 251SurrogateCasing.ToLower(c, cl, out destination[i], out destination[i + 1]); 257destination[i] = ToLower(c);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (2)
237destination[pos++] = TChar.CastFrom('-'); 245destination[pos++] = TChar.CastFrom(format == StandardFormat.C ? '.' : ':');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
1503dest[offset + 0] = TChar.CastFrom('0'); 1504dest[offset + 1] = TChar.CastFrom('x'); 1505dest[offset + 2] = TChar.CastFrom(HexConverter.ToCharLower(val >> 4)); 1506dest[offset + 3] = TChar.CastFrom(HexConverter.ToCharLower(val)); 1509dest[offset + 4] = TChar.CastFrom(',');
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
43path[pos + 6] = 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (8)
309currentMatches[currentMatch++] = currentState; 322currentMatches[currentMatch++] = currentState; 333currentMatches[currentMatch++] = maxState; 348currentMatches[currentMatch++] = currentState; 355currentMatches[currentMatch++] = currentState; 363currentMatches[currentMatch++] = currentState; 365currentMatches[currentMatch++] = currentState + 1; 368currentMatches[currentMatch++] = maxState;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
609destination[path1.Length] = DirectorySeparatorChar; 643destination[charsWritten++] = DirectorySeparatorChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (3)
71vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 197vectors[i] = new Interop.Sys.IOVector { Base = (byte*)memoryHandle.Pointer, Count = (UIntPtr)buffer.Length }; 251vectors[buffersOffset] = new Interop.Sys.IOVector
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
232_memory.Span[_position++] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (8)
4597span[i] = newValue; 4612span[i] = newValue; 4792destination[i] = EqualityComparer<T>.Default.Equals(source[i], oldValue) ? newValue : source[i]; 4806destination[i] = comparer.Equals(source[i], oldValue) ? newValue : source[i]; 4857span[pos] = newValue; 4906span[pos] = newValue; 5362destinationMinusOne[rangeCount] = startInclusive..endExclusive; 5386destination[rangeCount] = startInclusive..endExclusive;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (1)
752resultBlocks[resultLength] = carry;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (5)
437number.Digits[i] = (byte)'0'; 440number.Digits[numberDigits + numberZeroDigits] = (byte)('\0'); 3672digits[count] = (byte)'\0'; 3835digits[end] = (byte)'\0'; 3868digits[end] = (byte)'\0';
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128DecimalReduce.cs (9)
208integerWords[i] = (ulong)product; 214integerWords[count++] = (ulong)carry; 259columnLo[t] = acc; 260columnHi[t] = accHigh; 279moduli[i] = TrigOneOverTwoPi[i]; 294moduli[i] = q; 333columnLo[t] = acc; 334columnHi[t] = accHigh; 356fractionWords[t] = (ulong)lo;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Trig.cs (2)
454result[index] = r; 479result[secondIndex] = r;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (9)
47number.Digits[length] = (byte)('\0'); 350buffer[curDigit] = (byte)('0' + outputDigit); 403buffer[curDigit + i] = (byte)('0' + digit); 454buffer[curDigit] = (byte)('0' + outputDigit); 483buffer[curDigit] = (byte)('0' + outputDigit); 520buffer[curDigit] = (byte)('0' + outputDigit); 533buffer[curDigit] = (byte)('1'); 546buffer[curDigit]++; 556buffer[curDigit] = (byte)('0' + outputDigit + 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (16)
554number.Digits[i] = (byte)significand[i]; 559number.Digits[significand.Length] = (byte)'\0'; 585digits[i] = (byte)'\0'; 1765digits[i] = (byte)'\0'; 1786pairs[i] = new DigitPair(GetTwoDigitsChars(remainder)); 1883buffer[i] = TChar.CastFrom(digit + (digit < 10 ? (byte)'0' : hexBase)); 1930buffer[i] = TChar.CastFrom('0' + (byte)(value & 0x1)); 1948digits[i] = (byte)'\0'; 1975destination[cur--] = TChar.CastFrom(temp - value * 10); 2079digits[i] = (byte)'\0'; 2188buffer[i] = TChar.CastFrom(digit + (digit < 10 ? (byte)'0' : hexBase)); 2251buffer[i] = TChar.CastFrom('0' + (byte)(value & 0x1)); 2270digits[i] = (byte)'\0'; 2306pairs[i] = new DigitPair(GetTwoDigitsChars((uint)remainder)); 2479digits[i] = (byte)'\0'; 2663digits[i] = (byte)'\0';
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (2)
407buffer[digitCount++] = (byte)('0' + digitValue); 426buffer[digitCount] = (byte)'\0';
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (34)
208result[i] = (nuint)(ulong)p0; 211result[i + 1] = (nuint)(ulong)p1; 214result[i + 2] = (nuint)(ulong)p2; 217result[i + 3] = (nuint)(ulong)p3; 225result[i] = (nuint)(ulong)product; 234result[i] = (uint)product; 262result[i] = (nuint)(ulong)p0; 265result[i + 1] = (nuint)(ulong)p1; 268result[i + 2] = (nuint)(ulong)p2; 271result[i + 3] = (nuint)(ulong)p3; 279result[i] = (nuint)(ulong)product; 289result[i] = (uint)product; 317result[i] = orig0 - lo0; 324result[i + 1] = orig1 - lo1; 331result[i + 2] = orig2 - lo2; 338result[i + 3] = orig3 - lo3; 350result[i] = orig - lo; 364result[i] = orig - lo; 404bits[i] = AddWithCarry(left[i], right[i], carry, out carry); 424left[i] = AddWithCarry(left[i], right[i], carry, out carry); 431left[i] = sum; 460bits[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 480left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 486left[i] = val - borrow; 509bits[i] = sum; 512bits[left.Length] = carry; 520bits[i] = sum; 531bits[left.Length] = carry; 560bits[i] = diff; 570bits[i] = diff; 607bits[i + left.Length] = carry; 692quotient[n] = digit; 697left[i] = 0; 712ref nuint leftElement = ref left[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.CompatImpl.cs (2)
246buffer[i] = (byte)_parent.Next(); 334buffer[i] = (byte)InternalSample();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
523destination[i] = choices[randomBytes[i] & mask]; 560destination[i++] = choices[masked]; 574destination[i] = choices[Next(choices.Length)]; 662values[i] = values[j]; 663values[j] = temp;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
163buffer[i] = remainingBytes[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Range.cs (3)
82span[pos++] = '.'; 83span[pos++] = '.'; 87span[pos++] = '^';
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
604bits[i] = _store.ReadInt32();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (11)
258payloadSpan[payloadSpanIndex++] = ContinuationWrapper.COUNT; 261payloadSpan[payloadSpanIndex++] = (byte)entries.Length; 265payloadSpan[payloadSpanIndex++] = (byte)entry.EventId; 266payloadSpan[payloadSpanIndex++] = entry.Version; 267payloadSpan[payloadSpanIndex++] = (byte)entry.FieldSize; 501headerSpan[headerSpanIndex++] = 1; 597headerSpan[headerSpanIndex++] = (byte)eventID; 641headerSpan[headerSpanIndex++] = (byte)eventID; 1849callstackHeaderSpan[spanIndex++] = 0; // Reserved callstack ID for future callstack interning. 1850callstackHeaderSpan[spanIndex++] = continuationIndex; 1853callstackHeaderSpan[spanIndex++] = callstackFrameCount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (4)
863runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIUnknownVftblPtr; 868runtimeDefinedVtable[runtimeDefinedCount++] = DefaultIReferenceTrackerTargetVftblPtr; 872runtimeDefinedVtable[runtimeDefinedCount++] = TaggedImplVftblPtr; 910dispatchVtables[j] = (index < userDefinedCount) ? userDefined[index].Vtable : runtimeDefinedVtable[index - userDefinedCount];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
57bytes[actualByteLength] = 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\Utf8StringMarshaller.cs (2)
33buffer[byteCount] = 0; // null-terminate 99buffer[byteCount] = 0; // null-terminate
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\BitVector256.cs (2)
59chars[size] = (char)i; 74bytes[size] = (byte)i;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
263seenValues[offset] = true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
112bucketIndexes[i] = bucketIndex;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
60normalizedValues[i++] = NormalizeIfNeeded(value, ignoreCase); 93values[newCount++] = value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (3)
114span[_decryptedLength] = c; 196span[index] = c; 272span[index] = c;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
262get => ref _span[_index];
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
1007scratch[length] = '\0';
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (2)
400bytes[idx++] = replacementByte; 689chars[idx++] = replacementChar;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (2)
389dest[total++] = srcLeft[i]; 401dest[total++] = srcRight[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
297destination[i] = (char)(0xDF00 | source[i]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
3706continuations[i] = null; // so that we can skip this later 3716continuations[i] = null; 3754continuations[i] = null; // to enable free'ing up memory earlier
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (4)
259safeWaitHandles[i] = safeWaitHandle; 260unsafeWaitHandles[i] = safeWaitHandle.DangerousGetHandle(); 273safeWaitHandles[i] = null; 392unsafeWaitHandles[i] = safeWaitHandles[i].DangerousGetHandle();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Cache.cs (1)
227offsets[encountered] = transition.Offset + _baseUtcOffset;
System\Reflection\DynamicInvokeInfo.cs (9)
601shouldCopyBack[i] = true; 624shouldCopyBack[i] = true; 646shouldCopyBack[i] = true; 672copyOfParameters[i] = arg!; 676ref Unsafe.As<object?, byte>(ref copyOfParameters[i]) : ref arg.GetRawData()); 712shouldCopyBack[i] = true; 762copyOfParameters[i] = arg; 766ref Unsafe.As<object?, byte>(ref copyOfParameters[i]) : ref arg.GetRawData()); 836dest[i] = obj;
System.Private.CoreLib.Generators (4)
src\runtime\src\libraries\Common\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\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
System\Xml\XmlConverter.cs (2)
1106chars[count++] = c; 1137chars[count++] = c;
System.Private.Uri (40)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (2)
51numbers[i] = (byte)b; 282parts[dotCount] = currentValue;
src\runtime\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\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
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)
4366chars[writeOffset++] = decoded; 4372chars[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)
103public ref T this[int i] => ref _span[i];
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (3)
367fileBuffer[file.Length] = '\0'; 408span[value.Length] = '\0'; 428span[byteCount] = 0;
System\SpanHelpers.cs (1)
25destination[source.Length] = '\0';
System\Text\ValueStringBuilder.cs (7)
89_chars[Length] = '\0'; 100return ref _chars[index]; 127_chars[Length] = '\0'; 192_chars[pos] = c; 219_chars[pos] = s[0]; 268dst[i] = c; 285dst[i] = *value++;
Windows\Win32\System\Variant\VARIANT.cs (13)
340result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 352result[i] = data[i].ToDecimal(); 364result[i] = decimal.FromOACurrency(data[i]); 376result[i] = DateTime.FromOADate(data[i]); 388result[i] = Marshal.PtrToStringUni(data[i]); 401result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 413result[i] = data[i].ToObject(); 481indices[i] = lower[i] = array.GetLowerBound(i); 482upper[i] = array.GetUpperBound(i); 494if (++indices[i] <= upper[i]) 499indices[i] = lower[i]; 528span[offset] = value;
System.Private.Xml (36)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[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)
590text[s_lzyyyy] = '-'; 592text[s_lzyyyy_MM] = '-'; 654text[s_lzHH] = ':'; 656text[s_lzHH_mm] = ':'; 687text[s_lz_zz] = ':'; 694text[s_lz_zz] = ':'; 709text[start + digits] = (char)(value % 10 + '0'); 717text[start] = (char)(value / 10 + '0'); 718text[start + 1] = (char)(value % 10 + '0');
System\Xml\Schema\XsdDuration.cs (1)
415tmpSpan[idx - len] = (char)(digit + '0');
System\Xml\Xsl\Runtime\XslNumber.cs (2)
348result[newPos] = separator; 355result[newPos] = oldPos >= 0 ? (char)(str[oldPos--] + shift) : zero;
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
961characters[idx] = ParseCharAttribute(3 + idx, _decimalFormatAttributes[3 + idx].name, DefaultValues[idx]);
System.Reflection.Metadata (12)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
270NumberStyles.None, NumberFormatInfo.InvariantInfo, out versionNumbers[i]))
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System.Runtime.Numerics (116)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (5)
687thousandsSepPos[thousandsSepCtr] = groupTotalSizeCount; 1025groupBuffer[j] = TChar.CastFrom((uint)digitIndex < (uint)intDigits.Length ? (char)intDigits[digitIndex] : '0'); 1036buffer[writePos] = sGroup[0]; 1326dig[i - 1]++; 1353dig[i] = (byte)('\0');
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
117number.Digits[digCount] = (byte)ch; 188number.Digits[digEnd] = (byte)'\0'; 257number.Digits[number.DigitsCount] = (byte)'\0';
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (6)
82_chars[Length] = default; 92return ref _chars[index]; 134_chars[Length] = default; 199chars[pos] = c; 219_chars[pos] = text[0]; 250dst[i] = c;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (34)
208result[i] = (nuint)(ulong)p0; 211result[i + 1] = (nuint)(ulong)p1; 214result[i + 2] = (nuint)(ulong)p2; 217result[i + 3] = (nuint)(ulong)p3; 225result[i] = (nuint)(ulong)product; 234result[i] = (uint)product; 262result[i] = (nuint)(ulong)p0; 265result[i + 1] = (nuint)(ulong)p1; 268result[i + 2] = (nuint)(ulong)p2; 271result[i + 3] = (nuint)(ulong)p3; 279result[i] = (nuint)(ulong)product; 289result[i] = (uint)product; 317result[i] = orig0 - lo0; 324result[i + 1] = orig1 - lo1; 331result[i + 2] = orig2 - lo2; 338result[i + 3] = orig3 - lo3; 350result[i] = orig - lo; 364result[i] = orig - lo; 404bits[i] = AddWithCarry(left[i], right[i], carry, out carry); 424left[i] = AddWithCarry(left[i], right[i], carry, out carry); 431left[i] = sum; 460bits[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 480left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 486left[i] = val - borrow; 509bits[i] = sum; 512bits[left.Length] = carry; 520bits[i] = sum; 531bits[left.Length] = carry; 560bits[i] = diff; 570bits[i] = diff; 607bits[i + left.Length] = carry; 692quotient[n] = digit; 697left[i] = 0; 712ref nuint leftElement = ref left[i];
System\Number.BigInteger.cs (14)
436base1E9[di] = partialVal; 551bits[resultLength++] = carry; 562bits[resultLength++] = carry; 582bits[resultLength++] = carry; 598bits[i] = (nuint)(ulong)p; 607bits[i] = (uint)p; 669chars[charsPos++] = TChar.CastFrom(hexValues[b >> 4]); 670chars[charsPos++] = TChar.CastFrom(hexValues[b & 0xF]); 1146base1E9Buffer[iuDst] = (uint)(value - quo * Divisor); 1152base1E9Buffer[base1E9Written++] = uCarry % Divisor; 1547bits2[i] = (nuint)(ulong)p; 1556bits2[i] = (uint)p; 1563bits[omittedLength + curLength] = carry; 1609if (!TParser.TryParseSingleBlock(input.Slice(blockStart, TParser.DigitsPerBlock), out destination[i]))
System\Numerics\BigInteger.cs (6)
1717destination[curByte] = (byte)(highLimb >> (byteIdx * 8)); 1732destination[curByte] = highByte; 2909++zd[leastSignificant]; 3695limbs[i] = ((v & 0xFFFFFFFF) << BitsPerUInt32) | (v >> BitsPerUInt32); 3725zd[leadingZeroCount] = (nuint)(-(nint)zd[leadingZeroCount]); 5496zd[negLeadingZeroCount] = (nuint)(-(nint)zd[negLeadingZeroCount]);
System\Numerics\BigIntegerCalculator.Bitwise.cs (1)
61result[i] = TOp.Invoke(xu, yu);
System\Numerics\BigIntegerCalculator.DivRem.cs (4)
45quotient[i] = DivRem(carry, left[i], right, out nuint rem); 234bits[i] = bits[i] << sigmaSmall | carry; 303remainder[i] = rt[i] >> sigmaSmall | carry; 463--quotient[qi];
System\Numerics\BigIntegerCalculator.FastReducer.cs (2)
130left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 136left[i] = val - borrow;
System\Numerics\BigIntegerCalculator.GcdInv.cs (6)
409x[i] = (nuint)xDigit; 410y[i] = (nuint)yDigit; 431x32[i] = (uint)xDigit; 432y32[i] = (uint)yDigit; 445x[i] = (nuint)(ulong)xDigit; 446y[i] = (nuint)(ulong)yDigit;
System\Numerics\BigIntegerCalculator.PowMod.cs (5)
515oneShifted[k] = 1; 693value[i + j] = (nuint)(ulong)p; 699value[i + j] = (uint)p; 708value[idx] = sum; 727upper[j] = SubWithBorrow(upper[j], modulus[j], borrow, out borrow);
System\Numerics\BigIntegerCalculator.ShiftRot.cs (4)
199bits[i] = value; 209bits[i] = value; 265remaining[i] = (remaining[i] >> shift) | (remaining[i + 1] << back); 267remaining[remaining.Length - 1] >>= shift;
System\Numerics\BigIntegerCalculator.SquMul.cs (20)
170bits[i + j] = (nuint)(ulong)(digit1 + (digit2 << 1)); 178bits[i + i] = (nuint)(ulong)digits; 179bits[i + i + 1] = (nuint)(ulong)(digits >> 64); 192bits[i + j] = (uint)(digit1 + (digit2 << 1)); 197bits[i + i] = (uint)digits; 198bits[i + i + 1] = (uint)(digits >> 32); 209bits[left.Length] = carry; 812bits[i] = quo; 823bits[i] = oneThird + quo; 837bits[i] = twoThirds + quo; 872core[i] = (nuint)(ulong)digit; 879core[i] = (nuint)(ulong)digit; 886core[i] = (nuint)(ulong)digit; 897core[i] = (uint)digit; 904core[i] = (uint)digit; 911core[i] = (uint)digit; 974left[j] = SubWithBorrow(right[j], left[j], borrow, out borrow); 1018left[j] = SubWithBorrow(right[j], left[j], borrow, out borrow); 1033bits[i] = value; 1044bits[i] = value;
System\Numerics\NumericsHelpers.cs (2)
59d[i] = (nuint)(-(nint)d[i]); 103d[i] = ~d[i];
System.Security.Cryptography (39)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
54dest[password.Length] = '\0';
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (4)
68parameters[parameterCount] = hashAlgorithmBuffer; 86parameters[parameterCount] = hmacKeyBuffer; 97parameters[parameterCount] = secretPrependBuffer; 108parameters[parameterCount] = secretAppendBuffer;
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs (1)
40dest[s.Length] = (char)0;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
419destination[i] = (char)(33 + (randomKey[i] & 0b0011_1111));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
245into[i] = (byte)tmp;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (1)
220blobBodyChars[parameterSet.Length] = '\0';
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
214key[i] = (byte)diff;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Security\Cryptography\AsnFormatter.cs (3)
33hexOrder[j++] = ' '; 37hexOrder[j++] = HexConverter.ToCharUpper(digit >> 4); 38hexOrder[j++] = HexConverter.ToCharUpper(digit);
System\Security\Cryptography\Helpers.cs (2)
284stack[stackCount++] = (0, encodedValue.Length); 346stack[stackCount++] = (contentOffset, content.Length);
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\X509CertificateLoader.Windows.cs (1)
255szPassword[password.Length] = '\0';
System.Security.Cryptography.Pkcs (7)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
245into[i] = (byte)tmp;
System.Security.Cryptography.Xml (6)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
System.Security.Principal.Windows (3)
_generated\0\LibraryImports.g.cs (1)
463__names_native__nativeSpan[__i0] = global::Interop.Advapi32.MARSHALLED_UNICODE_STRING.Marshaller.ConvertToUnmanaged(__names_native__managedSpan[__i0]);
System\Security\Principal\SID.cs (2)
463subAuthorities[i] = 727result[length] = '-';
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\FramingEncoders.cs (2)
22span[offset++] = (byte)((value & 0x7F) | 0x80); 26span[offset] = (byte)value;
System.ServiceProcess.ServiceController (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\ServiceProcess\ServiceBase.cs (1)
598entries[index] = service.GetEntry();
System.Text.Encodings.Web (24)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[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 (467)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
src\runtime\src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (2)
45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
182destination[charsWritten++] = value;
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
389newDbInts[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)
141buffer[length - 1] = Quote;
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
116buffer[length - 1] = Quote;
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
116buffer[length - 1] = Quote;
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (1)
604ref PocoObjectCaseState pocoCaseState = ref pocoCaseStates[propertyInfo.PocoCaseIndex];
System\Text\Json\Serialization\ValueBitArray.cs (2)
44ref ulong word = ref _buffer[index / (sizeof(ulong) * 8)]; 87_buffer[i] &= other._buffer[i];
System\Text\Json\ThrowHelper.Serialization.cs (3)
384builder[MaxLength] = builder[MaxLength + 1] = builder[MaxLength + 2] = '.';
System\Text\Json\Writer\JsonWriterHelper.cs (4)
24buffer[i++] = indentByte; 25buffer[i++] = indentByte; 30buffer[i] = indentByte; 321quotedValue[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)
180destination[written] = val; 204destination[written++] = (byte)'\\'; 209destination[written++] = (byte)'u'; 210destination[written++] = (byte)'0'; 211destination[written++] = (byte)'0'; 212destination[written++] = (byte)'2'; 213destination[written++] = (byte)'2'; 216destination[written++] = (byte)'n'; 219destination[written++] = (byte)'r'; 222destination[written++] = (byte)'t'; 225destination[written++] = (byte)'\\'; 228destination[written++] = (byte)'b'; 231destination[written++] = (byte)'f'; 234destination[written++] = (byte)'u'; 304destination[written] = val; 330destination[written++] = '\\'; 335destination[written++] = 'u'; 336destination[written++] = '0'; 337destination[written++] = '0'; 338destination[written++] = '2'; 339destination[written++] = '2'; 342destination[written++] = 'n'; 345destination[written++] = 'r'; 348destination[written++] = 't'; 351destination[written++] = '\\'; 354destination[written++] = 'b'; 357destination[written++] = 'f'; 360destination[written++] = 'u';
System\Text\Json\Writer\Utf8JsonWriter.cs (8)
646output[BytesPending++] = JsonConstants.ListSeparator; 648output[BytesPending++] = token; 726output[BytesPending++] = JsonConstants.ListSeparator; 736output[BytesPending++] = token; 1082output[BytesPending++] = token; 1169output[BytesPending++] = token; 1180output[BytesPending++] = JsonConstants.CarriageReturn; 1182output[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; 161output[BytesPending++] = JsonConstants.ListSeparator; 174output[BytesPending++] = JsonConstants.Quote; 178output[BytesPending++] = JsonConstants.Quote; 281output[BytesPending++] = JsonConstants.ListSeparator; 283output[BytesPending++] = JsonConstants.Quote; 288output[BytesPending++] = JsonConstants.Quote; 311output[BytesPending++] = JsonConstants.ListSeparator; 324output[BytesPending++] = JsonConstants.Quote; 329output[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\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (2)
45chars[i] = char.ToLowerInvariant(chars[i]); 51chars[i] = char.ToLowerInvariant(chars[i]);
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
182destination[charsWritten++] = value;
System.Text.RegularExpressions (38)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Text\RegularExpressions\RegexCharClass.cs (20)
450span[FlagsIndex] = (char)0x1; 451span[SetLengthIndex] = (char)(state.set.Length - 2); 452span[CategoryLengthIndex] = (char)state.category.Length; 458span[FlagsIndex] = '\0'; 459span[SetLengthIndex] = (char)state.set.Length; 460span[CategoryLengthIndex] = (char)state.category.Length; 551categories[numCategories++] = (UnicodeCategory)(c - 1); 567categories[numCategories++] = (UnicodeCategory)(-1 - c); 590categories[numCategories++] = (UnicodeCategory)(c - 1); 611categories[numCategories++] = (UnicodeCategory)(-1 - c); 743chars[count++] = (char)c; 1588span[FlagsIndex] = (char)0; 1589span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1590span[CategoryLengthIndex] = (char)0; 1594span[i++] = c; 1597span[i++] = (char)(c + 1); 1643headerSpan[FlagsIndex] = (char)(current._negate ? 1 : 0); 1644headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1645headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1985invertedGroup[i] = (char)-(short)group[i];
System\Text\RegularExpressions\RegexCompiler.cs (1)
6304dest[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)
5446dest[i >> 4] |= (char)(1 << (i & 0xF));
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
42return ref _span[index]; 55span[pos] = item; 71span[pos] = source[0]; 140_span[pos] = item;
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (20)
450span[FlagsIndex] = (char)0x1; 451span[SetLengthIndex] = (char)(state.set.Length - 2); 452span[CategoryLengthIndex] = (char)state.category.Length; 458span[FlagsIndex] = '\0'; 459span[SetLengthIndex] = (char)state.set.Length; 460span[CategoryLengthIndex] = (char)state.category.Length; 551categories[numCategories++] = (UnicodeCategory)(c - 1); 567categories[numCategories++] = (UnicodeCategory)(-1 - c); 590categories[numCategories++] = (UnicodeCategory)(c - 1); 611categories[numCategories++] = (UnicodeCategory)(-1 - c); 743chars[count++] = (char)c; 1608span[FlagsIndex] = (char)0; 1609span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1610span[CategoryLengthIndex] = (char)0; 1615span[i++] = c; 1618span[i++] = (char)(c + 1); 1643headerSpan[FlagsIndex] = (char)(current._negate ? 1 : 0); 1644headerSpan[SetLengthIndex] = '\0'; // (will be replaced once we know how long a range we've added) 1645headerSpan[CategoryLengthIndex] = (char)categoriesLength; 1985invertedGroup[i] = (char)-(short)group[i];
System.Web.HttpUtility (16)
src\runtime\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); 478destination[j++] = (byte)((byteHi << 4) | byteLo); 513destination[j++] = (byte)((byteHi << 4) | byteLo);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (5)
64_chars[_pos] = '\0'; 83return ref _chars[index]; 149chars[pos] = c; 169_chars[pos] = s[0]; 204dst[i] = c;
System\Web\Util\HttpEncoder.cs (5)
235decodedBytes[decodedBytesCount++] = b; 653_charBuffer[_numChars++] = ch; 667_byteBuffer[_numBytes++] = b; 689chars[i] = (char)Rune.ReplacementChar.Value; 699chars[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)
1017span[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())!;
1284 references to
aspire (1)
src\Shared\CircularBuffer.cs (1)
107var overflowItem = data[data.Length - 1];
Aspire.Dashboard (1)
src\Shared\CircularBuffer.cs (1)
107var overflowItem = data[data.Length - 1];
Aspire.Hosting (1)
src\Shared\CircularBuffer.cs (1)
107var overflowItem = data[data.Length - 1];
GenerateDocumentationAndConfigFiles (18)
src\roslyn\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];
ILCompiler.Compiler (29)
Compiler\ObjectWriter\MachObjectWriter.Aot.cs (14)
173if (registerOffset[i] != int.MinValue) 210if (registerOffset[i] != int.MinValue) 222registerOffset[REG_IDX_FP] == -16 && 223registerOffset[REG_IDX_LR] == -8) 230registerOffset[REG_IDX_FP] == int.MinValue && registerOffset[REG_IDX_LR] == int.MinValue) 246if (registerOffset[i] == int.MinValue) 248if (registerOffset[i + 1] != int.MinValue) 251else if (registerOffset[i] == nextOffset) 253if (registerOffset[i + 1] != nextOffset - 8) 264if (registerOffset[i] == int.MinValue) 266if (registerOffset[i + 1] != int.MinValue) 269else if (registerOffset[i] == nextOffset) 271if (registerOffset[i + 1] != nextOffset - 8)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
626buffer[1 + i] = (byte)charBuffer[i]; 937crc = table[(byte)(crc ^ buffer[i])] ^ (crc >> 8);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (5)
95byte c = TailCharacter(input[i], pos); 98(input[l], input[i]) = (input[i], input[l]); 104(input[h], input[i]) = (input[i], input[h]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
300Relocation r = buffer[i];
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoTypes.cs (6)
1677code.Add(LoweredElements[i]); 1678code.Add(Offsets[i]); 1700stringBuilder.Append(LoweredElements[i]); 1702stringBuilder.Append(Offsets[i]); 1754stringBuilder.Append(LoweredElements[i]); 1756stringBuilder.Append(Offsets[i]);
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
973codeStream.EmitLdc(bytes[i]);
ILCompiler.ReadyToRun (14)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
626buffer[1 + i] = (byte)charBuffer[i]; 937crc = table[(byte)(crc ^ buffer[i])] ^ (crc >> 8);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (5)
95byte c = TailCharacter(input[i], pos); 98(input[l], input[i]) = (input[i], input[l]); 104(input[h], input[i]) = (input[i], input[h]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
300Relocation r = buffer[i];
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoTypes.cs (6)
1677code.Add(LoweredElements[i]); 1678code.Add(Offsets[i]); 1700stringBuilder.Append(LoweredElements[i]); 1702stringBuilder.Append(Offsets[i]); 1754stringBuilder.Append(LoweredElements[i]); 1756stringBuilder.Append(Offsets[i]);
ILCompiler.TypeSystem (5)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\ILStackHelper.cs (5)
63stackHeight = stackHeights[currentOffset]; 71Debug.Assert(stackHeights[currentOffset] == StackHeightNotSet 72|| stackHeights[currentOffset] == stackHeight); 233Debug.Assert(stackHeights[target] == StackHeightNotSet 234|| stackHeights[target] == stackHeight);
Microsoft.AspNetCore.Components (8)
src\aspnetcore\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)
264if (_currentPrefixBuffer.Span[index] == '.')
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
158var componentId = componentIdsInDepthOrder[i].ComponentId;
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
405index += targetSpan.Slice(index).Write7BitEncodedInt(purposeLengthsPool[i]);
Microsoft.AspNetCore.Http (1)
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
562if (_comparer.Equals(localSpan[i].Key, key))
Microsoft.AspNetCore.Http.Abstractions (8)
src\aspnetcore\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\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
264if (_currentPrefixBuffer.Span[index] == '.')
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\TextOutputFormatter.cs (3)
293StringWithQualityHeaderValueComparer.QualityComparer.Compare(values[indices[j - 1]], value) <= 0) 295indices[j] = indices[j - 1]; 306sorted.Add(values[indices[i]]);
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.Server.HttpSys (18)
RequestProcessing\Response.cs (11)
565unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].NameLength = checked((ushort)bytesLength); 566unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].pName = (PCSTR)bytes; 571unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].RawValueLength = checked((ushort)bytesLength); 572unknownHeaders[_nativeResponse.Base.Headers.UnknownHeaderCount].pRawValue = (PCSTR)bytes; 580knownHeaders[lookup].RawValueLength = checked((ushort)bytesLength); 581knownHeaders[lookup].pRawValue = (PCSTR)bytes; 592knownHeaderInfo[_nativeResponse.ResponseInfoCount].Type = HTTP_RESPONSE_INFO_TYPE.HttpResponseInfoTypeMultipleKnownHeaders; 593knownHeaderInfo[_nativeResponse.ResponseInfoCount].Length = (uint)sizeof(HTTP_MULTIPLE_KNOWN_HEADERS); 610nativeHeaderValues[header->KnownHeaderCount].RawValueLength = checked((ushort)bytesLength); 611nativeHeaderValues[header->KnownHeaderCount].pRawValue = (PCSTR)bytes; 615knownHeaderInfo[_nativeResponse.ResponseInfoCount].pInfo = header;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
60while (scan < raw.Length && raw[scan] != '?')
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (3)
68if (rawPath[reader] == '%') 88rawPath[writer++] = rawPath[reader++]; 242buffer[writer++] = buffer[begin++];
src\aspnetcore\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\aspnetcore\src\Shared\HttpSys\RequestProcessing\RawUrlHelper.cs (1)
60while (scan < raw.Length && raw[scan] != '?')
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (3)
68if (rawPath[reader] == '%') 88rawPath[writer++] = rawPath[reader++]; 242buffer[writer++] = buffer[begin++];
src\aspnetcore\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\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (3)
54if (src[nextIndex] == ByteSlash) 84if (src[nextIndex] == ByteSlash) 90else if (src[nextIndex] == ByteDot)
src\aspnetcore\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.Transport.DirectTls (1)
TlsEventPump.cs (1)
1252int fd = expired[i];
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1073if (!isStreaming[i])
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsInvoker.cs (2)
417if (states[i] > max) 419max = states[i];
Microsoft.AspNetCore.WebUtilities (10)
HttpRequestStreamReader.cs (2)
402if (span[index] == carriageReturn) 432if (span[index] == lineFeed)
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (8)
57if (buffer[sourceIndex] == '+' && isFormEncoding) 62else if (buffer[sourceIndex] == '%') 82buffer[destinationIndex++] = buffer[sourceIndex++]; 238buffer[writer++] = buffer[begin++]; 264if (buffer[scan++] != '%') 308var value = buffer[scan++]; 401if (buffer[sourceIndex] == '%') 421buffer[destinationIndex++] = buffer[sourceIndex++];
Microsoft.Build (19)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
121if (char.IsWhiteSpace(c) && (normalizedCommandIndex == 0 || char.IsWhiteSpace(normalizedBuildCommand[normalizedCommandIndex - 1])))
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\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.Build.Framework (12)
FileUtilities.cs (6)
791bool isCurSlash = IsAnySlash(str[i]); 792bool isPrevSlash = i > 0 && IsAnySlash(str[i - 1]); 796str[sliceLength] = str[i] == '\\' ? '/' : str[i]; 811&& ((path[0] == singleQuote && path[endId] == singleQuote) 812|| (path[0] == doubleQuote && path[endId] == doubleQuote));
Globbing\MSBuildPathMatcher.cs (4)
424if (current[patternIndex] == 0) 458if (current[patternIndex] != 0) 465if (current[_directoryPatterns.Length] != 0) 479if (states[patternIndex] != 0
Utilities\FileMatcher.cs (1)
3198if (activeExcludeSpan[index] != 0
Utilities\ProcessExtensions.cs (1)
190if (decodedChars[i] == '\0')
Microsoft.CodeAnalysis (18)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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.Extensions.Package (18)
src\roslyn\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\roslyn\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\roslyn\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.CSharp (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\ComEventsSink.cs (1)
172pos = namedArgs[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.Diagnostics.DataContractReader.Legacy (24)
_generated\37\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (15)
329__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 382ulong __values_native__nativeSpan____i0__original = __values_native__nativeSpan[__i0]; 383__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 569__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 624ulong __values_native__nativeSpan____i0__original = __values_native__nativeSpan[__i0]; 625__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]); 926__modules_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__modules_native__nativeSpan[__i0]); 981ulong __modules_native__nativeSpan____i0__original = __modules_native__nativeSpan[__i0]; 982__modules_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__modules_native__managedSpan[__i0]); 2321__heaps_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__heaps_native__nativeSpan[__i0]); 2374ulong __heaps_native__nativeSpan____i0__original = __heaps_native__nativeSpan[__i0]; 2375__heaps_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__heaps_native__managedSpan[__i0]); 3988__values_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__values_native__nativeSpan[__i0]); 4043ulong __values_native__nativeSpan____i0__original = __values_native__nativeSpan[__i0]; 4044__values_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__values_native__managedSpan[__i0]);
_generated\40\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4.cs (3)
81__arguments_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__arguments_native__nativeSpan[__i0]); 134ulong __arguments_native__nativeSpan____i0__original = __arguments_native__nativeSpan[__i0]; 135__arguments_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__arguments_native__managedSpan[__i0]);
_generated\46\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10.cs (3)
91__mowList_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__mowList_native__nativeSpan[__i0]); 146ulong __mowList_native__nativeSpan____i0__original = __mowList_native__nativeSpan[__i0]; 147__mowList_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__mowList_native__managedSpan[__i0]);
_generated\55\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (3)
134__args_native__managedSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToManaged(__args_native__nativeSpan[__i0]); 187ulong __args_native__nativeSpan____i0__original = __args_native__nativeSpan[__i0]; 188__args_native__nativeSpan[__i0] = global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddressMarshaller.ConvertToUnmanaged(__args_native__managedSpan[__i0]);
Microsoft.DiaSymReader (126)
_generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (4)
172void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 197void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 263void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 265__variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]);
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (12)
409void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0]; 434void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0]; 499void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0]; 501__parameters_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__parameters_native__managedSpan[__i0]); 602void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 629void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 709void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 711__documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]); 750void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 780void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 879void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 881__documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]);
_generated\20\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (6)
295void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0]; 320void* __parameters_native__nativeSpan____i0_exactType = (void*)__parameters_native__nativeSpan[__i0]; 412void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 439void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 494void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 524void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0];
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (8)
117void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 142void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 207void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 209__namespaces_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(__namespaces_native__managedSpan[__i0]); 250void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 275void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 340void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 342__variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]);
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (20)
155void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 180void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 245void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 247__documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]); 450void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 475void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 540void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 542__variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]); 583void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 608void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 673void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 675__variables_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__variables_native__managedSpan[__i0]); 839void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 864void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 929void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 931__namespaces_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(__namespaces_native__managedSpan[__i0]); 1199void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1225void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1293void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1295__methods_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToUnmanaged(__methods_native__managedSpan[__i0]);
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (14)
197void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 223void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 291void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 293__methods_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod>.ConvertToUnmanaged(__methods_native__managedSpan[__i0]); 372void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 397void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 545void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 570void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 625void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 650void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 770void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 795void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 973void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 999void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0];
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (12)
232void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 257void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 405void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 430void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 485void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 510void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 630void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 655void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 833void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 859void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1045void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1071void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0];
_generated\25\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (12)
267void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 292void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 440void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 465void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 520void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 545void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 665void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 690void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 868void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 894void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1080void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1106void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0];
_generated\26\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (12)
172void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 197void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 345void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 370void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 425void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 450void* __variables_native__nativeSpan____i0_exactType = (void*)__variables_native__nativeSpan[__i0]; 570void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 595void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 773void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 799void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 985void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0]; 1011void* __methods_native__nativeSpan____i0_exactType = (void*)__methods_native__nativeSpan[__i0];
_generated\28\Microsoft.DiaSymReader.ISymUnmanagedScope.cs (12)
192void* __children_native__nativeSpan____i0_exactType = (void*)__children_native__nativeSpan[__i0]; 217void* __children_native__nativeSpan____i0_exactType = (void*)__children_native__nativeSpan[__i0]; 282void* __children_native__nativeSpan____i0_exactType = (void*)__children_native__nativeSpan[__i0]; 284__children_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope>.ConvertToUnmanaged(__children_native__managedSpan[__i0]); 457void* __locals_native__nativeSpan____i0_exactType = (void*)__locals_native__nativeSpan[__i0]; 482void* __locals_native__nativeSpan____i0_exactType = (void*)__locals_native__nativeSpan[__i0]; 547void* __locals_native__nativeSpan____i0_exactType = (void*)__locals_native__nativeSpan[__i0]; 549__locals_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable>.ConvertToUnmanaged(__locals_native__managedSpan[__i0]); 590void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 615void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 680void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 682__namespaces_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace>.ConvertToUnmanaged(__namespaces_native__managedSpan[__i0]);
_generated\29\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (10)
114void* __constants_native__nativeSpan____i0_exactType = (void*)__constants_native__nativeSpan[__i0]; 139void* __constants_native__nativeSpan____i0_exactType = (void*)__constants_native__nativeSpan[__i0]; 204void* __constants_native__nativeSpan____i0_exactType = (void*)__constants_native__nativeSpan[__i0]; 206__constants_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedConstant>.ConvertToUnmanaged(__constants_native__managedSpan[__i0]); 319void* __children_native__nativeSpan____i0_exactType = (void*)__children_native__nativeSpan[__i0]; 344void* __children_native__nativeSpan____i0_exactType = (void*)__children_native__nativeSpan[__i0]; 462void* __locals_native__nativeSpan____i0_exactType = (void*)__locals_native__nativeSpan[__i0]; 487void* __locals_native__nativeSpan____i0_exactType = (void*)__locals_native__nativeSpan[__i0]; 542void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0]; 567void* __namespaces_native__nativeSpan____i0_exactType = (void*)__namespaces_native__nativeSpan[__i0];
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (4)
229void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 254void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 319void* __documents_native__nativeSpan____i0_exactType = (void*)__documents_native__nativeSpan[__i0]; 321__documents_native__nativeSpan____i0_exactType = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument>.ConvertToUnmanaged(__documents_native__managedSpan[__i0]);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
Microsoft.Extensions.DependencyInjection.Abstractions (3)
ActivatorUtilities.cs (3)
823if (_parameterValues[applyIndex] == null && 841if (_parameterValues[i] == null && 862if (_parameterValues[index] == null)
Microsoft.Extensions.Diagnostics (2)
src\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
147ulong value = _bitMap[bitIndex]; 158ulong value = _bitMap[bitIndex];
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)
68var offset = hash[hash.Length - 1] & 0xf; 70var binaryCode = (hash[offset] & 0x7f) << 24 71| (hash[offset + 1] & 0xff) << 16 72| (hash[offset + 2] & 0xff) << 8 73| (hash[offset + 3] & 0xff);
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\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 (50)
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)
598Debug.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)
713id = ByteCodeToIdOffset + destination[j]; 768float bestPathScoreTillHere = bestPathEndsAt[startsAt].BestPathScore;
Normalizer\SentencePieceNormalizer.cs (4)
311span[i] = span[i - 1]; 340if (longestLength == 0 || trieResults[k].Length > longestLength) 342longestLength = trieResults[k].Length; // length of prefix 343longestValue = trieResults[k].Value; // pointer to |_normalized|.
Utils\BytePairEncoder.cs (27)
48var slice = mergingBytes.SliceStartEnd(byteIndicesAndRanks[startIndex].Index, byteIndicesAndRanks[startIndex + skip + 2].Index); 63byteIndicesAndRanks[i].Rank = rank; 72if (byteIndicesAndRanks[i].Rank < minRank.Rank) 74minRank = (i, byteIndicesAndRanks[i].Rank); 81byteIndicesAndRanks[j].Rank = GetRank(byteIndicesAndRanks, j, 1); 84byteIndicesAndRanks[j - 1].Rank = GetRank(byteIndicesAndRanks, j - 1, 1); 99int startIndex = byteIndicesAndRanks[i].Index; 100int endIndex = byteIndicesAndRanks[i + 1].Index; 179state[i].NextRank = rank; 195stateSpan[start].NextEnd = nextEndItem; 196stateSpan[start].NextRank = int.MaxValue; 204stateSpan[start].NextRank = rank; 218if (left.Rank != state[left.Start].NextRank) 224int rightStart = state[leftStart].End; 225int rightEnd = state[leftStart].NextEnd; 226int rightNextEnd = state[rightStart].NextEnd; 228state[leftStart].CurRank = state[leftStart].NextRank; 229state[leftStart].End = rightEnd; 234state[rightEnd].Prev = leftStart; 239int prevStart = state[leftStart].Prev; 243state[rightStart].NextRank = int.MaxValue; 255int endIndex = state[currentIndex].End; 274int tokenId = state[currentIndex].CurRank != int.MaxValue 275? state[currentIndex].CurRank 280currentIndex = state[currentIndex].End;
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.NET.Build.Containers (1)
Layer.cs (1)
326if (header[TypeFlagOffset] != ExtendedHeaderTypeFlag)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (12)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (12)
340while (!IsPlaceable(assets[i], seen)) 343var parentIndex = FindInDeferred(assets[i], deferred); 346deferred.Remove(assets[i].RelatedAsset); 347deferred[assets[i].Identity] = parentIndex; 348(assets[i], assets[parentIndex]) = (assets[parentIndex], assets[i]); 359deferred[assets[i].Identity] = placeableIndex; 360(assets[i], assets[placeableIndex]) = (assets[placeableIndex], assets[i]); 363seen.Add(assets[i].Identity); 381if (IsPlaceable(assets[tail], seen)) 386deferred[assets[tail].Identity] = tail;
Microsoft.NET.Sdk.StaticWebAssets.Tasks (16)
Data\StaticWebAsset.cs (12)
340while (!IsPlaceable(assets[i], seen)) 343var parentIndex = FindInDeferred(assets[i], deferred); 346deferred.Remove(assets[i].RelatedAsset); 347deferred[assets[i].Identity] = parentIndex; 348(assets[i], assets[parentIndex]) = (assets[parentIndex], assets[i]); 359deferred[assets[i].Identity] = placeableIndex; 360(assets[i], assets[placeableIndex]) = (assets[placeableIndex], assets[i]); 363seen.Add(assets[i].Identity); 381if (IsPlaceable(assets[tail], seen)) 386deferred[assets[tail].Identity] = tail;
DefineStaticWebAssets.Cache.cs (1)
99values[j + metadataOffset] = candidate.GetMetadata(candidateAssetMetadata[j]);
Utils\HashingUtils.cs (3)
21writer.Write(values[i]); 38var item = items[i]; 42writer.Write(item.GetMetadata(properties[j]));
Microsoft.Private.Windows.Core (3)
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (1)
33_bufferScope[i] = colors[i];
Windows\Win32\System\Com\SAFEARRAY.cs (2)
75int c1 = indices[indicesIndex++]; 89int diff = (indices[indicesIndex++] - bounds[boundIndex].lLbound);
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\roslyn\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)
76int hashCode = hashCodes[index]; 95int bucketStart = bucketStarts[bucketNum]; 113index = 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)
525Debug.Assert(readBytes[escPos] == Esc); 526Debug.Assert(readBytes[bracketPos] == '['); 527Debug.Assert(readBytes[semiPos] == ';'); 528Debug.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\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (2)
147ulong value = _bitMap[bitIndex]; 158ulong value = _bitMap[bitIndex];
System\Diagnostics\Metrics\AggregatorStore.cs (2)
505labels[i] = new KeyValuePair<string, string>(indexedNames[i], indexedValues[i]?.ToString() ?? "");
System.Diagnostics.EventLog (1)
_generated\0\LibraryImports.g.cs (1)
1470ushort* __valuePaths_native__nativeSpan____i0_exactType = (ushort*)__valuePaths_native__nativeSpan[__i0];
System.Diagnostics.Process (7)
System\Diagnostics\Process.Multiplexing.Unix.cs (7)
144pollFds[numFds].FileDescriptor = errorFd; 145pollFds[numFds].Events = Interop.PollEvents.POLLIN; 146pollFds[numFds].TriggeredEvents = Interop.PollEvents.POLLNONE; 153pollFds[numFds].FileDescriptor = outputFd; 154pollFds[numFds].Events = Interop.PollEvents.POLLIN; 155pollFds[numFds].TriggeredEvents = Interop.PollEvents.POLLNONE; 294if (pollFds[i].TriggeredEvents == Interop.PollEvents.POLLNONE)
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)
945destination[i] = converted[j];
System.IO.Compression (5)
System\IO\Compression\DeflateManaged\HuffmanTree.cs (2)
130tempCode = (tempCode + bitLengthCount[bits - 1]) << 1; 141code[i] = BitReverse(nextCode[len], len);
System\IO\Compression\ZipCryptoStream.cs (3)
168byte p = header[i]; 297destination[i] = DecryptAndUpdateKeys(destination[i]); 408span[i] = DecryptAndUpdateKeys(span[i]);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
1388if (length != 0 && pathBuffer[length - 1] != '/')
System.Net.Http (5)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (5)
1044int length = (uint)carriageReturnIndex < (uint)buffer.Length && buffer[carriageReturnIndex] == '\r' 1108else if (line[MinStatusLineLength] == ' ') 1165if (buffer[colIdx] == '\n') 1194int crOrLfIdx = (uint)crIdx < (uint)valueIterator.Length && valueIterator[crIdx] == '\r' 1204if (valueIterator[spIdx] is not (byte)'\t' and not (byte)' ')
System.Net.Mail (40)
System\Net\Base64Stream.cs (1)
87byte current = buffer[source++];
System\Net\Mime\QEncodedStream.cs (20)
87ReadState.Byte = buffer[source]; 92if (buffer[source] != '\r' || buffer[source + 1] != '\n') 94byte b1 = HexDecodeMap[buffer[source]]; 95byte b2 = HexDecodeMap[buffer[source + 1]]; 97throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 99throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 109if (ReadState.Byte != '\r' || buffer[source] != '\n') 112byte b2 = HexDecodeMap[buffer[source]]; 116throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 133if (buffer[source] != '=') 135if (buffer[source] == '_') 142buffer[destination++] = buffer[source++]; 156ReadState.Byte = buffer[source + 1]; 162if (buffer[source + 1] != '\r' || buffer[source + 2] != '\n') 164byte b1 = HexDecodeMap[buffer[source + 1]]; 165byte b2 = HexDecodeMap[buffer[source + 2]]; 167throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 169throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
System\Net\Mime\QuotedPrintableStream.cs (19)
116ReadState.Byte = buffer[source]; 121if (buffer[source] != '\r' || buffer[source + 1] != '\n') 123byte b1 = HexDecodeMap[buffer[source]]; 124byte b2 = HexDecodeMap[buffer[source + 1]]; 126throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 128throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 138if (ReadState.Byte != '\r' || buffer[source] != '\n') 141byte b2 = HexDecodeMap[buffer[source]]; 145throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 162if (buffer[source] != '=') 164buffer[destination++] = buffer[source++]; 177ReadState.Byte = buffer[source + 1]; 183if (buffer[source + 1] != '\r' || buffer[source + 2] != '\n') 185byte b1 = HexDecodeMap[buffer[source + 1]]; 186byte b2 = HexDecodeMap[buffer[source + 2]]; 188throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 190throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
System.Net.NameResolution (1)
System\Net\DnsResolver.cs (1)
542byte b = bytes[i];
System.Net.Primitives (2)
src\runtime\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\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
451numbers[toIndex--] = numbers[fromIndex];
System.Net.Security (1)
src\runtime\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)
836long payloadLength = _receiveBuffer.Span[_receiveBufferOffset + 1] & 0x7F; 1319header.Fin = (receiveBufferSpan[_receiveBufferOffset] & 0x80) != 0; 1320bool reservedSet = (receiveBufferSpan[_receiveBufferOffset] & 0b_0011_0000) != 0; 1321header.Opcode = (MessageOpcode)(receiveBufferSpan[_receiveBufferOffset] & 0xF); 1322header.Compressed = (receiveBufferSpan[_receiveBufferOffset] & 0b_0100_0000) != 0; 1324bool masked = (receiveBufferSpan[_receiveBufferOffset + 1] & 0x80) != 0; 1325header.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 (212)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (6)
743if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 758if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 795if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 1312while (i < pos && dig[i] != '\0') 1319while (i > 0 && dig[i - 1] == '9') 1337while (i > 0 && dig[i - 1] == '0')
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (2)
65byte digit = Digits[numDigits]; 93byte digit = Digits[i];
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
266attributeValueSpan[parts[i]],
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
827source[localDestIndex - localBytesWritten + i] = buffer[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (6)
539thisRemaining[i] = TBinaryOp.Invoke(thisRemaining[i], valueRemaining[i]); 642uint right = (uint)ReverseIfBE(intSpan[fromIndex]) >> shiftCount; 648mask &= (uint)ReverseIfBE(intSpan[fromIndex]); 693int left = ReverseIfBE(intSpan[fromindex]) << shiftCount; 698intSpan[lastIndex] = ReverseIfBE(ReverseIfBE(intSpan[fromindex]) << shiftCount);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (10)
613newScale -= BitOperations.LeadingZeroCount(result[hiRes]); 739while (result[cur] == 0); 767uint high = result[hiRes]; 772ulong num = result[i] + ((ulong)remainder << 32); 1080tmp64 += Math.BigMul(num[cur], power); 1125while (rgulNum[cur] == 0) 1133if (rgulNum[hiProd] == 0 && --hiProd <= 2) 1160if (rgulNum[cur] != 0) 1560while (product[hiProd] == 0) 2324tmp64 += Math.BigMul(buf[i], power);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
141providersNative[i].Release();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (6)
605rgGCHandle[i] = GCHandle.Alloc(dataRefObj[i], GCHandleType.Pinned); 606if (dataRefObj[i] is string) 608fixed (char* p = (string?)dataRefObj[i]) 609userDataPtr[refObjPosition[i]].Ptr = (ulong)p; 613fixed (byte* p = (byte[]?)dataRefObj[i]) 614userDataPtr[refObjPosition[i]].Ptr = (ulong)p;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (5)
227if (priorMatches[matchCount - 1] == maxState) 244expressionOffset = (priorMatches[priorMatch++] + 1) / 2; 384while ((priorMatch < previousLength) && (priorMatches[priorMatch] < currentMatches[priorMatchCount])) 405currentState = priorMatches[matchCount - 1];
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (2)
237int n = (int)vectors[buffersOffset].Count; 250Interop.Sys.IOVector current = vectors[buffersOffset];
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
4595if (EqualityComparer<T>.Default.Equals(span[i], oldValue)) 4610if (comparer.Equals(span[i], oldValue))
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (2)
803if (!char.IsWhiteSpace(span[start])) 812if (!char.IsWhiteSpace(span[end]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (2)
528result._length = (resultBlocks[largeLength] != 0) ? (largeLength + 1) : largeLength; 813if ((maxResultLength > 0) && (resultBlocks[maxResultLength - 1] == 0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (2)
787int midPointValue = number.Digits[digitsRemain]; 798|| int.IsOddInteger(number.Digits[digitsRemain - 1] - '0')
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128DecimalReduce.cs (3)
207UInt128 product = ((UInt128)integerWords[i] * multiplier) + carry; 291UInt128 cur = ((UInt128)rem << 64) | moduli[i]; 325UInt128 next = acc + ((UInt128)ca * moduli[b]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (3)
413while ((last > curDigit) && (buffer[last] == '0')) 418outputDigit = (uint)(buffer[last] - '0'); 542if (buffer[curDigit] != '9')
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (1)
879if (buffer[i] != ('0' + 10))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (1)
420while ((digitCount > 0) && (buffer[digitCount - 1] == '0'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (26)
261UInt128 p0 = (UInt128)(ulong)left[i] * (ulong)multiplier + (ulong)result[i] + (ulong)carry; 264UInt128 p1 = (UInt128)(ulong)left[i + 1] * (ulong)multiplier + (ulong)result[i + 1] + (ulong)(p0 >> 64); 267UInt128 p2 = (UInt128)(ulong)left[i + 2] * (ulong)multiplier + (ulong)result[i + 2] + (ulong)(p1 >> 64); 270UInt128 p3 = (UInt128)(ulong)left[i + 3] * (ulong)multiplier + (ulong)result[i + 3] + (ulong)(p2 >> 64); 278UInt128 product = (UInt128)(ulong)left[i] * (ulong)multiplier + (ulong)result[i] + (ulong)carry; 288+ result[i] + carry; 316nuint orig0 = result[i]; 323nuint orig1 = result[i + 1]; 330nuint orig2 = result[i + 2]; 337nuint orig3 = result[i + 3]; 349nuint orig = result[i]; 363uint orig = (uint)result[i]; 398_ = bits[right.Length]; 419_ = left[right.Length - 1]; 424left[i] = AddWithCarry(left[i], right[i], carry, out carry); 429nuint sum = left[i] + carry; 454_ = bits[right.Length - 1]; 475_ = left[right.Length - 1]; 480left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 485nuint val = left[i]; 501_ = bits[left.Length]; 550_ = bits[left.Length - 1]; 647nuint t = (uint)i < (uint)left.Length ? left[i] : 0; 650nuint valHi0 = left[i - 1]; 651nuint valLo = i > 1 ? left[i - 2] : 0; 656nuint valNx = i > 2 ? left[i - 3] : 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
523destination[i] = choices[randomBytes[i] & mask]; 661T temp = values[i]; 662values[i] = values[j];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
27publicKeyToken[i] = hash[hash.Length - 1 - i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
901dispatches[i]._thisPtr = (ManagedObjectWrapper*)wrapperMem; 902Span<IntPtr> dispatchVtables = dispatches[i].Vtables; 910dispatchVtables[j] = (index < userDefinedCount) ? userDefined[index].Vtable : runtimeDefinedVtable[index - userDefinedCount];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
143ReadOnlySpan<char> component = frameworkNameSpan[components[i]];
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
124if (bucketIndexes[i] == bucketIndex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
3696object? currentContinuation = continuations[i]; 3749object? currentContinuation = continuations[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
267SafeWaitHandle? safeWaitHandle = safeWaitHandles[i];
System\Reflection\DynamicInvokeInfo.cs (4)
707object? arg = parameters[i]; 779if (shouldCopyBack[i]) 815if (shouldCopyBack[i]) 817object? obj = src[i];
System.Private.CoreLib.Generators (1)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System.Private.Uri (12)
src\runtime\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)
4360if (chars[i] == '%' && (uint)(i + 2) < (uint)chars.Length) 4362char decoded = UriHelper.DecodeHexChars(chars[i + 1], chars[i + 2]); 4372chars[writeOffset++] = chars[i];
System\UriHelper.cs (1)
641char ch = span[i];
System.Private.Windows.Core (22)
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (1)
33_bufferScope[i] = colors[i];
Windows\Win32\System\Com\SAFEARRAY.cs (2)
75int c1 = indices[indicesIndex++]; 89int diff = (indices[indicesIndex++] - bounds[boundIndex].lLbound);
Windows\Win32\System\Variant\VARIANT.cs (19)
340result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 352result[i] = data[i].ToDecimal(); 364result[i] = decimal.FromOACurrency(data[i]); 376result[i] = DateTime.FromOADate(data[i]); 388result[i] = Marshal.PtrToStringUni(data[i]); 401result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 413result[i] = data[i].ToObject(); 494if (++indices[i] <= upper[i]) 499indices[i] = lower[i]; 523int diff = indices[i - 1] - lowerBounds[i - 1]; 772result[i] = data[i] != VARIANT_BOOL.VARIANT_FALSE; 799result[i] = decimal.FromOACurrency(data[i]); 811result[i] = DateTime.FromOADate(data[i]); 823result[i] = data[i].ToDateTime(); 838result[i] = Marshal.PtrToStringUni(data[i]); 850result[i] = Marshal.PtrToStringAnsi(data[i]); 862result[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\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
266attributeValueSpan[parts[i]],
System.Runtime.Numerics (103)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (6)
743if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 758if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 795if (digPos == thousandsSepPos[thousandsSepCtr] + 1) 1312while (i < pos && dig[i] != '\0') 1319while (i > 0 && dig[i - 1] == '9') 1337while (i > 0 && dig[i - 1] == '0')
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (2)
65byte digit = Digits[numDigits]; 93byte digit = Digits[i];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (26)
261UInt128 p0 = (UInt128)(ulong)left[i] * (ulong)multiplier + (ulong)result[i] + (ulong)carry; 264UInt128 p1 = (UInt128)(ulong)left[i + 1] * (ulong)multiplier + (ulong)result[i + 1] + (ulong)(p0 >> 64); 267UInt128 p2 = (UInt128)(ulong)left[i + 2] * (ulong)multiplier + (ulong)result[i + 2] + (ulong)(p1 >> 64); 270UInt128 p3 = (UInt128)(ulong)left[i + 3] * (ulong)multiplier + (ulong)result[i + 3] + (ulong)(p2 >> 64); 278UInt128 product = (UInt128)(ulong)left[i] * (ulong)multiplier + (ulong)result[i] + (ulong)carry; 288+ result[i] + carry; 316nuint orig0 = result[i]; 323nuint orig1 = result[i + 1]; 330nuint orig2 = result[i + 2]; 337nuint orig3 = result[i + 3]; 349nuint orig = result[i]; 363uint orig = (uint)result[i]; 398_ = bits[right.Length]; 419_ = left[right.Length - 1]; 424left[i] = AddWithCarry(left[i], right[i], carry, out carry); 429nuint sum = left[i] + carry; 454_ = bits[right.Length - 1]; 475_ = left[right.Length - 1]; 480left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 485nuint val = left[i]; 501_ = bits[left.Length]; 550_ = bits[left.Length - 1]; 647nuint t = (uint)i < (uint)left.Length ? left[i] : 0; 650nuint valHi0 = left[i - 1]; 651nuint valLo = i > 1 ? left[i - 2] : 0; 656nuint valNx = i > 2 ? left[i - 3] : 0;
System\Number.BigInteger.cs (13)
548Debug.Assert(bits[resultLength] == 0); 559Debug.Assert(bits[resultLength] == 0); 579Debug.Assert(bits[resultLength] == 0); 597UInt128 p = (UInt128)bits[i] * multiplier + carry; 606ulong p = (ulong)multiplier * bits[i] + carry; 642byte head = bits[cur]; 668byte b = bits[cur--]; 774AppendByte(ref sb, bytes[i]); 1144ulong value = ((ulong)(uint)base1E9Buffer[iuDst] << 32) | uCarry; 1413Debug.Assert(toExclusive == pow1E9.Length || pow1E9[toExclusive] == 0); 1526while (--curLength >= 0 && powersOfTen[curLength] == 0) ; 1546UInt128 p = (UInt128)multiplier * bits2[i] + carry; 1555ulong p = (ulong)multiplier * bits2[i] + carry;
System\Numerics\BigInteger.cs (6)
587if ((length == 0) || ((nint)value[length - 1] >= 0)) 593Debug.Assert((nint)value[length - 1] < 0); 1775bool needExtraLimb = (buffer[msb] & highBitMask) != (highLimb & highBitMask); 3694nuint v = limbs[i]; 3725zd[leadingZeroCount] = (nuint)(-(nint)zd[leadingZeroCount]); 5496zd[negLeadingZeroCount] = (nuint)(-(nint)zd[negLeadingZeroCount]);
System\Numerics\BigIntegerCalculator.DivRem.cs (4)
233nuint carryTmp = bits[i] >> carryShift; 234bits[i] = bits[i] << sigmaSmall | carry; 303remainder[i] = rt[i] >> sigmaSmall | carry; 304carry = rt[i] << carryShift;
System\Numerics\BigIntegerCalculator.FastReducer.cs (3)
125_ = left[right.Length - 1]; 130left[i] = SubWithBorrow(left[i], right[i], borrow, out borrow); 135nuint val = left[i];
System\Numerics\BigIntegerCalculator.GcdInv.cs (12)
405long xDigit = a * (long)x[i] - b * (long)y[i] + xCarry; 406long yDigit = d * (long)y[i] - c * (long)x[i] + yCarry; 427long xDigit = a * x32[i] - b * y32[i] + xCarry; 428long yDigit = d * y32[i] - c * x32[i] + yCarry; 441Int128 xDigit = a * (Int128)x[i] - b * (Int128)y[i] + xCarry; 442Int128 yDigit = d * (Int128)y[i] - c * (Int128)x[i] + yCarry;
System\Numerics\BigIntegerCalculator.PowMod.cs (6)
685nuint m = value[i] * n0inv; 692UInt128 p = (UInt128)m * modulus[j] + value[i + j] + carry; 698ulong p = (ulong)m * modulus[j] + value[i + j] + carry; 706nuint sum = value[idx] + carry; 707carry = (sum < value[idx]) ? (nuint)1 : 0; 727upper[j] = SubWithBorrow(upper[j], modulus[j], borrow, out borrow);
System\Numerics\BigIntegerCalculator.ShiftRot.cs (6)
197nuint value = carry2 | bits[i] << shift; 198carry2 = bits[i] >> back; 207nuint value = carry | bits[i] << shift; 208carry = bits[i] >> back; 265remaining[i] = (remaining[i] >> shift) | (remaining[i + 1] << back);
System\Numerics\BigIntegerCalculator.SquMul.cs (17)
168UInt128 digit1 = (UInt128)(ulong)bits[i + j] + carry; 190ulong digit1 = bits[i + j] + carry; 805nuint quo = bits[i] / 3; 806nuint rem = bits[i] - quo * 3; 862_ = core[left.Length - 1]; 871Int128 digit = (Int128)(ulong)core[i] + carry - (ulong)left[i] - (ulong)right[i]; 878Int128 digit = (Int128)(ulong)core[i] + carry - (ulong)left[i]; 885Int128 digit = (Int128)(ulong)core[i] + carry; 896long digit = ((uint)core[i] + carry) - (uint)left[i] - (uint)right[i]; 903long digit = ((uint)core[i] + carry) - (uint)left[i]; 910long digit = (uint)core[i] + carry; 974left[j] = SubWithBorrow(right[j], left[j], borrow, out borrow); 1018left[j] = SubWithBorrow(right[j], left[j], borrow, out borrow); 1031nuint value = carry | bits[i] << 1; 1032carry = bits[i] >> (BitsPerLimb - 1); 1042nuint value = carry | bits[i] >> 1; 1043carry = bits[i] << (BitsPerLimb - 1);
System\Numerics\NumericsHelpers.cs (2)
59d[i] = (nuint)(-(nint)d[i]); 103d[i] = ~d[i];
System.Security.Cryptography (13)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
419destination[i] = (char)(33 + (randomKey[i] & 0b0011_1111));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
244int tmp = carry + into[i] + addend[i];
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (2)
543if (dbMask[i] != 0) 551if (dbMask[emLen - hLen - sLen - 2] != 0x01)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
213int diff = key[i] - FieldPrime[i] - borrow;
System\Security\Cryptography\Base64Transforms.cs (2)
280if (tmpBuffer[len - 2] == padding) 285if (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\X509Certificates\WindowsInterop.crypt32.cs (1)
40Debug.Assert(buffer[cchCount - 1] == '\0');
System\Security\Cryptography\XmlKeyHelper.cs (1)
114while (valBuf[start] == 0)
System.Security.Cryptography.Pkcs (1)
src\runtime\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.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
637Marshal.FreeHGlobal(entries[i].name);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.Ascii.cs (1)
61uint thisChar = tempBuffer[j];
System.Text.Json (23)
src\runtime\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\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
388Debug.Assert(newDbInts[i] >= locationOffset);
System\Text\Json\Serialization\ValueBitArray.cs (2)
37return (_buffer[index / (sizeof(ulong) * 8)] & mask) is not 0; 87_buffer[i] &= other._buffer[i];
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\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
src\runtime\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\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
84keys[i] = (keySelector(span[i]), i);
System.Text.RegularExpressions (5)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System\Text\RegularExpressions\Regex.Replace.cs (2)
681length += span[i].Length; 688ReadOnlySpan<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\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.Pop.cs (1)
17return _span[_pos];
System.Web.HttpUtility (3)
System\Web\Util\HttpEncoder.cs (3)
684if (char.IsHighSurrogate(chars[i])) 686if ((uint)(i + 1) >= (uint)chars.Length || !char.IsLowSurrogate(chars[i + 1])) 696else 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);