UNPKG

@wildboar/qc

Version:
31 lines (30 loc) 1.27 kB
import * as $ from "@wildboar/asn1/functional"; import { _decode_BiometricData, _encode_BiometricData, } from "../PKIXqualified97/BiometricData.ta.mjs"; let _cached_decoder_for_BiometricSyntax = null; /** * @summary Decodes an ASN.1 element into a(n) BiometricSyntax * @function * @param {_Element} el The element being decoded. * @returns {BiometricSyntax} The decoded data structure. */ export function _decode_BiometricSyntax(el) { if (!_cached_decoder_for_BiometricSyntax) { _cached_decoder_for_BiometricSyntax = $._decodeSequenceOf(() => _decode_BiometricData); } return _cached_decoder_for_BiometricSyntax(el); } let _cached_encoder_for_BiometricSyntax = null; /** * @summary Encodes a(n) BiometricSyntax 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 BiometricSyntax, encoded as an ASN.1 Element. */ export function _encode_BiometricSyntax(value, elGetter) { if (!_cached_encoder_for_BiometricSyntax) { _cached_encoder_for_BiometricSyntax = $._encodeSequenceOf(() => _encode_BiometricData, $.BER); } return _cached_encoder_for_BiometricSyntax(value, elGetter); } /* eslint-enable */