Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions asn1DecodeLength

1
2
3
4
5
6
7
8
module juptune.asn1.decode.bcd.encoding;

Result asn1DecodeLength(
    Asn1Ruleset ruleset
)(
    MemoryReader mem, 
    Asn1Length length
);

Documentation

Decodes a record length from the given ASN.1 data stream.

Params

Throws

Asn1DecodeError.eofif there are less bytes than expected.

Asn1DecodeError.componentLengthReservedif the length contains a reserved value.

Asn1DecodeError.componentLengthIndefiniteUnderDerwhen the indefinite length form is used under DER.

Asn1DecodeError.componentLengthInvalidDerEncodingfor any other DER-specific violations.

Returns

A Resultif decoding failed.