UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

92 lines 3.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_Result = exports._decode_Result = exports.provider_rejection = exports.Result_provider_rejection = exports.user_rejection = exports.Result_user_rejection = exports.acceptance = exports.Result_acceptance = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION Result */ /* START_OF_SYMBOL_DEFINITION Result_acceptance */ /** * @summary Result_acceptance * @constant * @type {number} */ exports.Result_acceptance = 0; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION Result_acceptance */ /* START_OF_SYMBOL_DEFINITION acceptance */ /** * @summary Result_acceptance * @constant * @type {number} */ exports.acceptance = exports.Result_acceptance; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION acceptance */ /* START_OF_SYMBOL_DEFINITION Result_user_rejection */ /** * @summary Result_user_rejection * @constant * @type {number} */ exports.Result_user_rejection = 1; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION Result_user_rejection */ /* START_OF_SYMBOL_DEFINITION user_rejection */ /** * @summary Result_user_rejection * @constant * @type {number} */ exports.user_rejection = exports.Result_user_rejection; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION user_rejection */ /* START_OF_SYMBOL_DEFINITION Result_provider_rejection */ /** * @summary Result_provider_rejection * @constant * @type {number} */ exports.Result_provider_rejection = 2; /* LONG_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION Result_provider_rejection */ /* START_OF_SYMBOL_DEFINITION provider_rejection */ /** * @summary Result_provider_rejection * @constant * @type {number} */ exports.provider_rejection = exports.Result_provider_rejection; /* SHORT_NAMED_INTEGER_VALUE */ /* END_OF_SYMBOL_DEFINITION provider_rejection */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Result */ let _cached_decoder_for_Result = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Result */ /* START_OF_SYMBOL_DEFINITION _decode_Result */ /** * @summary Decodes an ASN.1 element into a(n) Result * @function * @param {_Element} el The element being decoded. * @returns {Result} The decoded data structure. */ function _decode_Result(el) { if (!_cached_decoder_for_Result) { _cached_decoder_for_Result = $._decodeInteger; } return _cached_decoder_for_Result(el); } exports._decode_Result = _decode_Result; /* END_OF_SYMBOL_DEFINITION _decode_Result */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Result */ let _cached_encoder_for_Result = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Result */ /* START_OF_SYMBOL_DEFINITION _encode_Result */ /** * @summary Encodes a(n) Result 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 Result, encoded as an ASN.1 Element. */ function _encode_Result(value, elGetter) { if (!_cached_encoder_for_Result) { _cached_encoder_for_Result = $._encodeInteger; } return _cached_encoder_for_Result(value, elGetter); } exports._encode_Result = _encode_Result; /* END_OF_SYMBOL_DEFINITION _encode_Result */ /* eslint-enable */ //# sourceMappingURL=Result.ta.js.map