249 references to Slice
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Identity (8)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.Build (5)
Microsoft.CodeAnalysis (7)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Razor.Compiler (17)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.Data.Analysis (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.ML.Core (9)
Microsoft.ML.Data (3)
Microsoft.ML.Tests (1)
Microsoft.ML.Tokenizers (3)
Microsoft.ML.Transforms (6)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (8)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (8)
101literalSegment.Parts.Add(new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true });
122var tokenExpression = current.Slice(2, tokenEnd - 2);
161literalSegment.Parts.Add(new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true });
179var literalPart = new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true };
197Name = current.Slice(1, embeddedValue - 1),
199Value = current.Slice(embeddedValue + 1, tokenEnd - embeddedValue - 1)
205var tokenPart = new StaticWebAssetSegmentPart { Name = current.Slice(1, tokenEnd - 1), IsLiteral = false };
218var literalPart = new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true };
Microsoft.NET.Sdk.StaticWebAssets.Tasks (10)
Data\StaticWebAssetPathPattern.cs (8)
101literalSegment.Parts.Add(new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true });
122var tokenExpression = current.Slice(2, tokenEnd - 2);
161literalSegment.Parts.Add(new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true });
179var literalPart = new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true };
197Name = current.Slice(1, embeddedValue - 1),
199Value = current.Slice(embeddedValue + 1, tokenEnd - embeddedValue - 1)
205var tokenPart = new StaticWebAssetSegmentPart { Name = current.Slice(1, tokenEnd - 1), IsLiteral = false };
218var literalPart = new StaticWebAssetSegmentPart { Name = current.Slice(0, nextToken), IsLiteral = true };
Microsoft.NET.StringTools (2)
System.CommandLine (1)
System.Formats.Asn1 (4)
System.Formats.Cbor (3)
System.IO.Compression (3)
System.Memory (2)
System.Net.Http (3)
System.Net.NameResolution (1)
System.Net.Security (2)
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (6)
50return memory.Slice(start, length);
67=> memory.Slice(0, ClampEnd(memory.Span, 0, trimElement));
278return memory.Slice(start, length);
322return memory.Slice(0, ClampEnd(memory.Span, 0, trimElements));
548return memory.Slice(start, length);
563=> memory.Slice(0, ClampEnd(memory.Span, 0));
System.Security.Cryptography (49)
System\Security\Cryptography\CryptoStream.cs (4)
547buffer.Slice(0, _inputBlockSize - _inputBufferIndex).CopyTo(_inputBuffer.AsMemory(_inputBufferIndex));
598numOutputBytes = TransformBlock(_transform, buffer.Slice(currentInputIndex, numWholeBlocksInBytes), tempOutputBuffer, 0);
626numOutputBytes = TransformBlock(_transform, buffer.Slice(currentInputIndex, _inputBlockSize), _outputBuffer, 0);
642buffer.Slice(currentInputIndex, bytesToWrite).CopyTo(_inputBuffer);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (5)
213decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
221decoded.Issuer = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
229decoded.Subject = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
237decoded.IssuerUniqueId = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
252decoded.SubjectUniqueId = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System.Security.Cryptography.Pkcs (53)
System.Text.Json (10)
System.Text.RegularExpressions (3)