27 references to AsSpan
ILCompiler.ReadyToRun (27)
ObjectWriter\MapFileBuilder.cs (2)
53
Debug.Assert(Name.
AsSpan
().SequenceEqual(node.Name.
AsSpan
()));
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (7)
41
=> SanitizeName(s.
AsSpan
());
108
mangledName = new Utf8String(mangledName.
AsSpan
().Slice(0, 30).ToArray());
110
if (hash is not null || !mangledName.
AsSpan
().SequenceEqual(literal.
AsSpan
()))
116
hash ??= SHA256.HashData(literal.
AsSpan
());
152
origName.
AsSpan
().CopyTo(buffer);
696
byte[] hash = ContainsUtf8ReplacementCharacter(utf8Literal.
AsSpan
())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (1)
771
Name.
AsSpan
().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
313
Name = Utf8String.Concat(externSymbol.
AsSpan
(), "$thunk"u8),
348
if (_symbolNameToIndex.TryGetValue(Utf8String.Concat(externSymbol.
AsSpan
(), "$thunk"u8), out uint thunkSymbolIndex))
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (3)
438
if (symbolName.
AsSpan
().StartsWith((byte)'.'))
1004
private protected override Utf8String ExternCName(Utf8String name) => Utf8String.Concat("_"u8, name.
AsSpan
());
1006
private static bool IsSectionSymbolName(Utf8String symbolName) => symbolName.
AsSpan
().StartsWith((byte)'l');
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
444
? (field = Utf8String.Concat(_nodeFactory.NameMangler.CompilationUnitPrefix.
AsSpan
(), "__ExportDirectory"u8))
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
126
value.
AsSpan
().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (4)
57
if (!lastText.IsNull && lastText.
AsSpan
().EndsWith(text.
AsSpan
()))
76
return str.
AsSpan
()[index];
161
_stream.Write(text.
AsSpan
());
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (5)
78
return
AsSpan
().SequenceEqual(other.
AsSpan
());
83
return strA.
AsSpan
().SequenceCompareTo(strB.
AsSpan
());
102
s.
AsSpan
().CopyTo(resultSpan);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
43
return Append(value.
AsSpan
());