@wildboar/copp
Version:
Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript
44 lines • 2.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_Simply_encoded_data = exports._decode_Simply_encoded_data = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION Simply_encoded_data */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Simply_encoded_data */
let _cached_decoder_for_Simply_encoded_data = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Simply_encoded_data */
/* START_OF_SYMBOL_DEFINITION _decode_Simply_encoded_data */
/**
* @summary Decodes an ASN.1 element into a(n) Simply_encoded_data
* @function
* @param {_Element} el The element being decoded.
* @returns {Simply_encoded_data} The decoded data structure.
*/
function _decode_Simply_encoded_data(el) {
if (!_cached_decoder_for_Simply_encoded_data) {
_cached_decoder_for_Simply_encoded_data = $._decodeOctetString;
}
return _cached_decoder_for_Simply_encoded_data(el);
}
exports._decode_Simply_encoded_data = _decode_Simply_encoded_data;
/* END_OF_SYMBOL_DEFINITION _decode_Simply_encoded_data */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Simply_encoded_data */
let _cached_encoder_for_Simply_encoded_data = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Simply_encoded_data */
/* START_OF_SYMBOL_DEFINITION _encode_Simply_encoded_data */
/**
* @summary Encodes a(n) Simply_encoded_data into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The Simply_encoded_data, encoded as an ASN.1 Element.
*/
function _encode_Simply_encoded_data(value, elGetter) {
if (!_cached_encoder_for_Simply_encoded_data) {
_cached_encoder_for_Simply_encoded_data = $._encodeOctetString;
}
return _cached_encoder_for_Simply_encoded_data(value, elGetter);
}
exports._encode_Simply_encoded_data = _encode_Simply_encoded_data;
/* END_OF_SYMBOL_DEFINITION _encode_Simply_encoded_data */
/* eslint-enable */
//# sourceMappingURL=Simply-encoded-data.ta.js.map