23 references to AsSpan
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (2)
1024string resultString = vlb.AsSpan().ToString(); 1115bool success = Unsafe.AreSame(ref MemoryMarshal.GetReference(destination), ref MemoryMarshal.GetReference(vlb.AsSpan()));
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewNumber.cs (1)
214Rune.DecodeLastFromUtf8(MemoryMarshal.AsBytes(outputBuffer.AsSpan()), out Rune value, out int bytesConsumed);
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
224int[] retVal = builder.AsSpan().ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
45string resultString = vlb.AsSpan().ToString();
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (8)
319string result = vlb.AsSpan().ToString(); 498string result = FormatFloat(ref vlb, value, format, info) ?? vlb.AsSpan().ToString(); 691string result = vlb.AsSpan().ToString(); 805string result = vlb.AsSpan().ToString(); 921string result = vlb.AsSpan().ToString(); 1037string result = vlb.AsSpan().ToString(); 1155string result = vlb.AsSpan().ToString(); 1273string result = vlb.AsSpan().ToString();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (3)
56return new AhoCorasick(_nodes.AsSpan().ToArray(), _startingAsciiChars); 216if (Ascii.IsValid(startingChars.AsSpan())) 218IndexOfAnyAsciiSearcher.ComputeAsciiState(startingChars.AsSpan(), out _startingAsciiChars);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
1404string dst = ReplaceHelper(oldValue.Length, newValue, replacementIndices.AsSpan()); 1720ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1797ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1798ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan(); 1843ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
2176ReplaceAllInChunk(replacements.AsSpan(), chunk, oldValue.Length, newValue);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5962Task t = WhenAll(builder.AsSpan());