1841 references to Slice
aspire (5)
Aspire.Dashboard (7)
Aspire.Hosting (7)
Aspire.Playground.Tests (1)
http2cat (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
IIS.FunctionalTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
IIS.LongTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
IIS.NewHandler.FunctionalTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
IIS.NewShim.FunctionalTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
IISExpress.FunctionalTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
illink (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
InMemory.FunctionalTests (15)
Http2\Http2TestBase.cs (13)
661var extendedHeader = buffer.Slice(0, extendedHeaderLength);
663var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
666var padding = buffer.Slice(extendedHeaderLength + length, padLength);
677writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
703var extendedHeader = buffer.Slice(0, extendedHeaderLength);
718writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
749var extendedHeader = buffer.Slice(0, extendedHeaderLength);
753var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
756var padding = buffer.Slice(extendedHeaderLength + length, padLength);
767writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
878await SendAsync(buffer.Span.Slice(0, length));
948await SendAsync(buffer.Span.Slice(0, length));
976await SendAsync(buffer.Span.Slice(0, length));
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Web (4)
Microsoft.AspNetCore.DataProtection (19)
Managed\ManagedAuthenticatedEncryptor.cs (13)
199? stackalloc byte[256].Slice(0, _keyDerivationKey.Length)
207? stackalloc byte[128].Slice(0, _validationAlgorithmSubkeyLengthInBytes)
213? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes)
310? stackalloc byte[256].Slice(0, _keyDerivationKey.Length)
319? stackalloc byte[128].Slice(0, _validationAlgorithmSubkeyLengthInBytes)
328? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes)
342? stackalloc byte[128].Slice(0, keyModifierLength)
387keyModifier.CopyTo(outputSpan.Slice(start: 0, length: keyModifierLength));
391var iv = outputSpan.Slice(start: keyModifierLength, length: ivLength);
405symmetricAlgorithm.EncryptCbc(plainTextSpan, iv, outputSpan.Slice(start: keyModifierLength + ivLength, length: cipherTextLength));
413var ivAndCipherTextSpan = outputSpan.Slice(start: keyModifierLength, length: ivLength + cipherTextLength);
414var macDestinationSpan = outputSpan.Slice(keyModifierLength + ivLength + cipherTextLength, macLength);
492? stackalloc byte[128].Slice(0, hashSize)
Microsoft.AspNetCore.Http.Abstractions (6)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.Http.Extensions (16)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (13)
93string s = _chars.Slice(0, _pos).ToString();
112return _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
121if (_chars.Slice(0, _pos).TryCopyTo(destination))
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
144_chars.Slice(index, count).Fill(value);
163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
222Span<char> dst = _chars.Slice(_pos, count);
238Span<char> dst = _chars.Slice(_pos, length);
268return _chars.Slice(origPos, length);
295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.HttpLogging (14)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (13)
93string s = _chars.Slice(0, _pos).ToString();
112return _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
121if (_chars.Slice(0, _pos).TryCopyTo(destination))
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
144_chars.Slice(index, count).Fill(value);
163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
222Span<char> dst = _chars.Slice(_pos, count);
238Span<char> dst = _chars.Slice(_pos, length);
268return _chars.Slice(origPos, length);
295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Routing.Tests (8)
Matching\DfaMatcherTest.cs (8)
372var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
399var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
426var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
453var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
478var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
504var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
531var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
558var set = matcher.FindCandidateSet(context, path, buffer.AsSpan().Slice(0, count));
Microsoft.AspNetCore.Server.HttpSys (10)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (18)
src\Shared\Http2cat\Http2Utilities.cs (15)
204writableBuffer.Write(buffer.Slice(0, length));
219writableBuffer.Write(buffer.Slice(0, length));
290var extendedHeader = buffer.Slice(0, extendedHeaderLength);
292var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
295var padding = buffer.Slice(extendedHeaderLength + length, padLength);
306writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
330var extendedHeader = buffer.Slice(0, extendedHeaderLength);
345writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
374var extendedHeader = buffer.Slice(0, extendedHeaderLength);
378var payload = buffer.Slice(extendedHeaderLength, buffer.Length - padLength - extendedHeaderLength);
381var padding = buffer.Slice(extendedHeaderLength + length, padLength);
392writableBuffer.Write(buffer.Slice(0, frame.PayloadLength));
510await SendAsync(buffer.Span.Slice(0, length));
575await SendAsync(buffer.Span.Slice(0, length));
603await SendAsync(buffer.Span.Slice(0, length));
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (5)
Microsoft.AspNetCore.Server.IIS (10)
Microsoft.AspNetCore.Server.Kestrel.Core (34)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (33)
Http2\Http2HPackEncoderTests.cs (16)
27var result = buffer.Slice(0, length).ToArray();
50var result = buffer.Slice(5, length - 5).ToArray();
78var result = buffer.Slice(0, length).ToArray();
120result = buffer.Slice(0, length).ToArray();
161result = buffer.Slice(0, length).ToArray();
222var result = buffer.Slice(0, length).ToArray();
264result = buffer.Slice(0, length).ToArray();
305result = buffer.Slice(0, length).ToArray();
542Assert.Equal(HeaderWriteResult.MoreHeaders, HPackHeaderWriter.BeginEncodeHeaders(statusCode, hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out var length));
544Assert.Equal(expectedStatusCodePayload, payload.Slice(0, length).ToArray());
549Assert.Equal(HeaderWriteResult.MoreHeaders, HPackHeaderWriter.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
551Assert.Equal(expectedDateHeaderPayload, payload.Slice(offset, length).ToArray());
556Assert.Equal(HeaderWriteResult.MoreHeaders, HPackHeaderWriter.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
558Assert.Equal(expectedContentTypeHeaderPayload, payload.Slice(offset, length).ToArray());
563Assert.Equal(HeaderWriteResult.Done, HPackHeaderWriter.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
565Assert.Equal(expectedServerHeaderPayload, payload.Slice(offset, length).ToArray());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Shared.Tests (22)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.WebSockets (14)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (13)
93string s = _chars.Slice(0, _pos).ToString();
112return _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
121if (_chars.Slice(0, _pos).TryCopyTo(destination))
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
144_chars.Slice(index, count).Fill(value);
163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
222Span<char> dst = _chars.Slice(_pos, count);
238Span<char> dst = _chars.Slice(_pos, length);
268return _chars.Slice(origPos, length);
295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.WebUtilities (8)
Microsoft.Build (4)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Framework (8)
ArraySortHelper.cs (8)
758InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
764HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
769int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
772IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
999InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1005HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1010int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1013IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (19)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.CodeStyle (19)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.Collections.Package (12)
Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\Source\NullablePublicAPITests.cs (5)
3259verifyAnnotation(indexers.Slice(0, 2), PublicNullableAnnotation.Annotated, PublicNullableAnnotation.NotAnnotated);
3260verifyAnnotation(indexers.Slice(2, 2), PublicNullableAnnotation.NotAnnotated, PublicNullableAnnotation.Annotated);
3261verifyAnnotation(indexers.Slice(4, 2), PublicNullableAnnotation.NotAnnotated, PublicNullableAnnotation.NotAnnotated);
3311verifyAnnotation(elementAccesses.Slice(0, 2), PublicNullableAnnotation.Annotated);
3312verifyAnnotation(elementAccesses.Slice(2, 2), PublicNullableAnnotation.NotAnnotated);
Microsoft.CodeAnalysis.InteractiveHost (12)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.Threading.Package (12)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.Workspaces (20)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
762InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
768HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
773int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer!);
776IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit, comparer!);
1001InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1007HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1012int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
1015IntroSort(keys.Slice(p + 1, partitionSize - (p + 1)), values.Slice(p + 1, partitionSize - (p + 1)), depthLimit);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
ChecksumTests.cs (5)
61AssertEqual(Checksum.Create(builder[0], builder[1]), builder.Slice(0, 2));
62AssertEqual(Checksum.Create(builder[0], builder[1], builder[2]), builder.Slice(0, 3));
63AssertEqual(Checksum.Create(builder[0], builder[1], builder[2], builder[3]), builder.Slice(0, 4));
67var toValidate = builder.Slice(0, i);
92var toValidate = builder.Slice(0, i);
Microsoft.Data.Analysis (5)
Microsoft.Extensions.Compliance.Abstractions (4)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.DependencyInjection.Abstractions (3)
Microsoft.Extensions.Logging.Abstractions (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.ML.Core (7)
Microsoft.ML.CpuMath (5)
CpuMathUtils.cs (5)
75TensorPrimitives.MultiplyAdd(source.Slice(0, count), scale, destination.Slice(0, count), destination);
97TensorPrimitives.MultiplyAdd(source.Slice(0, count), scale, destination.Slice(0, count), result.Slice(0, count));
115TensorPrimitives.Add(source.Slice(0, count), destination.Slice(0, count), destination.Slice(0, count));
136TensorPrimitives.Multiply(left.Slice(0, count), right.Slice(0, count), destination.Slice(0, count));
Microsoft.ML.Data (2)
Microsoft.ML.DataView (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.ImageAnalytics (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tokenizers (69)
Model\CodeGenTokenizer.cs (13)
352span = mutatedInputSpan.Slice(0, span.Length + 1);
464List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
609span = mutatedInputSpan.Slice(0, span.Length + 1);
828span = mutatedInputSpan.Slice(0, span.Length + 1);
965span = mutatedInputSpan.Slice(0, span.Length + 1);
1147List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
1211List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda);
1482current = utf8bytes.Slice(incompleteUtf8BytesInBufferIndex, incompleteUtf8BytesInBuffer + span.Length);
1496vocabBuffer.Slice(0, completeCharsWritten).CopyTo(buffer);
1663if (_vocab.TryGetValue(text.Slice(symbols[index].pieceSpan.Index, symbols[index].pieceSpan.Length), out (int Id, string Token) value))
Model\SentencePieceUnigramModel.cs (13)
256normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
284normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
307int normalizationCount = Normalizer!.Normalize(byteSpan.Slice(0, byteCount), ref normalizationSpan, ref normalizedArrayPool);
308normalizationSpan = normalizationSpan.Slice(0, normalizationCount);
322normalizationSpan = byteSpan.Slice(0, byteCount);
362string stringToken = node.Id == UnknownId ? Helpers.GetString(normalizationSpan.Slice(node.StartsAt, endsAt - node.StartsAt)) : _vocabReverse[node.Id].Piece;
700normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
722normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
887ReadOnlySpan<byte> utf8UnknownBytes = normalizationSpan.Slice(unknownTokensTracking![j].Utf8Index, unknownTokensTracking![j].Utf8Length);
1070normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
1092normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString();
1184charsConsumed += Helpers.GetUtf16LengthFromUtf8Bytes(normalizationSpan.Slice(ids[i].UtfStartOffset, ids[i].Utf8Length));
1395consumedCharacters += Helpers.GetUtf16LengthFromUtf8Bytes(normalizationSpan.Slice(node.StartsAt, length));
Model\TiktokenTokenizer.cs (8)
331(int Id, int TokenIndex, int TokenLength)[] encodedTokens = BytePairEncoder.BytePairEncode(arrayPoolArray.AsMemory(0, encodedLength), _encoder, indexMappingSpan.Slice(0, encodedLength + 1));
448(int Id, int TokenIndex, int TokenLength)[] encodedTokens = BytePairEncoder.BytePairEncode(arrayPoolArray.AsMemory(0, encodedLength), _encoder, indexMappingSpan.Slice(0, encodedLength + 1));
613(int Id, int TokenIndex, int TokenLength)[] encodedTokens = BytePairEncoder.BytePairEncode(arrayPoolArray.AsMemory(0, encodedLength), _encoder, indexMappingSpan.Slice(0, encodedLength + 1));
739(int Id, int TokenIndex, int TokenLength)[] encodedTokens = BytePairEncoder.BytePairEncode(arrayPoolArray.AsMemory(0, encodedLength), _encoder, indexMappingSpan.Slice(0, encodedLength + 1));
829return Helpers.GetString(utf8Bytes.Slice(0, utf8ByteCount));
922tempBuffer.Slice(0, incompleteCharsWritten).CopyTo(buffer);
945if (!Helpers.ConvertUtf8ToUtf16(utf8Bytes.Slice(utf8BytesIncompleteIndex, utf8BytesIncompleteCount + tokenBytes.Length), tempBuffer, out int bytesConsumed, out int charsConsumed))
955tempBuffer.Slice(0, charsConsumed).CopyTo(buffer);
Utils\ValueStringBuilder.cs (19)
95Span<char> span = _chars.Slice(0, _pos);
104string s = _chars.Slice(0, _pos).ToString();
123return _chars.Slice(0, _pos);
137public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
138public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
139public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
143if (_chars.Slice(0, _pos).TryCopyTo(destination))
165ReadOnlySpan<char> buffer = _chars.Slice(index, _pos - index);
180_chars.Slice(newIndex, _pos - newIndex).CopyTo(_chars.Slice(index + newLength));
189_chars.Slice(newIndex, _pos - newIndex).CopyTo(_chars.Slice(index + newLength));
213_chars.Slice(start + length, remaining).CopyTo(_chars.Slice(start));
226return _chars.Slice(_pos - valueLength, valueLength).SequenceEqual(value.AsSpan());
237_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
238_chars.Slice(index, count).Fill(value);
257_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
325Span<char> dst = _chars.Slice(_pos, count);
341Span<char> dst = _chars.Slice(_pos, length);
371return _chars.Slice(origPos, length);
407_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.ML.Tokenizers.Tests (22)
LlamaTests.cs (11)
310status = tokenizer.Decode(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten);
848Assert.Equal(OperationStatus.DestinationTooSmall, tokenizer.Decode(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten));
850Assert.True(decodedWithNoSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten)));
862Assert.Equal(OperationStatus.DestinationTooSmall, tokenizer.Decode(ids, destinationBuffer.AsSpan().Slice(0, i), considerSpecialTokens: true, out idsConsumed, out charactersWritten));
864Assert.True(textWithSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten)));
887Assert.Equal(OperationStatus.DestinationTooSmall, tokenizerWithSuffix.Decode(ids, destinationBuffer.AsSpan().Slice(0, i), out idsConsumed, out charactersWritten));
889Assert.True(decodedWithNoSpecialTokens.AsSpan().StartsWith(destinationBuffer.AsSpan().Slice(0, charactersWritten)));
895Assert.Equal(decodedWithNoSpecialTokens, destinationBuffer.AsSpan().Slice(0, charactersWritten).ToString());
901Assert.Equal(OperationStatus.DestinationTooSmall, tokenizerWithSuffix.Decode(ids, destinationBuffer.AsSpan().Slice(0, i), considerSpecialTokens: true, out idsConsumed, out charactersWritten));
903var sp = destinationBuffer.AsSpan().Slice(0, charactersWritten);
906sp = sp.Slice(0, sp.Length - 1);
UnigramTests.cs (3)
545Assert.Equal(decodedString, buffer.AsSpan().Slice(0, charsWritten).ToString());
549status = tokenizer.Decode(ids, buffer.AsSpan().Slice(0, i), considerSpecialTokens: false, out idsConsumed, out charsWritten);
551Assert.Equal(decodedString.AsSpan().Slice(0, charsWritten).ToString(), buffer.AsSpan().Slice(0, charsWritten).ToString());
Microsoft.ML.Transforms (4)
Microsoft.Net.Http.Headers (1)
MSBuild (2)
PresentationCore (2)
PresentationFramework (6)
MS\Internal\AppModel\ResourceContainer.cs (6)
210UpdateCachedRMW(key.Slice(0, assemblyName.Length), assembly);
216UpdateCachedRMW(key.Slice(0, assemblyName.Length + assemblyVersion.Length), assembly);
225UpdateCachedRMW(key.Slice(0, totalLength), assembly);
230UpdateCachedRMW(key.Slice(0, assemblyName.Length + assemblyToken.Length), assembly);
273if (!s_registeredResourceManagersLookup.TryGetValue(key.Slice(0, totalLength), out rmwResult))
286s_registeredResourceManagersLookup[key.Slice(0, totalLength)] = rmwResult;
System.Collections (1)
System.Collections.Immutable (1)
System.Collections.Specialized (1)
System.Console (20)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Diagnostics.DiagnosticSource (15)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Diagnostics.FileVersionInfo (1)
System.Diagnostics.Process (17)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Diagnostics.TextWriterTraceListener (3)
System.Formats.Asn1 (18)
System.Formats.Cbor (5)
System.Formats.Nrbf (1)
System.Formats.Tar (43)
System.IO.Compression (102)
System\IO\Compression\ZipArchiveEntry.cs (38)
593ZipCentralDirectoryFileHeader.SignatureConstantBytes.CopyTo(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.Signature..]);
596BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
597BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
598BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.CompressionMethod..], (ushort)CompressionMethod);
599BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
600BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.Crc32..], _crc32);
601BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.CompressedSize..], compressedSizeTruncated);
602BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
603BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
604BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.ExtraFieldLength..], extraFieldLength);
605BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.FileCommentLength..], (ushort)_fileComment.Length);
606BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.DiskNumberStart..], 0);
607BinaryPrimitives.WriteUInt16LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.InternalFileAttributes..], 0);
608BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.ExternalFileAttributes..], _externalFileAttr);
609BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.RelativeOffsetOfLocalHeader..], offsetOfLocalHeaderTruncated);
1063ZipLocalFileHeader.SignatureConstantBytes.CopyTo(lfStaticHeader[ZipLocalFileHeader.FieldLocations.Signature..]);
1064BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.VersionNeededToExtract..], (ushort)_versionToExtract);
1065BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.GeneralPurposeBitFlags..], (ushort)_generalPurposeBitFlag);
1066BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.CompressionMethod..], (ushort)CompressionMethod);
1067BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
1068BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.Crc32..], _crc32);
1069BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.CompressedSize..], compressedSizeTruncated);
1070BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.UncompressedSize..], uncompressedSizeTruncated);
1071BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.FilenameLength..], (ushort)_storedEntryNameBytes.Length);
1072BinaryPrimitives.WriteUInt16LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.ExtraFieldLength..], extraFieldLength);
1236BinaryPrimitives.WriteUInt16LittleEndian(writeBuffer[relativeVersionToExtractLocation..], (ushort)_versionToExtract);
1237BinaryPrimitives.WriteUInt16LittleEndian(writeBuffer[relativeGeneralPurposeBitFlagsLocation..], (ushort)_generalPurposeBitFlag);
1250BinaryPrimitives.WriteUInt32LittleEndian(writeBuffer[relativeCrc32Location..], _crc32);
1251BinaryPrimitives.WriteUInt32LittleEndian(writeBuffer[relativeCompressedSizeLocation..], compressedSizeTruncated);
1252BinaryPrimitives.WriteUInt32LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], uncompressedSizeTruncated);
1268BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeUncompressedSizeLocation..], _uncompressedSize);
1269BinaryPrimitives.WriteInt64LittleEndian(writeBuffer[relativeCompressedSizeLocation..], _compressedSize);
1302ZipLocalFileHeader.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.Signature..]);
1303BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.Crc32..], _crc32);
1307BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.CompressedSize..], _compressedSize);
1308BinaryPrimitives.WriteInt64LittleEndian(dataDescriptor[ZipLocalFileHeader.Zip64DataDescriptor.FieldLocations.UncompressedSize..], _uncompressedSize);
1314BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.CompressedSize..], (uint)_compressedSize);
1315BinaryPrimitives.WriteUInt32LittleEndian(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.UncompressedSize..], (uint)_uncompressedSize);
System\IO\Compression\ZipBlocks.cs (58)
40BinaryPrimitives.WriteUInt16LittleEndian(extraFieldHeader[FieldLocations.Tag..], _tag);
41BinaryPrimitives.WriteUInt16LittleEndian(extraFieldHeader[FieldLocations.Size..], _size);
371BinaryPrimitives.WriteUInt16LittleEndian(extraFieldData[FieldLocations.Tag..], TagConstant);
372BinaryPrimitives.WriteUInt16LittleEndian(extraFieldData[FieldLocations.Size..], _size);
376BinaryPrimitives.WriteInt64LittleEndian(extraFieldData[startOffset..], _uncompressedSize.Value);
382BinaryPrimitives.WriteInt64LittleEndian(extraFieldData[startOffset..], _compressedSize.Value);
388BinaryPrimitives.WriteInt64LittleEndian(extraFieldData[startOffset..], _localHeaderOffset.Value);
394BinaryPrimitives.WriteUInt32LittleEndian(extraFieldData[startOffset..], _startDiskNumber.Value);
429NumberOfDiskWithZip64EOCD = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.NumberOfDiskWithZip64EOCD..]),
430OffsetOfZip64EOCD = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.OffsetOfZip64EOCD..]),
431TotalNumberOfDisks = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.TotalNumberOfDisks..])
450SignatureConstantBytes.CopyTo(blockContents[FieldLocations.Signature..]);
452BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.NumberOfDiskWithZip64EOCD..], 0);
453BinaryPrimitives.WriteInt64LittleEndian(blockContents[FieldLocations.OffsetOfZip64EOCD..], zip64EOCDRecordStart);
455BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.TotalNumberOfDisks..], 1);
502SizeOfThisRecord = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.SizeOfThisRecord..]),
503VersionMadeBy = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.VersionMadeBy..]),
504VersionNeededToExtract = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.VersionNeededToExtract..]),
505NumberOfThisDisk = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.NumberOfThisDisk..]),
506NumberOfDiskWithStartOfCD = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.NumberOfDiskWithStartOfCD..]),
507NumberOfEntriesOnThisDisk = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.NumberOfEntriesOnThisDisk..]),
508NumberOfEntriesTotal = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.NumberOfEntriesTotal..]),
509SizeOfCentralDirectory = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.SizeOfCentralDirectory..]),
510OffsetOfCentralDirectory = BinaryPrimitives.ReadUInt64LittleEndian(blockContents[FieldLocations.OffsetOfCentralDirectory..])
530SignatureConstantBytes.CopyTo(blockContents[FieldLocations.Signature..]);
531BinaryPrimitives.WriteUInt64LittleEndian(blockContents[FieldLocations.SizeOfThisRecord..], NormalSize);
533BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.VersionMadeBy..], (ushort)ZipVersionNeededValues.Zip64);
535BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.VersionNeededToExtract..], (ushort)ZipVersionNeededValues.Zip64);
537BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.NumberOfThisDisk..], 0);
539BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.NumberOfDiskWithStartOfCD..], 0);
541BinaryPrimitives.WriteInt64LittleEndian(blockContents[FieldLocations.NumberOfEntriesOnThisDisk..], numberOfEntries);
543BinaryPrimitives.WriteInt64LittleEndian(blockContents[FieldLocations.NumberOfEntriesTotal..], numberOfEntries);
544BinaryPrimitives.WriteInt64LittleEndian(blockContents[FieldLocations.SizeOfCentralDirectory..], sizeOfCentralDirectory);
545BinaryPrimitives.WriteInt64LittleEndian(blockContents[FieldLocations.OffsetOfCentralDirectory..], startOfCentralDirectory);
574filenameLength = BinaryPrimitives.ReadUInt16LittleEndian(fixedHeaderBuffer[relativeFilenameLengthLocation..]);
575extraFieldLength = BinaryPrimitives.ReadUInt16LittleEndian(fixedHeaderBuffer[relativeExtraFieldLengthLocation..]);
599Span<byte> extraFieldBuffer = extraFieldLength <= StackAllocationThreshold ? stackalloc byte[StackAllocationThreshold].Slice(0, extraFieldLength) : arrayPoolBuffer.AsSpan(0, extraFieldLength);
647ushort filenameLength = BinaryPrimitives.ReadUInt16LittleEndian(blockBytes[relativeFilenameLengthLocation..]);
648ushort extraFieldLength = BinaryPrimitives.ReadUInt16LittleEndian(blockBytes[relativeExtraFieldLengthLocation..]);
818Span<byte> collatedHeader = dynamicHeaderSize <= StackAllocationThreshold ? stackalloc byte[StackAllocationThreshold].Slice(0, dynamicHeaderSize) : arrayPoolBuffer.AsSpan(0, dynamicHeaderSize);
822Debug.Assert(bytesToRead == collatedHeader[remainingBufferLength..].Length);
823int realBytesRead = furtherReads.ReadAtLeast(collatedHeader[remainingBufferLength..], bytesToRead, throwOnEndOfStream: false);
881SignatureConstantBytes.CopyTo(blockContents[FieldLocations.Signature..]);
883BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.NumberOfThisDisk..], 0);
885BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.NumberOfTheDiskWithTheStartOfTheCentralDirectory..], 0);
887BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.NumberOfEntriesInTheCentralDirectoryOnThisDisk..], numberOfEntriesTruncated);
889BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.NumberOfEntriesInTheCentralDirectory..], numberOfEntriesTruncated);
890BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.SizeOfCentralDirectory..], sizeOfCentralDirectoryTruncated);
891BinaryPrimitives.WriteUInt32LittleEndian(blockContents[FieldLocations.OffsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber..], startOfCentralDirectoryTruncated);
897BinaryPrimitives.WriteUInt16LittleEndian(blockContents[FieldLocations.ArchiveCommentLength..], (ushort)archiveComment.Length);
929Signature = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.Signature..]),
930NumberOfThisDisk = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.NumberOfThisDisk..]),
931NumberOfTheDiskWithTheStartOfTheCentralDirectory = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.NumberOfTheDiskWithTheStartOfTheCentralDirectory..]),
932NumberOfEntriesInTheCentralDirectoryOnThisDisk = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.NumberOfEntriesInTheCentralDirectoryOnThisDisk..]),
933NumberOfEntriesInTheCentralDirectory = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.NumberOfEntriesInTheCentralDirectory..]),
934SizeOfCentralDirectory = BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.SizeOfCentralDirectory..]),
936BinaryPrimitives.ReadUInt32LittleEndian(blockContents[FieldLocations.OffsetOfStartOfCentralDirectoryWithRespectToTheStartingDiskNumber..])
939ushort commentLength = BinaryPrimitives.ReadUInt16LittleEndian(blockContents[FieldLocations.ArchiveCommentLength..]);
System.IO.Compression.Brotli (2)
System.IO.FileSystem.Watcher (12)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.IO.Hashing (4)
System.IO.MemoryMappedFiles (1)
System.Linq (1)
System.Memory (2)
System.Net.Http (43)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (7)
444string response = Encoding.ASCII.GetString(_incomingBuffer.ActiveSpan.Slice(0, Math.Min(20, _incomingBuffer.ActiveLength)));
670GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), frameHeader.PaddedFlag, frameHeader.PriorityFlag),
686_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength),
754ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength);
787ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), hasPad: frameHeader.PaddedFlag, hasPriority: false);
841ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength);
995ReadOnlySpan<byte> pingContent = _incomingBuffer.ActiveSpan.Slice(0, FrameHeader.PingLength);
System.Net.HttpListener (1)
System.Net.Mail (16)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Net.Ping (2)
System.Net.Primitives (4)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (21)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (14)
404Span<byte> blob = payload.Slice(payloadOffset, sizeof(NtChallengeResponse) + serverInfo.Length);
405ref NtChallengeResponse temp = ref MemoryMarshal.AsRef<NtChallengeResponse>(blob.Slice(0, sizeof(NtChallengeResponse)));
621ref AuthenticateMessage response = ref MemoryMarshal.AsRef<AuthenticateMessage>(responseAsSpan.Slice(0, sizeof(AuthenticateMessage)));
644payload.Slice(payloadOffset, ChallengeResponseLength).Clear();
665int sessionKeyWritten = HMACMD5.HashData(ntlm2hash, responseAsSpan.Slice(response.NtChallengeResponse.PayloadOffset, 16), sessionBaseKey);
671Span<byte> encryptedRandomSessionKey = payload.Slice(payloadOffset, 16);
724hmac.AppendData(signature.Slice(12, 4));
728seal.Transform(hmacResult.Slice(0, 8), signature.Slice(4, 8));
770_clientSeal.Transform(input, output.Slice(SignatureLength, input.Length));
771CalculateSignature(input, _clientSequenceNumber, _clientSigningKey, _clientSeal, output.Slice(0, SignatureLength));
795_serverSeal.Transform(input.Slice(SignatureLength), output.Slice(0, input.Length - SignatureLength));
796if (!VerifyMIC(output.Slice(0, input.Length - SignatureLength), input.Slice(0, SignatureLength)))
824if (!VerifyMIC(input.Slice(SignatureLength), input.Slice(0, SignatureLength)))
System.Net.Sockets (13)
System\Net\Sockets\Socket.cs (11)
159new IPAddress((long)SocketAddressPal.GetIPv4Address(buffer.Slice(0, bufferLength)) & 0x0FFFFFFFF),
165SocketAddressPal.GetIPv6Address(buffer.Slice(0, bufferLength), address, out uint scope);
174_rightEndPoint = new UnixDomainSocketEndPoint(buffer.Slice(0, bufferLength));
193new IPAddress((long)SocketAddressPal.GetIPv4Address(buffer.Slice(0, bufferLength)) & 0x0FFFFFFFF),
199SocketAddressPal.GetIPv6Address(buffer.Slice(0, bufferLength), address, out uint scope);
208_remoteEndPoint = new UnixDomainSocketEndPoint(buffer.Slice(0, bufferLength));
327_localEndPoint = IPEndPointExtensions.CreateIPEndPoint(buffer.Slice(0, size));
332buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span);
373_remoteEndPoint = IPEndPointExtensions.CreateIPEndPoint(buffer.Slice(0, size));
378buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span);
814socketAddress.Buffer.Span.Slice(0, socketAddress.Size));
System.Net.WebProxy (1)
System.Net.WebSockets (11)
System\Net\WebSockets\ManagedWebSocket.cs (9)
931_receiveBuffer.Span.Slice(_receiveBufferOffset, receiveBufferBytesToCopy).CopyTo(
960_inflater!.Span.Slice(0, totalBytesReceived) :
961payloadBuffer.Span.Slice(0, totalBytesReceived), header.Mask, _receivedMaskOffsetOffset);
986!TryValidateUtf8(payloadBuffer.Span.Slice(0, totalBytesReceived), header.EndOfMessage, _utf8TextState))
1104ApplyMask(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength), header.Mask, 0);
1117closeStatusDescription = s_textEncoding.GetString(_receiveBuffer.Span.Slice(_receiveBufferOffset + 2, (int)header.PayloadLength - 2));
1194ApplyMask(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength), header.Mask, 0);
1213long pongPayload = BinaryPrimitives.ReadInt64BigEndian(_receiveBuffer.Span.Slice(_receiveBufferOffset, (int)header.PayloadLength));
1595_receiveBuffer.Span.Slice(_receiveBufferOffset, _receiveBufferCount).CopyTo(_receiveBuffer.Span);
System.Net.WebSockets.Client (2)
System.Numerics.Tensors (12)
System.Private.CoreLib (139)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (3)
173byte[] ret = destination.Slice(0, bytesWritten).ToArray();
269status = DecodeFrom<TBase64Decoder, ushort>(decoder, buffer.Slice(0, bufferIdx), bytes, out int localConsumed, out int localWritten, localIsFinalBlock, ignoreWhiteSpace: false);
388byte[] ret = destination.Slice(0, bytesWritten).ToArray();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (18)
160InsertionSort(keys.Slice(0, partitionSize), comparer);
166HeapSort(keys.Slice(0, partitionSize), comparer);
171int p = PickPivotAndPartition(keys.Slice(0, partitionSize), comparer);
439InsertionSort(keys.Slice(0, partitionSize));
445HeapSort(keys.Slice(0, partitionSize));
450int p = PickPivotAndPartition(keys.Slice(0, partitionSize));
704InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer);
710HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer);
715int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize), comparer);
933InsertionSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
939HeapSort(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
944int p = PickPivotAndPartition(keys.Slice(0, partitionSize), values.Slice(0, partitionSize));
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (6)
78return span.Slice(start, length);
95=> span.Slice(0, ClampEnd(span, 0, trimElement));
346return span.Slice(start, length);
390return span.Slice(0, ClampEnd(span, 0, trimElements));
817return span.Slice(start, end - start + 1);
833=> span.Slice(0, ClampEnd(span, 0));
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (4)
234combinedBuffer = combinedBuffer.Slice(0, ConcatInto(GetLeftoverData(), bytes, combinedBuffer));
265if (FallbackBuffer.Fallback(combinedBuffer.Slice(0, combinedBufferBytesConsumed).ToArray(), index: -_leftoverByteCount))
290combinedBuffer = combinedBuffer.Slice(0, ConcatInto(GetLeftoverData(), bytes, combinedBuffer));
333if (FallbackBuffer.Fallback(combinedBuffer.Slice(0, combinedBufferBytesConsumed).ToArray(), index: -_leftoverByteCount)
System.Private.CoreLib.Generators (5)
System.Private.Uri (19)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Private.Windows.Core (13)
System\Text\ValueStringBuilder.cs (11)
136public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos];
137public readonly ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
163_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]);
164_chars.Slice(index, count).Fill(value);
183_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]);
184s.CopyTo(_chars[index..]);
238s.CopyTo(_chars[pos..]);
247while (!((ISpanFormattable)value).TryFormat(_chars[_pos..], out charsWritten, format: default, provider: default))
267Span<char> dst = _chars.Slice(_pos, count);
284Span<char> dst = _chars.Slice(_pos, length);
301value.CopyTo(_chars[_pos..]);
System.Private.Xml (16)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Reflection.Metadata (13)
System.Runtime.Numerics (184)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System\Number.BigInteger.cs (20)
326ReadOnlySpan<byte> intDigits = number.Digits.Slice(0, Math.Min(number.Scale, number.DigitsCount));
352: base1E9FromPool = ArrayPool<uint>.Shared.Rent(base1E9Length)).Slice(0, base1E9Length);
378: resultBufferFromPool = ArrayPool<uint>.Shared.Rent(resultLength)).Slice(0, resultLength);
411: powersOf1e9BufferFromPool = ArrayPool<uint>.Shared.Rent(powersOf1e9BufferLength)).Slice(0, powersOf1e9BufferLength);
423: leadingFromPool = ArrayPool<uint>.Shared.Rent(leadingLength)).Slice(0, leadingLength);
427leading = leading.Slice(0, BigIntegerCalculator.ActualLength(leading));
470: bufferFromPool = ArrayPool<uint>.Shared.Rent(bufferLength)).Slice(0, bufferLength);
476Span<uint> bitsUpper = bits.Slice(multiplierTrailingZeroCount, buffer2.Length + multiplier.Length);
529uint carry = MultiplyAdd(bits.Slice(0, resultLength), PowersOf1e9.TenPowMaxPartial, base1E9[i]);
564bits = bits.Slice(0, bytesWrittenOrNeeded);
645bytes = bytes.Slice(0, bytesWrittenOrNeeded);
1062LeadingPowers1E9.CopyTo(pow1E9.Slice(0, LeadingPowers1E9.Length));
1065ReadOnlySpan<uint> src = pow1E9.Slice(Indexes[5], Indexes[6] - Indexes[5]);
1072Span<uint> dst = pow1E9.Slice(toExclusive, src.Length << 1);
1076src = pow1E9.Slice(from, toExclusive - from);
1117BigIntegerCalculator.Multiply(left, UInt32PowersOfTen[trailingZeroCount], bits.Slice(0, left.Length + 1));
1126: powersOfTenFromPool = ArrayPool<uint>.Shared.Rent(bits.Length)).Slice(0, bits.Length);
1157Span<uint> src = powersOfTen.Slice(0, curLength);
1178powersOfTen = powersOfTen.Slice(0, curLength);
1179Span<uint> bits2 = bits.Slice(omittedLength, curLength += left.Length);
System\Numerics\BigInteger.cs (50)
779: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
809: remainderFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
815: quotientFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
932: bitsFromPool = ArrayPool<uint>.Shared.Rent(leftBits.Length)).Slice(0, leftBits.Length);
945: bitsFromPool = ArrayPool<uint>.Shared.Rent(leftBits.Length)).Slice(0, leftBits.Length);
1000: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1060: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1071: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1529buffer = buffer.Slice(0, _bits.Length + 1);
1532NumericsHelpers.DangerousMakeTwosComplement(buffer.Slice(0, buffer.Length - 1)); // Mutates dwords
1553buffer = buffer.Slice(0, count);
1661: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1673: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1685: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1697: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1739: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1751: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1761: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
1773: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2350: leftBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2351x = x.Slice(0, left.WriteTo(x));
2357: rightBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2358y = y.Slice(0, right.WriteTo(y));
2364: resultBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2406: leftBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2407x = x.Slice(0, left.WriteTo(x));
2413: rightBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2414y = y.Slice(0, right.WriteTo(y));
2420: resultBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2457: leftBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2458x = x.Slice(0, left.WriteTo(x));
2464: rightBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2465y = y.Slice(0, right.WriteTo(y));
2471: resultBufferFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2511: xdFromPool = ArrayPool<uint>.Shared.Rent(xl)).Slice(0, xl);
2518: zdFromPool = ArrayPool<uint>.Shared.Rent(zl)).Slice(0, zl);
2572: xdFromPool = ArrayPool<uint>.Shared.Rent(xl)).Slice(0, xl);
2600: zdFromPool = ArrayPool<uint>.Shared.Rent(zl)).Slice(0, zl);
2714: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2726: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2736: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2748: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2761: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2803: quotientFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2829: quotientFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
2879: bitsFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
3282xd = xd.Slice(0, xl);
3293zd = zd.Slice(0, zl);
3437xd = xd.Slice(0, xl);
3448zd = zd.Slice(0, zl);
System\Numerics\BigIntegerCalculator.DivRem.cs (28)
107: leftCopyFromPool = ArrayPool<uint>.Shared.Rent(left.Length)).Slice(0, left.Length);
143: quotientFromPool = ArrayPool<uint>.Shared.Rent(quotientLength)).Slice(0, quotientLength);
180: leftCopyFromPool = ArrayPool<uint>.Shared.Rent(left.Length)).Slice(0, left.Length);
192: quotientActualFromPool = ArrayPool<uint>.Shared.Rent(quotientLength)).Slice(0, quotientLength);
386: bFromPool = ArrayPool<uint>.Shared.Rent(n)).Slice(0, n);
400: aFromPool = ArrayPool<uint>.Shared.Rent(aLength)).Slice(0, aLength);
408bits.Slice(0, sigmaDigit).Clear();
440: rFromPool = ArrayPool<uint>.Shared.Rent(n + 1)).Slice(0, n + 1);
445: zFromPool = ArrayPool<uint>.Shared.Rent(2 * n)).Slice(0, 2 * n);
455: qFromPool = ArrayPool<uint>.Shared.Rent(n)).Slice(0, n);
460q.Slice(0, quotientUpper.Length).CopyTo(quotientUpper);
467BurnikelZieglerD2n1n(z, b, quotientUpper.Slice(0, n), r);
473a.Slice(i * n, n).CopyTo(z);
474r.Slice(0, n).CopyTo(z.Slice(n));
475BurnikelZieglerD2n1n(z, b, quotient.Slice(i * n, n), r);
486Debug.Assert(!r.Slice(0, sigmaDigit).ContainsAnyExcept(0u));
568: r1FromPool = ArrayPool<uint>.Shared.Rent(left.Length)).Slice(0, left.Length);
574DivideGrammarSchool(r1, right, quotient.Slice(0, quotientLength));
584r1.Slice(0, remainder.Length).CopyTo(remainder);
612: r1FromPool = ArrayPool<uint>.Shared.Rent(right.Length + 1)).Slice(0, right.Length + 1);
615BurnikelZieglerD3n2n(r1.Slice(0, right.Length), left.Slice(0, halfN), right, quotient.Slice(0, halfN), remainder);
641: dFromPool = ArrayPool<uint>.Shared.Rent(right.Length)).Slice(0, right.Length);
658d.Slice(0, n).Clear();
664left3.CopyTo(remainder.Slice(0, n));
666Span<uint> rr = remainder.Slice(0, d.Length + 1);
675quotient.Slice(0, qi).Fill(uint.MaxValue);
689bits = bits.Slice(0, left.Length + right.Length);
System\Numerics\BigIntegerCalculator.FastReducer.cs (9)
41_mu = mu.Slice(0, ActualLength(mu));
58int l2 = DivMul(_q1.Slice(0, l1), _modulus, _q2, _modulus.Length + 1);
61var length = SubMod(value, _q2.Slice(0, l2), _modulus, _modulus.Length + 1);
87bits.Slice(0, left.Length + right.Length));
93bits.Slice(0, left.Length + right.Length));
96return ActualLength(bits.Slice(0, left.Length + right.Length));
110left = left.Slice(0, k);
115left = left.Slice(0, ActualLength(left));
120left = left.Slice(0, ActualLength(left));
System\Numerics\BigIntegerCalculator.GcdInv.cs (6)
69: rightCopyFromPool = ArrayPool<uint>.Shared.Rent(right.Length)).Slice(0, right.Length);
159left = left.Slice(0, Reduce(left, right));
169left = left.Slice(0, Refresh(left, count));
170right = right.Slice(0, Refresh(right, count));
196left = left.Slice(0, Overwrite(left, Gcd(x, y)));
314return ActualLength(bits.Slice(0, maxLength));
System\Numerics\BigIntegerCalculator.PowMod.cs (40)
28: tempFromPool = ArrayPool<uint>.Shared.Rent(bits.Length)).Slice(0, bits.Length);
34: valueCopyFromPool = ArrayPool<uint>.Shared.Rent(bits.Length)).Slice(0, bits.Length);
61resultLength = MultiplySelf(ref result, resultLength, value.Slice(0, valueLength), ref temp);
67return result.Slice(0, resultLength);
78Multiply(left.Slice(0, leftLength), right, temp.Slice(0, resultLength));
82Multiply(right, left.Slice(0, leftLength), temp.Slice(0, resultLength));
90return ActualLength(left.Slice(0, resultLength));
100Square(value.Slice(0, valueLength), temp.Slice(0, resultLength));
107return ActualLength(value.Slice(0, resultLength));
221: valueCopyFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
230Remainder(value, modulus, valueCopy.Slice(0, value.Length));
240: tempFromPool = ArrayPool<uint>.Shared.Rent(bits.Length)).Slice(0, bits.Length);
270: valueCopyFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
279Remainder(value, modulus, valueCopy.Slice(0, value.Length));
289: tempFromPool = ArrayPool<uint>.Shared.Rent(bits.Length)).Slice(0, bits.Length);
328: rFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
335: muFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
342: q1FromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
348: q2FromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
388: rFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
395: muFromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
402: q1FromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
408: q2FromPool = ArrayPool<uint>.Shared.Rent(size)).Slice(0, size);
447resultLength = MultiplySelf(ref result, resultLength, value.Slice(0, valueLength), ref temp);
448resultLength = Reduce(result.Slice(0, resultLength), modulus);
451valueLength = Reduce(value.Slice(0, valueLength), modulus);
474resultLength = MultiplySelf(ref result, resultLength, value.Slice(0, valueLength), ref temp);
475resultLength = Reduce(result.Slice(0, resultLength), modulus);
480valueLength = Reduce(value.Slice(0, valueLength), modulus);
485return result.Slice(0, resultLength);
506resultLength = MultiplySelf(ref result, resultLength, value.Slice(0, valueLength), ref temp);
507resultLength = reducer.Reduce(result.Slice(0, resultLength));
510valueLength = reducer.Reduce(value.Slice(0, valueLength));
533resultLength = MultiplySelf(ref result, resultLength, value.Slice(0, valueLength), ref temp);
534resultLength = reducer.Reduce(result.Slice(0, resultLength));
539valueLength = reducer.Reduce(value.Slice(0, valueLength));
544return result.Slice(0, resultLength);
System\Numerics\BigIntegerCalculator.SquMul.cs (13)
89Span<uint> bitsLow = bits.Slice(0, n2);
102: foldFromPool = ArrayPool<uint>.Shared.Rent(foldLength)).Slice(0, foldLength);
109: coreFromPool = ArrayPool<uint>.Shared.Rent(coreLength)).Slice(0, coreLength);
217Span<uint> bitsLow = bits.Slice(0, n + right.Length);
227: carryFromPool = ArrayPool<uint>.Shared.Rent(carryLength)).Slice(0, carryLength);
229Span<uint> carryOrig = bits.Slice(n, right.Length);
235MultiplyKaratsuba(right, leftHigh, bitsHigh.Slice(0, leftHigh.Length + right.Length), (right.Length + 1) >> 1);
237Multiply(leftHigh, right, bitsHigh.Slice(0, leftHigh.Length + right.Length));
269Span<uint> bitsLow = bits.Slice(0, n + n);
286: leftFoldFromPool = ArrayPool<uint>.Shared.Rent(foldLength)).Slice(0, foldLength);
292: rightFoldFromPool = ArrayPool<uint>.Shared.Rent(foldLength)).Slice(0, foldLength);
305: coreFromPool = ArrayPool<uint>.Shared.Rent(coreLength)).Slice(0, coreLength);
323AddSelf(bits.Slice(n), core.Slice(0, ActualLength(core)));
System.Security.Cryptography (115)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
192buf = buf.Slice(0, byteCount);
202buf = buf.Slice(0, written);
477buf = buf.Slice(0, byteCount);
487buf = buf.Slice(0, written);
662iv = iv.Slice(0, rc2Parameters.Iv.Length);
711iv = iv.Slice(0, bytesWritten);
843Span<byte> k = dk.Slice(0, 8);
844Span<byte> iv = dk.Slice(8, 8);
999t = t.Slice(0, tLength);
1014t.Slice(0, dk.Length).CopyTo(dk);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (12)
135Span<byte> ps = destination.Slice(2, destination.Length - source.Length - 3);
282destination.Slice(2, paddingLength).Fill(0xFF);
316Span<byte> seed = destination.Slice(1, hLen);
324Span<byte> lHash = db.Slice(0, hLen);
326Span<byte> ps = db.Slice(hLen, db.Length - hLen - 1 - mDest.Length);
327Span<byte> psEnd = db.Slice(hLen + ps.Length, 1);
410destination.Slice(0, destination.Length - emLen).Clear();
413Span<byte> em = destination.Slice(destination.Length - emLen, emLen);
417Span<byte> db = em.Slice(0, dbLen);
418Span<byte> hDest = em.Slice(dbLen, hLen);
448db.Slice(0, psLen).Clear();
624tmp.Slice(0, writePtr.Length).CopyTo(writePtr);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System\Security\Cryptography\UniversalCryptoOneShot.cs (11)
41Span<byte> transformBuffer = output.Slice(0, bytesTransformed);
88stackBuffer.Slice(0, stackTransformFinal),
91Span<byte> writtenDepadded = stackBuffer.Slice(0, depaddedLength);
139stackBuffer.Slice(0, finalTransformWritten),
142Span<byte> depaddedFinalTransform = stackBuffer.Slice(0, depaddedLength);
147CryptographicOperations.ZeroMemory(output.Slice(0, writtenToOutput));
159CryptographicOperations.ZeroMemory(output.Slice(0, writtenToOutput));
160CryptographicOperations.ZeroMemory(stackBuffer.Slice(0, finalTransformWritten));
177decryptedBuffer = buffer.Slice(0, transformWritten);
191decryptedBuffer.Slice(0, unpaddedLength).CopyTo(output);
226Span<byte> paddedOutput = output.Slice(0, padWritten);
System.Security.Cryptography.Cose (8)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (4)
383WriteCoseSignaturesArray(writer, signer, buffer.Slice(protectedMapBytesWritten), buffer.Slice(0, protectedMapBytesWritten), associatedData, content, contentStream);
455AppendToBeSigned(buffer, hasher, SigStructureContext.Signature, bodyProtected, buffer.Slice(0, signProtectedBytesWritten), associatedData, content, contentStream);
779byte[] encodedSignProtected = bufferSpan.Slice(0, bytesWritten).ToArray();
786byte[] signature = bufferSpan.Slice(0, bytesWritten).ToArray();
System.Security.Cryptography.Pkcs (17)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
192buf = buf.Slice(0, byteCount);
202buf = buf.Slice(0, written);
477buf = buf.Slice(0, byteCount);
487buf = buf.Slice(0, written);
662iv = iv.Slice(0, rc2Parameters.Iv.Length);
711iv = iv.Slice(0, bytesWritten);
843Span<byte> k = dk.Slice(0, 8);
844Span<byte> iv = dk.Slice(8, 8);
999t = t.Slice(0, tLength);
1014t.Slice(0, dk.Length).CopyTo(dk);
System.Security.Cryptography.ProtectedData (1)
System.Text.Encodings.Web (17)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.Json (132)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (10)
25utf8Unescaped = utf8Unescaped.Slice(0, written);
55utf8Unescaped = utf8Unescaped.Slice(0, written);
82ReadOnlySpan<byte> propertyName = utf8Unescaped.Slice(0, written).ToArray();
107utf8Unescaped = utf8Unescaped.Slice(0, written);
140utf8Escaped = utf8Escaped.Slice(0, length);
145utf8Unescaped = utf8Unescaped.Slice(0, written);
182utf8Unescaped1 = utf8Unescaped1.Slice(0, written);
186utf8Unescaped2 = utf8Unescaped2.Slice(0, written);
214bytes = utf8Unescaped.Slice(0, bytesWritten).ToArray();
242bytes = byteSpan.Slice(0, bytesWritten).ToArray();
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (12)
72combinedBuffer = combinedBuffer.Slice(0, ConcatInto(partialStringDataBuffer, value, combinedBuffer));
80value = combinedBuffer.Slice(0, charsConsumed);
88partialStringDataBuffer = combinedBuffer.Slice(0, charsConsumed);
94partialStringDataBuffer = combinedBuffer.Slice(0, charsConsumed);
148WriteStringSegmentData(escapedValue.Slice(0, written));
240combinedBuffer = combinedBuffer.Slice(0, ConcatInto(partialStringDataBuffer, utf8Value, combinedBuffer));
248utf8Value = combinedBuffer.Slice(0, bytesConsumed);
256partialStringDataBuffer = combinedBuffer.Slice(0, bytesConsumed);
262partialStringDataBuffer = combinedBuffer.Slice(0, bytesConsumed);
314WriteStringSegmentData(escapedValue.Slice(0, written));
407combinedBuffer = combinedBuffer.Slice(0, ConcatInto(partialStringDataBuffer, bytes, combinedBuffer));
412partialStringDataBuffer = combinedBuffer.Slice(0, 3);
System.Text.Json.SourceGeneration (8)
System.Text.RegularExpressions (23)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.RegularExpressions.Generator (26)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Web.HttpUtility (17)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (12)
92string s = _chars.Slice(0, _pos).ToString();
111return _chars.Slice(0, _pos);
114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos);
115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start);
116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
120if (_chars.Slice(0, _pos).TryCopyTo(destination))
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
143_chars.Slice(index, count).Fill(value);
162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count));
230Span<char> dst = _chars.Slice(_pos, count);
260return _chars.Slice(origPos, length);
296_chars.Slice(0, _pos).CopyTo(poolArray);
System.Windows.Forms (8)
System.Windows.Forms.Design (4)