UNPKG

@wildboar/qc

Version:
31 lines (30 loc) 1.22 kB
import * as $ from "@wildboar/asn1/functional"; import { _decode_QCStatement, _encode_QCStatement, } from "../PKIXqualified97/QCStatement.ta.mjs"; let _cached_decoder_for_QCStatements = null; /** * @summary Decodes an ASN.1 element into a(n) QCStatements * @function * @param {_Element} el The element being decoded. * @returns {QCStatements} The decoded data structure. */ export function _decode_QCStatements(el) { if (!_cached_decoder_for_QCStatements) { _cached_decoder_for_QCStatements = $._decodeSequenceOf(() => _decode_QCStatement); } return _cached_decoder_for_QCStatements(el); } let _cached_encoder_for_QCStatements = null; /** * @summary Encodes a(n) QCStatements into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The QCStatements, encoded as an ASN.1 Element. */ export function _encode_QCStatements(value, elGetter) { if (!_cached_encoder_for_QCStatements) { _cached_encoder_for_QCStatements = $._encodeSequenceOf(() => _encode_QCStatement, $.BER); } return _cached_encoder_for_QCStatements(value, elGetter); } /* eslint-enable */