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)
354string result = vlb.AsSpan().ToString(); 547string result = FormatFloat(ref vlb, value, format, info) ?? vlb.AsSpan().ToString(); 740string result = vlb.AsSpan().ToString(); 854string result = vlb.AsSpan().ToString(); 970string result = vlb.AsSpan().ToString(); 1086string result = vlb.AsSpan().ToString(); 1204string result = vlb.AsSpan().ToString(); 1322string 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)
1400string dst = ReplaceHelper(oldValue.Length, newValue, replacementIndices.AsSpan()); 1774ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1851ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1852ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan(); 1900ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
2211ReplaceAllInChunk(replacements.AsSpan(), chunk, oldValue.Length, newValue);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6028Task t = WhenAll(builder.AsSpan());