7 references to Slice
System.Formats.Asn1 (7)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
493ReadOnlySpan<byte> encodedValue = Slice(cur, headerLength, length.Value);
System\Formats\Asn1\AsnDecoder.cs (3)
204ReadOnlySpan<byte> ret = Slice(source, headerLength, encodedLength.Value); 608ReadOnlySpan<byte> tlv = Slice(cur, 0, bytesRead + length.Value); 621int value = ParseNonNegativeInt(Slice(data, 0, bytesToRead));
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
359ReadOnlySpan<byte> contents = Slice(cur, headerLength, length.Value);
System\Formats\Asn1\AsnDecoder.SetOf.cs (2)
88contents = Slice(source, headerLength, length.Value); 93contents = Slice(source, headerLength, actualLength);