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

◆ GetValidityException()

static AsnContentException System.Formats.Asn1.AsnDecoder.GetValidityException ( LengthValidity validity)
inlinestaticprivate

Definition at line 262 of file AsnDecoder.cs.

263 {
264 return validity switch
265 {
266 LengthValidity.CerRequiresIndefinite => new AsnContentException(System.SR.ContentException_CerRequiresIndefiniteLength),
267 LengthValidity.LengthExceedsInput => new AsnContentException(System.SR.ContentException_LengthExceedsPayload),
268 _ => new AsnContentException(),
269 };
270 }
static string ContentException_CerRequiresIndefiniteLength
Definition SR.cs:46
static string ContentException_LengthExceedsPayload
Definition SR.cs:62
Definition SR.cs:7

References System.SR.ContentException_CerRequiresIndefiniteLength, and System.SR.ContentException_LengthExceedsPayload.

Referenced by System.Formats.Asn1.AsnDecoder.ReadEncodedValue(), System.Formats.Asn1.AsnDecoder.ReadSequence(), and System.Formats.Asn1.AsnDecoder.ReadTagAndLength().