18 writes to _span
System.Security.Cryptography (18)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (18)
18
_span
= span;
58
_span
= _span.Slice(value.Length);
65
_span
= _span.Slice(consumed);
72
_span
= _span.Slice(consumed);
79
_span
= _span.Slice(consumed);
86
_span
= _span.Slice(consumed);
103
_span
= _span.Slice(consumed);
116
_span
= _span.Slice(consumed);
123
_span
= _span.Slice(consumed);
138
_span
= _span.Slice(consumed);
150
_span
= _span.Slice(consumed);
157
_span
= _span.Slice(consumed);
172
_span
= _span.Slice(bytesConsumed);
188
_span
= _span.Slice(bytesConsumed);
195
_span
= _span.Slice(consumed);
202
_span
= _span.Slice(consumed);
209
_span
= _span.Slice(consumed);
216
_span
= _span.Slice(consumed);
42 references to _span
System.Security.Cryptography (42)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (42)
22
internal bool HasData => !
_span
.IsEmpty;
26
if (!
_span
.IsEmpty)
34
return Asn1Tag.Decode(
_span
, out _);
40
_span
,
46
return
_span
.Slice(contentOffset, contentLength);
51
AsnDecoder.ReadEncodedValue(
_span
, _ruleSet, out _, out _, out int consumed);
52
return
_span
.Slice(0, consumed);
58
_span =
_span
.Slice(value.Length);
64
bool ret = AsnDecoder.ReadBoolean(
_span
, _ruleSet, out int consumed, expectedTag);
65
_span =
_span
.Slice(consumed);
71
BigInteger ret = AsnDecoder.ReadInteger(
_span
, _ruleSet, out int consumed, expectedTag);
72
_span =
_span
.Slice(consumed);
78
bool ret = AsnDecoder.TryReadInt32(
_span
, _ruleSet, out value, out int consumed, expectedTag);
79
_span =
_span
.Slice(consumed);
85
ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(
_span
, _ruleSet, out int consumed, expectedTag);
86
_span =
_span
.Slice(consumed);
96
_span
,
103
_span =
_span
.Slice(consumed);
110
_span
,
116
_span =
_span
.Slice(consumed);
122
TFlagsEnum ret = AsnDecoder.ReadNamedBitListValue<TFlagsEnum>(
_span
, _ruleSet, out int consumed, expectedTag);
123
_span =
_span
.Slice(consumed);
132
_span
,
138
_span =
_span
.Slice(consumed);
145
_span
,
150
_span =
_span
.Slice(consumed);
156
string ret = AsnDecoder.ReadObjectIdentifier(
_span
, _ruleSet, out int consumed, expectedTag);
157
_span =
_span
.Slice(consumed);
164
_span
,
171
ReadOnlySpan<byte> content =
_span
.Slice(contentOffset, contentLength);
172
_span =
_span
.Slice(bytesConsumed);
179
_span
,
187
ReadOnlySpan<byte> content =
_span
.Slice(contentOffset, contentLength);
188
_span =
_span
.Slice(bytesConsumed);
194
DateTimeOffset ret = AsnDecoder.ReadUtcTime(
_span
, _ruleSet, out int consumed, expectedTag: expectedTag);
195
_span =
_span
.Slice(consumed);
201
DateTimeOffset ret = AsnDecoder.ReadGeneralizedTime(
_span
, _ruleSet, out int consumed, expectedTag);
202
_span =
_span
.Slice(consumed);
208
string ret = AsnDecoder.ReadCharacterString(
_span
, _ruleSet, encodingType, out int consumed, expectedTag);
209
_span =
_span
.Slice(consumed);
215
TEnum ret = AsnDecoder.ReadEnumeratedValue<TEnum>(
_span
, _ruleSet, out int consumed, expectedTag);
216
_span =
_span
.Slice(consumed);