Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadIntegerBytes()

ReadOnlyMemory< byte > System.Formats.Asn1.AsnReader.ReadIntegerBytes ( Asn1Tag? expectedTag = null)
inline

Definition at line 139 of file AsnReader.cs.

140 {
141 int bytesConsumed;
142 ReadOnlySpan<byte> smaller = AsnDecoder.ReadIntegerBytes(_data.Span, RuleSet, out bytesConsumed, expectedTag);
143 ReadOnlyMemory<byte> result = AsnDecoder.Slice(_data, smaller);
144 _data = _data.Slice(bytesConsumed);
145 return result;
146 }
ReadOnlyMemory< byte > _data
Definition AsnReader.cs:8
AsnEncodingRules RuleSet
Definition AsnReader.cs:12
unsafe ReadOnlySpan< T > Span
ReadOnlyMemory< T > Slice(int start)

References System.Formats.Asn1.AsnReader._data, System.Formats.Asn1.AsnDecoder.ReadIntegerBytes(), System.Formats.Asn1.AsnReader.RuleSet, System.ReadOnlyMemory< T >.Slice(), System.Formats.Asn1.AsnDecoder.Slice(), and System.ReadOnlyMemory< T >.Span.

Referenced by System.Security.Cryptography.EccKeyFormatHelper.GetSpecifiedECCurveCore(), and System.Security.Cryptography.EccKeyFormatHelper.GetSpecifiedECCurveCore().