blob: e429279f753b7eecb50338fccc39757e183cbcd4 [file] [log] [blame]
Lev Walkin59b176e2005-11-26 11:25:14 +00001
2/*** <<< INCLUDES [CN-IntegerUnlimited] >>> ***/
3
Lev Walkin2a744a72013-03-27 01:56:23 -07004#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef long CN_IntegerUnlimited_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00009
10/*** <<< FUNC-DECLS [CN-IntegerUnlimited] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited;
13asn_struct_free_f CN_IntegerUnlimited_free;
14asn_struct_print_f CN_IntegerUnlimited_print;
15asn_constr_check_f CN_IntegerUnlimited_constraint;
16ber_type_decoder_f CN_IntegerUnlimited_decode_ber;
17der_type_encoder_f CN_IntegerUnlimited_encode_der;
18xer_type_decoder_f CN_IntegerUnlimited_decode_xer;
19xer_type_encoder_f CN_IntegerUnlimited_encode_xer;
20per_type_decoder_f CN_IntegerUnlimited_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +000021per_type_encoder_f CN_IntegerUnlimited_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +000022
23/*** <<< CODE [CN-IntegerUnlimited] >>> ***/
24
25int
26CN_IntegerUnlimited_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000027 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +000028 /* Replace with underlying type checker */
Lev Walkin2a744a72013-03-27 01:56:23 -070029 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +000030 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin59b176e2005-11-26 11:25:14 +000031}
32
33/*
Lev Walkin2a744a72013-03-27 01:56:23 -070034 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +000035 * so here we adjust the DEF accordingly.
36 */
37static void
38CN_IntegerUnlimited_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -070039 td->free_struct = asn_DEF_NativeInteger.free_struct;
40 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -080041 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -070042 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
43 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
44 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
45 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
46 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
47 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -070048 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
49 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +000050 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -070051 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
52 td->elements = asn_DEF_NativeInteger.elements;
53 td->elements_count = asn_DEF_NativeInteger.elements_count;
54 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +000055}
56
57void
58CN_IntegerUnlimited_free(asn_TYPE_descriptor_t *td,
59 void *struct_ptr, int contents_only) {
60 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
61 td->free_struct(td, struct_ptr, contents_only);
62}
63
64int
65CN_IntegerUnlimited_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
66 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
67 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
68 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
69}
70
71asn_dec_rval_t
72CN_IntegerUnlimited_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
73 void **structure, const void *bufptr, size_t size, int tag_mode) {
74 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
75 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
76}
77
78asn_enc_rval_t
79CN_IntegerUnlimited_encode_der(asn_TYPE_descriptor_t *td,
80 void *structure, int tag_mode, ber_tlv_tag_t tag,
81 asn_app_consume_bytes_f *cb, void *app_key) {
82 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
83 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
84}
85
86asn_dec_rval_t
87CN_IntegerUnlimited_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
88 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
89 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
90 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
91}
92
93asn_enc_rval_t
94CN_IntegerUnlimited_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
95 int ilevel, enum xer_encoder_flags_e flags,
96 asn_app_consume_bytes_f *cb, void *app_key) {
97 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
98 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
99}
100
101asn_dec_rval_t
102CN_IntegerUnlimited_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
103 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
104 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
105 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
106}
107
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000108asn_enc_rval_t
109CN_IntegerUnlimited_encode_uper(asn_TYPE_descriptor_t *td,
110 asn_per_constraints_t *constraints,
111 void *structure, asn_per_outp_t *per_out) {
112 CN_IntegerUnlimited_1_inherit_TYPE_descriptor(td);
113 return td->uper_encoder(td, constraints, structure, per_out);
114}
115
Lev Walkin59b176e2005-11-26 11:25:14 +0000116
117/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
118
Lev Walkina7591b52014-10-12 18:37:35 -0700119static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000120 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
121};
122asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
123 "CN-IntegerUnlimited",
124 "CN-IntegerUnlimited",
125 CN_IntegerUnlimited_free,
126 CN_IntegerUnlimited_print,
127 CN_IntegerUnlimited_constraint,
128 CN_IntegerUnlimited_decode_ber,
129 CN_IntegerUnlimited_encode_der,
130 CN_IntegerUnlimited_decode_xer,
131 CN_IntegerUnlimited_encode_xer,
132 CN_IntegerUnlimited_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000133 CN_IntegerUnlimited_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700134 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000135 0, /* Use generic outmost tag fetcher */
136 asn_DEF_CN_IntegerUnlimited_tags_1,
137 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
138 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
139 asn_DEF_CN_IntegerUnlimited_tags_1, /* Same as above */
140 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
141 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
142 0, /* No PER visible constraints */
143 0, 0, /* No members */
144 0 /* No specifics */
145};
146
147
148/*** <<< INCLUDES [CN-IntegerMinMax] >>> ***/
149
Lev Walkin2a744a72013-03-27 01:56:23 -0700150#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000151
152/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
153
Lev Walkin2a744a72013-03-27 01:56:23 -0700154typedef long CN_IntegerMinMax_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000155
156/*** <<< FUNC-DECLS [CN-IntegerMinMax] >>> ***/
157
158extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax;
159asn_struct_free_f CN_IntegerMinMax_free;
160asn_struct_print_f CN_IntegerMinMax_print;
161asn_constr_check_f CN_IntegerMinMax_constraint;
162ber_type_decoder_f CN_IntegerMinMax_decode_ber;
163der_type_encoder_f CN_IntegerMinMax_encode_der;
164xer_type_decoder_f CN_IntegerMinMax_decode_xer;
165xer_type_encoder_f CN_IntegerMinMax_encode_xer;
166per_type_decoder_f CN_IntegerMinMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000167per_type_encoder_f CN_IntegerMinMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000168
169/*** <<< CODE [CN-IntegerMinMax] >>> ***/
170
171int
172CN_IntegerMinMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000173 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000174
175 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700176 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000177 "%s: value not given (%s:%d)",
178 td->name, __FILE__, __LINE__);
179 return -1;
180 }
181
182
183 if(1 /* No applicable constraints whatsoever */) {
184 /* Nothing is here. See below */
185 }
186
187 /* Replace with underlying type checker */
Lev Walkin2a744a72013-03-27 01:56:23 -0700188 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +0000189 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin59b176e2005-11-26 11:25:14 +0000190}
191
192/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700193 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000194 * so here we adjust the DEF accordingly.
195 */
196static void
197CN_IntegerMinMax_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700198 td->free_struct = asn_DEF_NativeInteger.free_struct;
199 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800200 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -0700201 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
202 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
203 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
204 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
205 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
206 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700207 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
208 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000209 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -0700210 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
211 td->elements = asn_DEF_NativeInteger.elements;
212 td->elements_count = asn_DEF_NativeInteger.elements_count;
213 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +0000214}
215
216void
217CN_IntegerMinMax_free(asn_TYPE_descriptor_t *td,
218 void *struct_ptr, int contents_only) {
219 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
220 td->free_struct(td, struct_ptr, contents_only);
221}
222
223int
224CN_IntegerMinMax_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
225 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
226 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
227 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
228}
229
230asn_dec_rval_t
231CN_IntegerMinMax_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
232 void **structure, const void *bufptr, size_t size, int tag_mode) {
233 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
234 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
235}
236
237asn_enc_rval_t
238CN_IntegerMinMax_encode_der(asn_TYPE_descriptor_t *td,
239 void *structure, int tag_mode, ber_tlv_tag_t tag,
240 asn_app_consume_bytes_f *cb, void *app_key) {
241 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
242 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
243}
244
245asn_dec_rval_t
246CN_IntegerMinMax_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
247 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
248 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
249 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
250}
251
252asn_enc_rval_t
253CN_IntegerMinMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
254 int ilevel, enum xer_encoder_flags_e flags,
255 asn_app_consume_bytes_f *cb, void *app_key) {
256 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
257 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
258}
259
260asn_dec_rval_t
261CN_IntegerMinMax_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
262 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
263 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
264 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
265}
266
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000267asn_enc_rval_t
268CN_IntegerMinMax_encode_uper(asn_TYPE_descriptor_t *td,
269 asn_per_constraints_t *constraints,
270 void *structure, asn_per_outp_t *per_out) {
271 CN_IntegerMinMax_1_inherit_TYPE_descriptor(td);
272 return td->uper_encoder(td, constraints, structure, per_out);
273}
274
Lev Walkin59b176e2005-11-26 11:25:14 +0000275
Lev Walkin725883b2006-10-09 12:07:58 +0000276/*** <<< CTDEFS [CN-IntegerMinMax] >>> ***/
277
Lev Walkin2fce55d2013-03-28 05:00:39 -0700278static asn_per_constraints_t asn_PER_type_CN_IntegerMinMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000279 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
280 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
281 0, 0 /* No PER value map */
282};
283
Lev Walkin59b176e2005-11-26 11:25:14 +0000284/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
285
Lev Walkina7591b52014-10-12 18:37:35 -0700286static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000287 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
288};
Lev Walkin59b176e2005-11-26 11:25:14 +0000289asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
290 "CN-IntegerMinMax",
291 "CN-IntegerMinMax",
292 CN_IntegerMinMax_free,
293 CN_IntegerMinMax_print,
294 CN_IntegerMinMax_constraint,
295 CN_IntegerMinMax_decode_ber,
296 CN_IntegerMinMax_encode_der,
297 CN_IntegerMinMax_decode_xer,
298 CN_IntegerMinMax_encode_xer,
299 CN_IntegerMinMax_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000300 CN_IntegerMinMax_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700301 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000302 0, /* Use generic outmost tag fetcher */
303 asn_DEF_CN_IntegerMinMax_tags_1,
304 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
305 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
306 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
307 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
308 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000309 &asn_PER_type_CN_IntegerMinMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000310 0, 0, /* No members */
311 0 /* No specifics */
312};
313
314
315/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
316
Lev Walkin2a744a72013-03-27 01:56:23 -0700317#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000318
319/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
320
Lev Walkin2a744a72013-03-27 01:56:23 -0700321typedef long CN_IntegerMinLow_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000322
323/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
324
325extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
326asn_struct_free_f CN_IntegerMinLow_free;
327asn_struct_print_f CN_IntegerMinLow_print;
328asn_constr_check_f CN_IntegerMinLow_constraint;
329ber_type_decoder_f CN_IntegerMinLow_decode_ber;
330der_type_encoder_f CN_IntegerMinLow_encode_der;
331xer_type_decoder_f CN_IntegerMinLow_decode_xer;
332xer_type_encoder_f CN_IntegerMinLow_encode_xer;
333per_type_decoder_f CN_IntegerMinLow_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000334per_type_encoder_f CN_IntegerMinLow_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000335
336/*** <<< CODE [CN-IntegerMinLow] >>> ***/
337
338int
339CN_IntegerMinLow_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000340 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000341 long value;
342
343 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700344 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000345 "%s: value not given (%s:%d)",
346 td->name, __FILE__, __LINE__);
347 return -1;
348 }
349
Lev Walkin2a744a72013-03-27 01:56:23 -0700350 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000351
352 if((value <= 1)) {
353 /* Constraint check succeeded */
354 return 0;
355 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700356 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000357 "%s: constraint failed (%s:%d)",
358 td->name, __FILE__, __LINE__);
359 return -1;
360 }
361}
362
363/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700364 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000365 * so here we adjust the DEF accordingly.
366 */
367static void
368CN_IntegerMinLow_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700369 td->free_struct = asn_DEF_NativeInteger.free_struct;
370 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800371 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -0700372 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
373 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
374 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
375 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
376 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
377 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700378 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
379 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000380 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -0700381 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
382 td->elements = asn_DEF_NativeInteger.elements;
383 td->elements_count = asn_DEF_NativeInteger.elements_count;
384 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +0000385}
386
387void
388CN_IntegerMinLow_free(asn_TYPE_descriptor_t *td,
389 void *struct_ptr, int contents_only) {
390 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
391 td->free_struct(td, struct_ptr, contents_only);
392}
393
394int
395CN_IntegerMinLow_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
396 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
397 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
398 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
399}
400
401asn_dec_rval_t
402CN_IntegerMinLow_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
403 void **structure, const void *bufptr, size_t size, int tag_mode) {
404 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
405 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
406}
407
408asn_enc_rval_t
409CN_IntegerMinLow_encode_der(asn_TYPE_descriptor_t *td,
410 void *structure, int tag_mode, ber_tlv_tag_t tag,
411 asn_app_consume_bytes_f *cb, void *app_key) {
412 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
413 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
414}
415
416asn_dec_rval_t
417CN_IntegerMinLow_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
418 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
419 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
420 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
421}
422
423asn_enc_rval_t
424CN_IntegerMinLow_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
425 int ilevel, enum xer_encoder_flags_e flags,
426 asn_app_consume_bytes_f *cb, void *app_key) {
427 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
428 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
429}
430
431asn_dec_rval_t
432CN_IntegerMinLow_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
433 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
434 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
435 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
436}
437
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000438asn_enc_rval_t
439CN_IntegerMinLow_encode_uper(asn_TYPE_descriptor_t *td,
440 asn_per_constraints_t *constraints,
441 void *structure, asn_per_outp_t *per_out) {
442 CN_IntegerMinLow_1_inherit_TYPE_descriptor(td);
443 return td->uper_encoder(td, constraints, structure, per_out);
444}
445
Lev Walkin59b176e2005-11-26 11:25:14 +0000446
Lev Walkin725883b2006-10-09 12:07:58 +0000447/*** <<< CTDEFS [CN-IntegerMinLow] >>> ***/
448
Lev Walkin2fce55d2013-03-28 05:00:39 -0700449static asn_per_constraints_t asn_PER_type_CN_IntegerMinLow_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000450 { APC_UNCONSTRAINED, -1, -1, 0, 0 } /* (MIN..1) */,
451 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
452 0, 0 /* No PER value map */
453};
454
Lev Walkin59b176e2005-11-26 11:25:14 +0000455/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
456
Lev Walkina7591b52014-10-12 18:37:35 -0700457static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000458 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
459};
Lev Walkin59b176e2005-11-26 11:25:14 +0000460asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
461 "CN-IntegerMinLow",
462 "CN-IntegerMinLow",
463 CN_IntegerMinLow_free,
464 CN_IntegerMinLow_print,
465 CN_IntegerMinLow_constraint,
466 CN_IntegerMinLow_decode_ber,
467 CN_IntegerMinLow_encode_der,
468 CN_IntegerMinLow_decode_xer,
469 CN_IntegerMinLow_encode_xer,
470 CN_IntegerMinLow_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000471 CN_IntegerMinLow_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700472 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000473 0, /* Use generic outmost tag fetcher */
474 asn_DEF_CN_IntegerMinLow_tags_1,
475 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
476 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
477 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
478 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
479 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000480 &asn_PER_type_CN_IntegerMinLow_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000481 0, 0, /* No members */
482 0 /* No specifics */
483};
484
485
486/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
487
488#include <INTEGER.h>
489
490/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
491
492typedef INTEGER_t NO_IntegerMinHigh_t;
493
494/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
495
496extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
497asn_struct_free_f NO_IntegerMinHigh_free;
498asn_struct_print_f NO_IntegerMinHigh_print;
499asn_constr_check_f NO_IntegerMinHigh_constraint;
500ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
501der_type_encoder_f NO_IntegerMinHigh_encode_der;
502xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
503xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
504per_type_decoder_f NO_IntegerMinHigh_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000505per_type_encoder_f NO_IntegerMinHigh_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000506
507/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
508
509int
510NO_IntegerMinHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000511 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000512 const INTEGER_t *st = (const INTEGER_t *)sptr;
513 long value;
514
515 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700516 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000517 "%s: value not given (%s:%d)",
518 td->name, __FILE__, __LINE__);
519 return -1;
520 }
521
522 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700523 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000524 "%s: value too large (%s:%d)",
525 td->name, __FILE__, __LINE__);
526 return -1;
527 }
528
529 if((value <= 3000000000)) {
530 /* Constraint check succeeded */
531 return 0;
532 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700533 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000534 "%s: constraint failed (%s:%d)",
535 td->name, __FILE__, __LINE__);
536 return -1;
537 }
538}
539
540/*
541 * This type is implemented using INTEGER,
542 * so here we adjust the DEF accordingly.
543 */
544static void
545NO_IntegerMinHigh_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
546 td->free_struct = asn_DEF_INTEGER.free_struct;
547 td->print_struct = asn_DEF_INTEGER.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800548 td->check_constraints = asn_DEF_INTEGER.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +0000549 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
550 td->der_encoder = asn_DEF_INTEGER.der_encoder;
551 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
552 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
553 td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000554 td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700555 td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
556 td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000557 if(!td->per_constraints)
558 td->per_constraints = asn_DEF_INTEGER.per_constraints;
559 td->elements = asn_DEF_INTEGER.elements;
560 td->elements_count = asn_DEF_INTEGER.elements_count;
561 td->specifics = asn_DEF_INTEGER.specifics;
562}
563
564void
565NO_IntegerMinHigh_free(asn_TYPE_descriptor_t *td,
566 void *struct_ptr, int contents_only) {
567 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
568 td->free_struct(td, struct_ptr, contents_only);
569}
570
571int
572NO_IntegerMinHigh_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
573 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
574 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
575 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
576}
577
578asn_dec_rval_t
579NO_IntegerMinHigh_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
580 void **structure, const void *bufptr, size_t size, int tag_mode) {
581 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
582 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
583}
584
585asn_enc_rval_t
586NO_IntegerMinHigh_encode_der(asn_TYPE_descriptor_t *td,
587 void *structure, int tag_mode, ber_tlv_tag_t tag,
588 asn_app_consume_bytes_f *cb, void *app_key) {
589 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
590 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
591}
592
593asn_dec_rval_t
594NO_IntegerMinHigh_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
595 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
596 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
597 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
598}
599
600asn_enc_rval_t
601NO_IntegerMinHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
602 int ilevel, enum xer_encoder_flags_e flags,
603 asn_app_consume_bytes_f *cb, void *app_key) {
604 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
605 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
606}
607
608asn_dec_rval_t
609NO_IntegerMinHigh_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
610 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
611 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
612 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
613}
614
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000615asn_enc_rval_t
616NO_IntegerMinHigh_encode_uper(asn_TYPE_descriptor_t *td,
617 asn_per_constraints_t *constraints,
618 void *structure, asn_per_outp_t *per_out) {
619 NO_IntegerMinHigh_1_inherit_TYPE_descriptor(td);
620 return td->uper_encoder(td, constraints, structure, per_out);
621}
622
Lev Walkin59b176e2005-11-26 11:25:14 +0000623
Lev Walkin725883b2006-10-09 12:07:58 +0000624/*** <<< CTDEFS [NO-IntegerMinHigh] >>> ***/
625
Lev Walkin2fce55d2013-03-28 05:00:39 -0700626static asn_per_constraints_t asn_PER_type_NO_IntegerMinHigh_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000627 { APC_UNCONSTRAINED, -1, -1, 0, 0 } /* (MIN..3000000000) */,
628 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
629 0, 0 /* No PER value map */
630};
631
Lev Walkin59b176e2005-11-26 11:25:14 +0000632/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
633
Lev Walkina7591b52014-10-12 18:37:35 -0700634static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000635 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
636};
Lev Walkin59b176e2005-11-26 11:25:14 +0000637asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
638 "NO-IntegerMinHigh",
639 "NO-IntegerMinHigh",
640 NO_IntegerMinHigh_free,
641 NO_IntegerMinHigh_print,
642 NO_IntegerMinHigh_constraint,
643 NO_IntegerMinHigh_decode_ber,
644 NO_IntegerMinHigh_encode_der,
645 NO_IntegerMinHigh_decode_xer,
646 NO_IntegerMinHigh_encode_xer,
647 NO_IntegerMinHigh_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000648 NO_IntegerMinHigh_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700649 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000650 0, /* Use generic outmost tag fetcher */
651 asn_DEF_NO_IntegerMinHigh_tags_1,
652 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
653 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
654 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
655 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
656 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000657 &asn_PER_type_NO_IntegerMinHigh_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000658 0, 0, /* No members */
659 0 /* No specifics */
660};
661
662
663/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
664
Lev Walkin8bb57a22007-12-03 13:41:36 +0000665#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000666
667/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
668
Lev Walkin8bb57a22007-12-03 13:41:36 +0000669typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000670
671/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
672
673extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
674asn_struct_free_f NO_IntegerLowHigh_free;
675asn_struct_print_f NO_IntegerLowHigh_print;
676asn_constr_check_f NO_IntegerLowHigh_constraint;
677ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
678der_type_encoder_f NO_IntegerLowHigh_encode_der;
679xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
680xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
681per_type_decoder_f NO_IntegerLowHigh_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000682per_type_encoder_f NO_IntegerLowHigh_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000683
684/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
685
686int
687NO_IntegerLowHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000688 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000689 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +0000690
691 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700692 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000693 "%s: value not given (%s:%d)",
694 td->name, __FILE__, __LINE__);
695 return -1;
696 }
697
Lev Walkin8bb57a22007-12-03 13:41:36 +0000698 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000699
700 if((value >= 1 && value <= 3000000000)) {
701 /* Constraint check succeeded */
702 return 0;
703 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700704 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000705 "%s: constraint failed (%s:%d)",
706 td->name, __FILE__, __LINE__);
707 return -1;
708 }
709}
710
711/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000712 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000713 * so here we adjust the DEF accordingly.
714 */
715static void
716NO_IntegerLowHigh_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000717 td->free_struct = asn_DEF_NativeInteger.free_struct;
718 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800719 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin8bb57a22007-12-03 13:41:36 +0000720 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
721 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
722 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
723 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
724 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
725 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700726 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
727 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000728 if(!td->per_constraints)
Lev Walkin8bb57a22007-12-03 13:41:36 +0000729 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
730 td->elements = asn_DEF_NativeInteger.elements;
731 td->elements_count = asn_DEF_NativeInteger.elements_count;
732 /* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
Lev Walkin59b176e2005-11-26 11:25:14 +0000733}
734
735void
736NO_IntegerLowHigh_free(asn_TYPE_descriptor_t *td,
737 void *struct_ptr, int contents_only) {
738 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
739 td->free_struct(td, struct_ptr, contents_only);
740}
741
742int
743NO_IntegerLowHigh_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
744 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
745 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
746 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
747}
748
749asn_dec_rval_t
750NO_IntegerLowHigh_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
751 void **structure, const void *bufptr, size_t size, int tag_mode) {
752 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
753 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
754}
755
756asn_enc_rval_t
757NO_IntegerLowHigh_encode_der(asn_TYPE_descriptor_t *td,
758 void *structure, int tag_mode, ber_tlv_tag_t tag,
759 asn_app_consume_bytes_f *cb, void *app_key) {
760 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
761 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
762}
763
764asn_dec_rval_t
765NO_IntegerLowHigh_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
766 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
767 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
768 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
769}
770
771asn_enc_rval_t
772NO_IntegerLowHigh_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
773 int ilevel, enum xer_encoder_flags_e flags,
774 asn_app_consume_bytes_f *cb, void *app_key) {
775 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
776 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
777}
778
779asn_dec_rval_t
780NO_IntegerLowHigh_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
781 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
782 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
783 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
784}
785
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000786asn_enc_rval_t
787NO_IntegerLowHigh_encode_uper(asn_TYPE_descriptor_t *td,
788 asn_per_constraints_t *constraints,
789 void *structure, asn_per_outp_t *per_out) {
790 NO_IntegerLowHigh_1_inherit_TYPE_descriptor(td);
791 return td->uper_encoder(td, constraints, structure, per_out);
792}
793
Lev Walkin59b176e2005-11-26 11:25:14 +0000794
Lev Walkin725883b2006-10-09 12:07:58 +0000795/*** <<< CTDEFS [NO-IntegerLowHigh] >>> ***/
796
Lev Walkin2fce55d2013-03-28 05:00:39 -0700797static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000798 { APC_CONSTRAINED, 32, -1, 1, 3000000000 } /* (1..3000000000) */,
799 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
800 0, 0 /* No PER value map */
801};
802
Lev Walkin59b176e2005-11-26 11:25:14 +0000803/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
804
johvike70c4072017-05-09 11:06:12 +0200805static asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000806 0, 0, 0, 0, 0,
807 0, /* Native long size */
808 1 /* Unsigned representation */
809};
Lev Walkina7591b52014-10-12 18:37:35 -0700810static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000811 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
812};
Lev Walkin59b176e2005-11-26 11:25:14 +0000813asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
814 "NO-IntegerLowHigh",
815 "NO-IntegerLowHigh",
816 NO_IntegerLowHigh_free,
817 NO_IntegerLowHigh_print,
818 NO_IntegerLowHigh_constraint,
819 NO_IntegerLowHigh_decode_ber,
820 NO_IntegerLowHigh_encode_der,
821 NO_IntegerLowHigh_decode_xer,
822 NO_IntegerLowHigh_encode_xer,
823 NO_IntegerLowHigh_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000824 NO_IntegerLowHigh_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700825 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000826 0, /* Use generic outmost tag fetcher */
827 asn_DEF_NO_IntegerLowHigh_tags_1,
828 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
829 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
830 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
831 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
832 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000833 &asn_PER_type_NO_IntegerLowHigh_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000834 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000835 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +0000836};
837
838
839/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
840
Lev Walkin2a744a72013-03-27 01:56:23 -0700841#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000842
843/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
844
Lev Walkin2a744a72013-03-27 01:56:23 -0700845typedef long CN_IntegerLowMax_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000846
847/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
848
849extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
850asn_struct_free_f CN_IntegerLowMax_free;
851asn_struct_print_f CN_IntegerLowMax_print;
852asn_constr_check_f CN_IntegerLowMax_constraint;
853ber_type_decoder_f CN_IntegerLowMax_decode_ber;
854der_type_encoder_f CN_IntegerLowMax_encode_der;
855xer_type_decoder_f CN_IntegerLowMax_decode_xer;
856xer_type_encoder_f CN_IntegerLowMax_encode_xer;
857per_type_decoder_f CN_IntegerLowMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000858per_type_encoder_f CN_IntegerLowMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000859
860/*** <<< CODE [CN-IntegerLowMax] >>> ***/
861
862int
863CN_IntegerLowMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000864 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000865 long value;
866
867 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700868 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000869 "%s: value not given (%s:%d)",
870 td->name, __FILE__, __LINE__);
871 return -1;
872 }
873
Lev Walkin2a744a72013-03-27 01:56:23 -0700874 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000875
876 if((value >= 1)) {
877 /* Constraint check succeeded */
878 return 0;
879 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700880 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000881 "%s: constraint failed (%s:%d)",
882 td->name, __FILE__, __LINE__);
883 return -1;
884 }
885}
886
887/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700888 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000889 * so here we adjust the DEF accordingly.
890 */
891static void
892CN_IntegerLowMax_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700893 td->free_struct = asn_DEF_NativeInteger.free_struct;
894 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800895 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -0700896 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
897 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
898 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
899 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
900 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
901 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700902 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
903 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000904 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -0700905 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
906 td->elements = asn_DEF_NativeInteger.elements;
907 td->elements_count = asn_DEF_NativeInteger.elements_count;
908 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +0000909}
910
911void
912CN_IntegerLowMax_free(asn_TYPE_descriptor_t *td,
913 void *struct_ptr, int contents_only) {
914 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
915 td->free_struct(td, struct_ptr, contents_only);
916}
917
918int
919CN_IntegerLowMax_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
920 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
921 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
922 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
923}
924
925asn_dec_rval_t
926CN_IntegerLowMax_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
927 void **structure, const void *bufptr, size_t size, int tag_mode) {
928 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
929 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
930}
931
932asn_enc_rval_t
933CN_IntegerLowMax_encode_der(asn_TYPE_descriptor_t *td,
934 void *structure, int tag_mode, ber_tlv_tag_t tag,
935 asn_app_consume_bytes_f *cb, void *app_key) {
936 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
937 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
938}
939
940asn_dec_rval_t
941CN_IntegerLowMax_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
942 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
943 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
944 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
945}
946
947asn_enc_rval_t
948CN_IntegerLowMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
949 int ilevel, enum xer_encoder_flags_e flags,
950 asn_app_consume_bytes_f *cb, void *app_key) {
951 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
952 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
953}
954
955asn_dec_rval_t
956CN_IntegerLowMax_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
957 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
958 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
959 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
960}
961
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000962asn_enc_rval_t
963CN_IntegerLowMax_encode_uper(asn_TYPE_descriptor_t *td,
964 asn_per_constraints_t *constraints,
965 void *structure, asn_per_outp_t *per_out) {
966 CN_IntegerLowMax_1_inherit_TYPE_descriptor(td);
967 return td->uper_encoder(td, constraints, structure, per_out);
968}
969
Lev Walkin59b176e2005-11-26 11:25:14 +0000970
Lev Walkin725883b2006-10-09 12:07:58 +0000971/*** <<< CTDEFS [CN-IntegerLowMax] >>> ***/
972
Lev Walkin2fce55d2013-03-28 05:00:39 -0700973static asn_per_constraints_t asn_PER_type_CN_IntegerLowMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000974 { APC_SEMI_CONSTRAINED, -1, -1, 1, 0 } /* (1..MAX) */,
975 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
976 0, 0 /* No PER value map */
977};
978
Lev Walkin59b176e2005-11-26 11:25:14 +0000979/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
980
Lev Walkina7591b52014-10-12 18:37:35 -0700981static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000982 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
983};
Lev Walkin59b176e2005-11-26 11:25:14 +0000984asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
985 "CN-IntegerLowMax",
986 "CN-IntegerLowMax",
987 CN_IntegerLowMax_free,
988 CN_IntegerLowMax_print,
989 CN_IntegerLowMax_constraint,
990 CN_IntegerLowMax_decode_ber,
991 CN_IntegerLowMax_encode_der,
992 CN_IntegerLowMax_decode_xer,
993 CN_IntegerLowMax_encode_xer,
994 CN_IntegerLowMax_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000995 CN_IntegerLowMax_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -0700996 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +0000997 0, /* Use generic outmost tag fetcher */
998 asn_DEF_CN_IntegerLowMax_tags_1,
999 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
1000 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
1001 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
1002 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
1003 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001004 &asn_PER_type_CN_IntegerLowMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001005 0, 0, /* No members */
1006 0 /* No specifics */
1007};
1008
1009
1010/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
1011
1012#include <INTEGER.h>
1013
1014/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
1015
1016typedef INTEGER_t NO_IntegerHighMax_t;
1017
1018/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
1019
1020extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
1021asn_struct_free_f NO_IntegerHighMax_free;
1022asn_struct_print_f NO_IntegerHighMax_print;
1023asn_constr_check_f NO_IntegerHighMax_constraint;
1024ber_type_decoder_f NO_IntegerHighMax_decode_ber;
1025der_type_encoder_f NO_IntegerHighMax_encode_der;
1026xer_type_decoder_f NO_IntegerHighMax_decode_xer;
1027xer_type_encoder_f NO_IntegerHighMax_encode_xer;
1028per_type_decoder_f NO_IntegerHighMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001029per_type_encoder_f NO_IntegerHighMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001030
1031/*** <<< CODE [NO-IntegerHighMax] >>> ***/
1032
1033int
1034NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001035 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001036 const INTEGER_t *st = (const INTEGER_t *)sptr;
1037 long value;
1038
1039 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001040 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001041 "%s: value not given (%s:%d)",
1042 td->name, __FILE__, __LINE__);
1043 return -1;
1044 }
1045
1046 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001047 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001048 "%s: value too large (%s:%d)",
1049 td->name, __FILE__, __LINE__);
1050 return -1;
1051 }
1052
1053 if((value >= 3000000000)) {
1054 /* Constraint check succeeded */
1055 return 0;
1056 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001057 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001058 "%s: constraint failed (%s:%d)",
1059 td->name, __FILE__, __LINE__);
1060 return -1;
1061 }
1062}
1063
1064/*
1065 * This type is implemented using INTEGER,
1066 * so here we adjust the DEF accordingly.
1067 */
1068static void
1069NO_IntegerHighMax_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
1070 td->free_struct = asn_DEF_INTEGER.free_struct;
1071 td->print_struct = asn_DEF_INTEGER.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001072 td->check_constraints = asn_DEF_INTEGER.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00001073 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
1074 td->der_encoder = asn_DEF_INTEGER.der_encoder;
1075 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
1076 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
1077 td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001078 td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001079 td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
1080 td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001081 if(!td->per_constraints)
1082 td->per_constraints = asn_DEF_INTEGER.per_constraints;
1083 td->elements = asn_DEF_INTEGER.elements;
1084 td->elements_count = asn_DEF_INTEGER.elements_count;
1085 td->specifics = asn_DEF_INTEGER.specifics;
1086}
1087
1088void
1089NO_IntegerHighMax_free(asn_TYPE_descriptor_t *td,
1090 void *struct_ptr, int contents_only) {
1091 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1092 td->free_struct(td, struct_ptr, contents_only);
1093}
1094
1095int
1096NO_IntegerHighMax_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1097 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1098 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1099 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1100}
1101
1102asn_dec_rval_t
1103NO_IntegerHighMax_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1104 void **structure, const void *bufptr, size_t size, int tag_mode) {
1105 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1106 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1107}
1108
1109asn_enc_rval_t
1110NO_IntegerHighMax_encode_der(asn_TYPE_descriptor_t *td,
1111 void *structure, int tag_mode, ber_tlv_tag_t tag,
1112 asn_app_consume_bytes_f *cb, void *app_key) {
1113 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1114 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1115}
1116
1117asn_dec_rval_t
1118NO_IntegerHighMax_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1119 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1120 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1121 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1122}
1123
1124asn_enc_rval_t
1125NO_IntegerHighMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1126 int ilevel, enum xer_encoder_flags_e flags,
1127 asn_app_consume_bytes_f *cb, void *app_key) {
1128 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1129 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1130}
1131
1132asn_dec_rval_t
1133NO_IntegerHighMax_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1134 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
1135 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1136 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
1137}
1138
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001139asn_enc_rval_t
1140NO_IntegerHighMax_encode_uper(asn_TYPE_descriptor_t *td,
1141 asn_per_constraints_t *constraints,
1142 void *structure, asn_per_outp_t *per_out) {
1143 NO_IntegerHighMax_1_inherit_TYPE_descriptor(td);
1144 return td->uper_encoder(td, constraints, structure, per_out);
1145}
1146
Lev Walkin59b176e2005-11-26 11:25:14 +00001147
Lev Walkin725883b2006-10-09 12:07:58 +00001148/*** <<< CTDEFS [NO-IntegerHighMax] >>> ***/
1149
Lev Walkin2fce55d2013-03-28 05:00:39 -07001150static asn_per_constraints_t asn_PER_type_NO_IntegerHighMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001151 { APC_SEMI_CONSTRAINED, -1, -1, 3000000000, 0 } /* (3000000000..MAX) */,
1152 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1153 0, 0 /* No PER value map */
1154};
1155
Lev Walkin59b176e2005-11-26 11:25:14 +00001156/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
1157
Lev Walkina7591b52014-10-12 18:37:35 -07001158static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001159 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1160};
Lev Walkin59b176e2005-11-26 11:25:14 +00001161asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
1162 "NO-IntegerHighMax",
1163 "NO-IntegerHighMax",
1164 NO_IntegerHighMax_free,
1165 NO_IntegerHighMax_print,
1166 NO_IntegerHighMax_constraint,
1167 NO_IntegerHighMax_decode_ber,
1168 NO_IntegerHighMax_encode_der,
1169 NO_IntegerHighMax_decode_xer,
1170 NO_IntegerHighMax_encode_xer,
1171 NO_IntegerHighMax_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001172 NO_IntegerHighMax_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07001173 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00001174 0, /* Use generic outmost tag fetcher */
1175 asn_DEF_NO_IntegerHighMax_tags_1,
1176 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
1177 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
1178 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
1179 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
1180 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001181 &asn_PER_type_NO_IntegerHighMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001182 0, 0, /* No members */
1183 0 /* No specifics */
1184};
1185
1186
1187/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
1188
1189#include <INTEGER.h>
1190
1191/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
1192
1193typedef INTEGER_t NO_IntegerLowestMax_t;
1194
1195/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
1196
1197extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
1198asn_struct_free_f NO_IntegerLowestMax_free;
1199asn_struct_print_f NO_IntegerLowestMax_print;
1200asn_constr_check_f NO_IntegerLowestMax_constraint;
1201ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
1202der_type_encoder_f NO_IntegerLowestMax_encode_der;
1203xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
1204xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
1205per_type_decoder_f NO_IntegerLowestMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001206per_type_encoder_f NO_IntegerLowestMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001207
1208/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
1209
1210int
1211NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001212 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001213 const INTEGER_t *st = (const INTEGER_t *)sptr;
1214 long value;
1215
1216 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001217 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001218 "%s: value not given (%s:%d)",
1219 td->name, __FILE__, __LINE__);
1220 return -1;
1221 }
1222
1223 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001224 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001225 "%s: value too large (%s:%d)",
1226 td->name, __FILE__, __LINE__);
1227 return -1;
1228 }
1229
1230 if((value >= -3000000000)) {
1231 /* Constraint check succeeded */
1232 return 0;
1233 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001234 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001235 "%s: constraint failed (%s:%d)",
1236 td->name, __FILE__, __LINE__);
1237 return -1;
1238 }
1239}
1240
1241/*
1242 * This type is implemented using INTEGER,
1243 * so here we adjust the DEF accordingly.
1244 */
1245static void
1246NO_IntegerLowestMax_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
1247 td->free_struct = asn_DEF_INTEGER.free_struct;
1248 td->print_struct = asn_DEF_INTEGER.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001249 td->check_constraints = asn_DEF_INTEGER.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00001250 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
1251 td->der_encoder = asn_DEF_INTEGER.der_encoder;
1252 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
1253 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
1254 td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001255 td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001256 td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
1257 td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001258 if(!td->per_constraints)
1259 td->per_constraints = asn_DEF_INTEGER.per_constraints;
1260 td->elements = asn_DEF_INTEGER.elements;
1261 td->elements_count = asn_DEF_INTEGER.elements_count;
1262 td->specifics = asn_DEF_INTEGER.specifics;
1263}
1264
1265void
1266NO_IntegerLowestMax_free(asn_TYPE_descriptor_t *td,
1267 void *struct_ptr, int contents_only) {
1268 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1269 td->free_struct(td, struct_ptr, contents_only);
1270}
1271
1272int
1273NO_IntegerLowestMax_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1274 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1275 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1276 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1277}
1278
1279asn_dec_rval_t
1280NO_IntegerLowestMax_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1281 void **structure, const void *bufptr, size_t size, int tag_mode) {
1282 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1283 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1284}
1285
1286asn_enc_rval_t
1287NO_IntegerLowestMax_encode_der(asn_TYPE_descriptor_t *td,
1288 void *structure, int tag_mode, ber_tlv_tag_t tag,
1289 asn_app_consume_bytes_f *cb, void *app_key) {
1290 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1291 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1292}
1293
1294asn_dec_rval_t
1295NO_IntegerLowestMax_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1296 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1297 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1298 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1299}
1300
1301asn_enc_rval_t
1302NO_IntegerLowestMax_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1303 int ilevel, enum xer_encoder_flags_e flags,
1304 asn_app_consume_bytes_f *cb, void *app_key) {
1305 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1306 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1307}
1308
1309asn_dec_rval_t
1310NO_IntegerLowestMax_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1311 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
1312 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1313 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
1314}
1315
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001316asn_enc_rval_t
1317NO_IntegerLowestMax_encode_uper(asn_TYPE_descriptor_t *td,
1318 asn_per_constraints_t *constraints,
1319 void *structure, asn_per_outp_t *per_out) {
1320 NO_IntegerLowestMax_1_inherit_TYPE_descriptor(td);
1321 return td->uper_encoder(td, constraints, structure, per_out);
1322}
1323
Lev Walkin59b176e2005-11-26 11:25:14 +00001324
Lev Walkin725883b2006-10-09 12:07:58 +00001325/*** <<< CTDEFS [NO-IntegerLowestMax] >>> ***/
1326
Lev Walkin2fce55d2013-03-28 05:00:39 -07001327static asn_per_constraints_t asn_PER_type_NO_IntegerLowestMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001328 { APC_SEMI_CONSTRAINED, -1, -1, -3000000000, 0 } /* (-3000000000..MAX) */,
1329 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1330 0, 0 /* No PER value map */
1331};
1332
Lev Walkin59b176e2005-11-26 11:25:14 +00001333/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
1334
Lev Walkina7591b52014-10-12 18:37:35 -07001335static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001336 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1337};
Lev Walkin59b176e2005-11-26 11:25:14 +00001338asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
1339 "NO-IntegerLowestMax",
1340 "NO-IntegerLowestMax",
1341 NO_IntegerLowestMax_free,
1342 NO_IntegerLowestMax_print,
1343 NO_IntegerLowestMax_constraint,
1344 NO_IntegerLowestMax_decode_ber,
1345 NO_IntegerLowestMax_encode_der,
1346 NO_IntegerLowestMax_decode_xer,
1347 NO_IntegerLowestMax_encode_xer,
1348 NO_IntegerLowestMax_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001349 NO_IntegerLowestMax_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07001350 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00001351 0, /* Use generic outmost tag fetcher */
1352 asn_DEF_NO_IntegerLowestMax_tags_1,
1353 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
1354 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
1355 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
1356 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
1357 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001358 &asn_PER_type_NO_IntegerLowestMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001359 0, 0, /* No members */
1360 0 /* No specifics */
1361};
1362
1363
1364/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
1365
Lev Walkin8bb57a22007-12-03 13:41:36 +00001366#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00001367
1368/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
1369
Lev Walkin8bb57a22007-12-03 13:41:36 +00001370typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00001371
1372/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
1373
1374extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
1375asn_struct_free_f NO_IntegerOutRange_free;
1376asn_struct_print_f NO_IntegerOutRange_print;
1377asn_constr_check_f NO_IntegerOutRange_constraint;
1378ber_type_decoder_f NO_IntegerOutRange_decode_ber;
1379der_type_encoder_f NO_IntegerOutRange_encode_der;
1380xer_type_decoder_f NO_IntegerOutRange_decode_xer;
1381xer_type_encoder_f NO_IntegerOutRange_encode_xer;
1382per_type_decoder_f NO_IntegerOutRange_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001383per_type_encoder_f NO_IntegerOutRange_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001384
1385/*** <<< CODE [NO-IntegerOutRange] >>> ***/
1386
1387int
1388NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001389 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001390 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +00001391
1392 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001393 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001394 "%s: value not given (%s:%d)",
1395 td->name, __FILE__, __LINE__);
1396 return -1;
1397 }
1398
Lev Walkin8bb57a22007-12-03 13:41:36 +00001399 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +00001400
1401 if((value >= 3000000000 && value <= 3000000001)) {
1402 /* Constraint check succeeded */
1403 return 0;
1404 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001405 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001406 "%s: constraint failed (%s:%d)",
1407 td->name, __FILE__, __LINE__);
1408 return -1;
1409 }
1410}
1411
1412/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001413 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001414 * so here we adjust the DEF accordingly.
1415 */
1416static void
1417NO_IntegerOutRange_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001418 td->free_struct = asn_DEF_NativeInteger.free_struct;
1419 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001420 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin8bb57a22007-12-03 13:41:36 +00001421 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
1422 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
1423 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
1424 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
1425 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
1426 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001427 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
1428 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001429 if(!td->per_constraints)
Lev Walkin8bb57a22007-12-03 13:41:36 +00001430 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
1431 td->elements = asn_DEF_NativeInteger.elements;
1432 td->elements_count = asn_DEF_NativeInteger.elements_count;
1433 /* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
Lev Walkin59b176e2005-11-26 11:25:14 +00001434}
1435
1436void
1437NO_IntegerOutRange_free(asn_TYPE_descriptor_t *td,
1438 void *struct_ptr, int contents_only) {
1439 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1440 td->free_struct(td, struct_ptr, contents_only);
1441}
1442
1443int
1444NO_IntegerOutRange_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1445 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1446 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1447 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1448}
1449
1450asn_dec_rval_t
1451NO_IntegerOutRange_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1452 void **structure, const void *bufptr, size_t size, int tag_mode) {
1453 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1454 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1455}
1456
1457asn_enc_rval_t
1458NO_IntegerOutRange_encode_der(asn_TYPE_descriptor_t *td,
1459 void *structure, int tag_mode, ber_tlv_tag_t tag,
1460 asn_app_consume_bytes_f *cb, void *app_key) {
1461 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1462 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1463}
1464
1465asn_dec_rval_t
1466NO_IntegerOutRange_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1467 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1468 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1469 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1470}
1471
1472asn_enc_rval_t
1473NO_IntegerOutRange_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1474 int ilevel, enum xer_encoder_flags_e flags,
1475 asn_app_consume_bytes_f *cb, void *app_key) {
1476 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1477 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1478}
1479
1480asn_dec_rval_t
1481NO_IntegerOutRange_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1482 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
1483 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1484 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
1485}
1486
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001487asn_enc_rval_t
1488NO_IntegerOutRange_encode_uper(asn_TYPE_descriptor_t *td,
1489 asn_per_constraints_t *constraints,
1490 void *structure, asn_per_outp_t *per_out) {
1491 NO_IntegerOutRange_1_inherit_TYPE_descriptor(td);
1492 return td->uper_encoder(td, constraints, structure, per_out);
1493}
1494
Lev Walkin59b176e2005-11-26 11:25:14 +00001495
Lev Walkin725883b2006-10-09 12:07:58 +00001496/*** <<< CTDEFS [NO-IntegerOutRange] >>> ***/
1497
Lev Walkin2fce55d2013-03-28 05:00:39 -07001498static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001499 { APC_CONSTRAINED, 1, -1, 3000000000, 3000000001 } /* (3000000000..3000000001) */,
1500 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1501 0, 0 /* No PER value map */
1502};
1503
Lev Walkin59b176e2005-11-26 11:25:14 +00001504/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
1505
johvike70c4072017-05-09 11:06:12 +02001506static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001507 0, 0, 0, 0, 0,
1508 0, /* Native long size */
1509 1 /* Unsigned representation */
1510};
Lev Walkina7591b52014-10-12 18:37:35 -07001511static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001512 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1513};
Lev Walkin59b176e2005-11-26 11:25:14 +00001514asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
1515 "NO-IntegerOutRange",
1516 "NO-IntegerOutRange",
1517 NO_IntegerOutRange_free,
1518 NO_IntegerOutRange_print,
1519 NO_IntegerOutRange_constraint,
1520 NO_IntegerOutRange_decode_ber,
1521 NO_IntegerOutRange_encode_der,
1522 NO_IntegerOutRange_decode_xer,
1523 NO_IntegerOutRange_encode_xer,
1524 NO_IntegerOutRange_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001525 NO_IntegerOutRange_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07001526 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00001527 0, /* Use generic outmost tag fetcher */
1528 asn_DEF_NO_IntegerOutRange_tags_1,
1529 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
1530 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
1531 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
1532 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
1533 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001534 &asn_PER_type_NO_IntegerOutRange_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001535 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001536 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +00001537};
1538
1539
1540/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
1541
Lev Walkin8bb57a22007-12-03 13:41:36 +00001542#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00001543
1544/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
1545
Lev Walkin8bb57a22007-12-03 13:41:36 +00001546typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00001547
1548/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
1549
1550extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
1551asn_struct_free_f NO_IntegerOutValue_free;
1552asn_struct_print_f NO_IntegerOutValue_print;
1553asn_constr_check_f NO_IntegerOutValue_constraint;
1554ber_type_decoder_f NO_IntegerOutValue_decode_ber;
1555der_type_encoder_f NO_IntegerOutValue_encode_der;
1556xer_type_decoder_f NO_IntegerOutValue_decode_xer;
1557xer_type_encoder_f NO_IntegerOutValue_encode_xer;
1558per_type_decoder_f NO_IntegerOutValue_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001559per_type_encoder_f NO_IntegerOutValue_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001560
1561/*** <<< CODE [NO-IntegerOutValue] >>> ***/
1562
1563int
1564NO_IntegerOutValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001565 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001566 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +00001567
1568 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001569 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001570 "%s: value not given (%s:%d)",
1571 td->name, __FILE__, __LINE__);
1572 return -1;
1573 }
1574
Lev Walkin8bb57a22007-12-03 13:41:36 +00001575 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +00001576
1577 if((value == 3000000000)) {
1578 /* Constraint check succeeded */
1579 return 0;
1580 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001581 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001582 "%s: constraint failed (%s:%d)",
1583 td->name, __FILE__, __LINE__);
1584 return -1;
1585 }
1586}
1587
1588/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001589 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001590 * so here we adjust the DEF accordingly.
1591 */
1592static void
1593NO_IntegerOutValue_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001594 td->free_struct = asn_DEF_NativeInteger.free_struct;
1595 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001596 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin8bb57a22007-12-03 13:41:36 +00001597 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
1598 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
1599 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
1600 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
1601 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
1602 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001603 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
1604 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001605 if(!td->per_constraints)
Lev Walkin8bb57a22007-12-03 13:41:36 +00001606 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
1607 td->elements = asn_DEF_NativeInteger.elements;
1608 td->elements_count = asn_DEF_NativeInteger.elements_count;
1609 /* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
Lev Walkin59b176e2005-11-26 11:25:14 +00001610}
1611
1612void
1613NO_IntegerOutValue_free(asn_TYPE_descriptor_t *td,
1614 void *struct_ptr, int contents_only) {
1615 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1616 td->free_struct(td, struct_ptr, contents_only);
1617}
1618
1619int
1620NO_IntegerOutValue_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1621 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1622 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1623 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1624}
1625
1626asn_dec_rval_t
1627NO_IntegerOutValue_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1628 void **structure, const void *bufptr, size_t size, int tag_mode) {
1629 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1630 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1631}
1632
1633asn_enc_rval_t
1634NO_IntegerOutValue_encode_der(asn_TYPE_descriptor_t *td,
1635 void *structure, int tag_mode, ber_tlv_tag_t tag,
1636 asn_app_consume_bytes_f *cb, void *app_key) {
1637 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1638 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1639}
1640
1641asn_dec_rval_t
1642NO_IntegerOutValue_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1643 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1644 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1645 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1646}
1647
1648asn_enc_rval_t
1649NO_IntegerOutValue_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1650 int ilevel, enum xer_encoder_flags_e flags,
1651 asn_app_consume_bytes_f *cb, void *app_key) {
1652 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1653 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1654}
1655
1656asn_dec_rval_t
1657NO_IntegerOutValue_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1658 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
1659 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1660 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
1661}
1662
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001663asn_enc_rval_t
1664NO_IntegerOutValue_encode_uper(asn_TYPE_descriptor_t *td,
1665 asn_per_constraints_t *constraints,
1666 void *structure, asn_per_outp_t *per_out) {
1667 NO_IntegerOutValue_1_inherit_TYPE_descriptor(td);
1668 return td->uper_encoder(td, constraints, structure, per_out);
1669}
1670
Lev Walkin59b176e2005-11-26 11:25:14 +00001671
Lev Walkin725883b2006-10-09 12:07:58 +00001672/*** <<< CTDEFS [NO-IntegerOutValue] >>> ***/
1673
Lev Walkin2fce55d2013-03-28 05:00:39 -07001674static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001675 { APC_CONSTRAINED, 0, -1, 3000000000, 3000000000 } /* (3000000000..3000000000) */,
1676 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1677 0, 0 /* No PER value map */
1678};
1679
Lev Walkin59b176e2005-11-26 11:25:14 +00001680/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
1681
johvike70c4072017-05-09 11:06:12 +02001682static asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001683 0, 0, 0, 0, 0,
1684 0, /* Native long size */
1685 1 /* Unsigned representation */
1686};
Lev Walkina7591b52014-10-12 18:37:35 -07001687static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001688 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1689};
Lev Walkin59b176e2005-11-26 11:25:14 +00001690asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
1691 "NO-IntegerOutValue",
1692 "NO-IntegerOutValue",
1693 NO_IntegerOutValue_free,
1694 NO_IntegerOutValue_print,
1695 NO_IntegerOutValue_constraint,
1696 NO_IntegerOutValue_decode_ber,
1697 NO_IntegerOutValue_encode_der,
1698 NO_IntegerOutValue_decode_xer,
1699 NO_IntegerOutValue_encode_xer,
1700 NO_IntegerOutValue_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001701 NO_IntegerOutValue_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07001702 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00001703 0, /* Use generic outmost tag fetcher */
1704 asn_DEF_NO_IntegerOutValue_tags_1,
1705 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
1706 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
1707 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
1708 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
1709 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001710 &asn_PER_type_NO_IntegerOutValue_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001711 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001712 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +00001713};
1714
1715
1716/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
1717
1718#include <NativeInteger.h>
1719
1720/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
1721
1722typedef long OK_IntegerInRange1_t;
1723
1724/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
1725
1726extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
1727asn_struct_free_f OK_IntegerInRange1_free;
1728asn_struct_print_f OK_IntegerInRange1_print;
1729asn_constr_check_f OK_IntegerInRange1_constraint;
1730ber_type_decoder_f OK_IntegerInRange1_decode_ber;
1731der_type_encoder_f OK_IntegerInRange1_encode_der;
1732xer_type_decoder_f OK_IntegerInRange1_decode_xer;
1733xer_type_encoder_f OK_IntegerInRange1_encode_xer;
1734per_type_decoder_f OK_IntegerInRange1_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001735per_type_encoder_f OK_IntegerInRange1_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001736
1737/*** <<< CODE [OK-IntegerInRange1] >>> ***/
1738
1739int
1740OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001741 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001742 long value;
1743
1744 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001745 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001746 "%s: value not given (%s:%d)",
1747 td->name, __FILE__, __LINE__);
1748 return -1;
1749 }
1750
1751 value = *(const long *)sptr;
1752
1753 if((value >= -100 && value <= 100)) {
1754 /* Constraint check succeeded */
1755 return 0;
1756 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001757 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001758 "%s: constraint failed (%s:%d)",
1759 td->name, __FILE__, __LINE__);
1760 return -1;
1761 }
1762}
1763
1764/*
1765 * This type is implemented using NativeInteger,
1766 * so here we adjust the DEF accordingly.
1767 */
1768static void
1769OK_IntegerInRange1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
1770 td->free_struct = asn_DEF_NativeInteger.free_struct;
1771 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001772 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00001773 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
1774 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
1775 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
1776 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
1777 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001778 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001779 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
1780 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001781 if(!td->per_constraints)
1782 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
1783 td->elements = asn_DEF_NativeInteger.elements;
1784 td->elements_count = asn_DEF_NativeInteger.elements_count;
1785 td->specifics = asn_DEF_NativeInteger.specifics;
1786}
1787
1788void
1789OK_IntegerInRange1_free(asn_TYPE_descriptor_t *td,
1790 void *struct_ptr, int contents_only) {
1791 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1792 td->free_struct(td, struct_ptr, contents_only);
1793}
1794
1795int
1796OK_IntegerInRange1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1797 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1798 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1799 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1800}
1801
1802asn_dec_rval_t
1803OK_IntegerInRange1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1804 void **structure, const void *bufptr, size_t size, int tag_mode) {
1805 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1806 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1807}
1808
1809asn_enc_rval_t
1810OK_IntegerInRange1_encode_der(asn_TYPE_descriptor_t *td,
1811 void *structure, int tag_mode, ber_tlv_tag_t tag,
1812 asn_app_consume_bytes_f *cb, void *app_key) {
1813 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1814 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1815}
1816
1817asn_dec_rval_t
1818OK_IntegerInRange1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1819 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1820 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1821 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1822}
1823
1824asn_enc_rval_t
1825OK_IntegerInRange1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1826 int ilevel, enum xer_encoder_flags_e flags,
1827 asn_app_consume_bytes_f *cb, void *app_key) {
1828 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1829 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1830}
1831
1832asn_dec_rval_t
1833OK_IntegerInRange1_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1834 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
1835 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1836 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
1837}
1838
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001839asn_enc_rval_t
1840OK_IntegerInRange1_encode_uper(asn_TYPE_descriptor_t *td,
1841 asn_per_constraints_t *constraints,
1842 void *structure, asn_per_outp_t *per_out) {
1843 OK_IntegerInRange1_1_inherit_TYPE_descriptor(td);
1844 return td->uper_encoder(td, constraints, structure, per_out);
1845}
1846
Lev Walkin59b176e2005-11-26 11:25:14 +00001847
Lev Walkin725883b2006-10-09 12:07:58 +00001848/*** <<< CTDEFS [OK-IntegerInRange1] >>> ***/
1849
Lev Walkin2fce55d2013-03-28 05:00:39 -07001850static asn_per_constraints_t asn_PER_type_OK_IntegerInRange1_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001851 { APC_CONSTRAINED, 8, 8, -100, 100 } /* (-100..100) */,
1852 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1853 0, 0 /* No PER value map */
1854};
1855
Lev Walkin59b176e2005-11-26 11:25:14 +00001856/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
1857
Lev Walkina7591b52014-10-12 18:37:35 -07001858static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001859 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1860};
Lev Walkin59b176e2005-11-26 11:25:14 +00001861asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
1862 "OK-IntegerInRange1",
1863 "OK-IntegerInRange1",
1864 OK_IntegerInRange1_free,
1865 OK_IntegerInRange1_print,
1866 OK_IntegerInRange1_constraint,
1867 OK_IntegerInRange1_decode_ber,
1868 OK_IntegerInRange1_encode_der,
1869 OK_IntegerInRange1_decode_xer,
1870 OK_IntegerInRange1_encode_xer,
1871 OK_IntegerInRange1_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001872 OK_IntegerInRange1_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07001873 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00001874 0, /* Use generic outmost tag fetcher */
1875 asn_DEF_OK_IntegerInRange1_tags_1,
1876 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
1877 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
1878 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
1879 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
1880 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001881 &asn_PER_type_OK_IntegerInRange1_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001882 0, 0, /* No members */
1883 0 /* No specifics */
1884};
1885
1886
1887/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
1888
1889#include <NativeInteger.h>
1890
1891/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
1892
1893typedef long OK_IntegerInRange2_t;
1894
1895/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
1896
1897extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
1898asn_struct_free_f OK_IntegerInRange2_free;
1899asn_struct_print_f OK_IntegerInRange2_print;
1900asn_constr_check_f OK_IntegerInRange2_constraint;
1901ber_type_decoder_f OK_IntegerInRange2_decode_ber;
1902der_type_encoder_f OK_IntegerInRange2_encode_der;
1903xer_type_decoder_f OK_IntegerInRange2_decode_xer;
1904xer_type_encoder_f OK_IntegerInRange2_encode_xer;
1905per_type_decoder_f OK_IntegerInRange2_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001906per_type_encoder_f OK_IntegerInRange2_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001907
1908/*** <<< CODE [OK-IntegerInRange2] >>> ***/
1909
1910int
1911OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001912 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001913 long value;
1914
1915 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001916 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001917 "%s: value not given (%s:%d)",
1918 td->name, __FILE__, __LINE__);
1919 return -1;
1920 }
1921
1922 value = *(const long *)sptr;
1923
1924 if(((value == -100) || (value == 100))) {
1925 /* Constraint check succeeded */
1926 return 0;
1927 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001928 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001929 "%s: constraint failed (%s:%d)",
1930 td->name, __FILE__, __LINE__);
1931 return -1;
1932 }
1933}
1934
1935/*
1936 * This type is implemented using NativeInteger,
1937 * so here we adjust the DEF accordingly.
1938 */
1939static void
1940OK_IntegerInRange2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
1941 td->free_struct = asn_DEF_NativeInteger.free_struct;
1942 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001943 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00001944 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
1945 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
1946 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
1947 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
1948 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001949 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001950 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
1951 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001952 if(!td->per_constraints)
1953 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
1954 td->elements = asn_DEF_NativeInteger.elements;
1955 td->elements_count = asn_DEF_NativeInteger.elements_count;
1956 td->specifics = asn_DEF_NativeInteger.specifics;
1957}
1958
1959void
1960OK_IntegerInRange2_free(asn_TYPE_descriptor_t *td,
1961 void *struct_ptr, int contents_only) {
1962 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
1963 td->free_struct(td, struct_ptr, contents_only);
1964}
1965
1966int
1967OK_IntegerInRange2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1968 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1969 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
1970 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1971}
1972
1973asn_dec_rval_t
1974OK_IntegerInRange2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1975 void **structure, const void *bufptr, size_t size, int tag_mode) {
1976 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
1977 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1978}
1979
1980asn_enc_rval_t
1981OK_IntegerInRange2_encode_der(asn_TYPE_descriptor_t *td,
1982 void *structure, int tag_mode, ber_tlv_tag_t tag,
1983 asn_app_consume_bytes_f *cb, void *app_key) {
1984 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
1985 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1986}
1987
1988asn_dec_rval_t
1989OK_IntegerInRange2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1990 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1991 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
1992 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1993}
1994
1995asn_enc_rval_t
1996OK_IntegerInRange2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1997 int ilevel, enum xer_encoder_flags_e flags,
1998 asn_app_consume_bytes_f *cb, void *app_key) {
1999 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
2000 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2001}
2002
2003asn_dec_rval_t
2004OK_IntegerInRange2_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2005 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2006 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
2007 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2008}
2009
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002010asn_enc_rval_t
2011OK_IntegerInRange2_encode_uper(asn_TYPE_descriptor_t *td,
2012 asn_per_constraints_t *constraints,
2013 void *structure, asn_per_outp_t *per_out) {
2014 OK_IntegerInRange2_1_inherit_TYPE_descriptor(td);
2015 return td->uper_encoder(td, constraints, structure, per_out);
2016}
2017
Lev Walkin59b176e2005-11-26 11:25:14 +00002018
Lev Walkin725883b2006-10-09 12:07:58 +00002019/*** <<< CTDEFS [OK-IntegerInRange2] >>> ***/
2020
Lev Walkin2fce55d2013-03-28 05:00:39 -07002021static asn_per_constraints_t asn_PER_type_OK_IntegerInRange2_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00002022 { APC_CONSTRAINED, 8, 8, -100, 100 } /* (-100..100) */,
2023 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
2024 0, 0 /* No PER value map */
2025};
2026
Lev Walkin59b176e2005-11-26 11:25:14 +00002027/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
2028
Lev Walkina7591b52014-10-12 18:37:35 -07002029static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002030 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2031};
Lev Walkin59b176e2005-11-26 11:25:14 +00002032asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
2033 "OK-IntegerInRange2",
2034 "OK-IntegerInRange2",
2035 OK_IntegerInRange2_free,
2036 OK_IntegerInRange2_print,
2037 OK_IntegerInRange2_constraint,
2038 OK_IntegerInRange2_decode_ber,
2039 OK_IntegerInRange2_encode_der,
2040 OK_IntegerInRange2_decode_xer,
2041 OK_IntegerInRange2_encode_xer,
2042 OK_IntegerInRange2_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002043 OK_IntegerInRange2_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002044 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002045 0, /* Use generic outmost tag fetcher */
2046 asn_DEF_OK_IntegerInRange2_tags_1,
2047 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
2048 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
2049 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
2050 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
2051 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00002052 &asn_PER_type_OK_IntegerInRange2_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00002053 0, 0, /* No members */
2054 0 /* No specifics */
2055};
2056
2057
2058/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
2059
2060#include <NativeInteger.h>
2061
2062/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
2063
2064typedef long OK_IntegerInRange3_t;
2065
2066/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
2067
2068extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
2069asn_struct_free_f OK_IntegerInRange3_free;
2070asn_struct_print_f OK_IntegerInRange3_print;
2071asn_constr_check_f OK_IntegerInRange3_constraint;
2072ber_type_decoder_f OK_IntegerInRange3_decode_ber;
2073der_type_encoder_f OK_IntegerInRange3_encode_der;
2074xer_type_decoder_f OK_IntegerInRange3_decode_xer;
2075xer_type_encoder_f OK_IntegerInRange3_encode_xer;
2076per_type_decoder_f OK_IntegerInRange3_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002077per_type_encoder_f OK_IntegerInRange3_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002078
2079/*** <<< CODE [OK-IntegerInRange3] >>> ***/
2080
2081int
2082OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002083 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002084 long value;
2085
2086 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002087 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002088 "%s: value not given (%s:%d)",
2089 td->name, __FILE__, __LINE__);
2090 return -1;
2091 }
2092
2093 value = *(const long *)sptr;
2094
Lev Walkin63b41262007-11-06 01:48:46 +00002095 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002096 /* Constraint check succeeded */
2097 return 0;
2098 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002099 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002100 "%s: constraint failed (%s:%d)",
2101 td->name, __FILE__, __LINE__);
2102 return -1;
2103 }
2104}
2105
2106/*
2107 * This type is implemented using NativeInteger,
2108 * so here we adjust the DEF accordingly.
2109 */
2110static void
2111OK_IntegerInRange3_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
2112 td->free_struct = asn_DEF_NativeInteger.free_struct;
2113 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002114 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00002115 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
2116 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
2117 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
2118 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
2119 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002120 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002121 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
2122 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002123 if(!td->per_constraints)
2124 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
2125 td->elements = asn_DEF_NativeInteger.elements;
2126 td->elements_count = asn_DEF_NativeInteger.elements_count;
2127 td->specifics = asn_DEF_NativeInteger.specifics;
2128}
2129
2130void
2131OK_IntegerInRange3_free(asn_TYPE_descriptor_t *td,
2132 void *struct_ptr, int contents_only) {
2133 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2134 td->free_struct(td, struct_ptr, contents_only);
2135}
2136
2137int
2138OK_IntegerInRange3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2139 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2140 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2141 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2142}
2143
2144asn_dec_rval_t
2145OK_IntegerInRange3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2146 void **structure, const void *bufptr, size_t size, int tag_mode) {
2147 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2148 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2149}
2150
2151asn_enc_rval_t
2152OK_IntegerInRange3_encode_der(asn_TYPE_descriptor_t *td,
2153 void *structure, int tag_mode, ber_tlv_tag_t tag,
2154 asn_app_consume_bytes_f *cb, void *app_key) {
2155 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2156 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2157}
2158
2159asn_dec_rval_t
2160OK_IntegerInRange3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2161 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2162 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2163 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2164}
2165
2166asn_enc_rval_t
2167OK_IntegerInRange3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2168 int ilevel, enum xer_encoder_flags_e flags,
2169 asn_app_consume_bytes_f *cb, void *app_key) {
2170 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2171 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2172}
2173
2174asn_dec_rval_t
2175OK_IntegerInRange3_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2176 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2177 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2178 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2179}
2180
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002181asn_enc_rval_t
2182OK_IntegerInRange3_encode_uper(asn_TYPE_descriptor_t *td,
2183 asn_per_constraints_t *constraints,
2184 void *structure, asn_per_outp_t *per_out) {
2185 OK_IntegerInRange3_1_inherit_TYPE_descriptor(td);
2186 return td->uper_encoder(td, constraints, structure, per_out);
2187}
2188
Lev Walkin59b176e2005-11-26 11:25:14 +00002189
Lev Walkin725883b2006-10-09 12:07:58 +00002190/*** <<< CTDEFS [OK-IntegerInRange3] >>> ***/
2191
Lev Walkin2fce55d2013-03-28 05:00:39 -07002192static asn_per_constraints_t asn_PER_type_OK_IntegerInRange3_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00002193 { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
Lev Walkin725883b2006-10-09 12:07:58 +00002194 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
2195 0, 0 /* No PER value map */
2196};
2197
Lev Walkin59b176e2005-11-26 11:25:14 +00002198/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
2199
Lev Walkina7591b52014-10-12 18:37:35 -07002200static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002201 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2202};
Lev Walkin59b176e2005-11-26 11:25:14 +00002203asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
2204 "OK-IntegerInRange3",
2205 "OK-IntegerInRange3",
2206 OK_IntegerInRange3_free,
2207 OK_IntegerInRange3_print,
2208 OK_IntegerInRange3_constraint,
2209 OK_IntegerInRange3_decode_ber,
2210 OK_IntegerInRange3_encode_der,
2211 OK_IntegerInRange3_decode_xer,
2212 OK_IntegerInRange3_encode_xer,
2213 OK_IntegerInRange3_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002214 OK_IntegerInRange3_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002215 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002216 0, /* Use generic outmost tag fetcher */
2217 asn_DEF_OK_IntegerInRange3_tags_1,
2218 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
2219 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
2220 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
2221 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
2222 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00002223 &asn_PER_type_OK_IntegerInRange3_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00002224 0, 0, /* No members */
2225 0 /* No specifics */
2226};
2227
2228
2229/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
2230
2231#include <NativeInteger.h>
2232
2233/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
2234
2235typedef long OK_IntegerInRange4_t;
2236
2237/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
2238
2239extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
2240asn_struct_free_f OK_IntegerInRange4_free;
2241asn_struct_print_f OK_IntegerInRange4_print;
2242asn_constr_check_f OK_IntegerInRange4_constraint;
2243ber_type_decoder_f OK_IntegerInRange4_decode_ber;
2244der_type_encoder_f OK_IntegerInRange4_encode_der;
2245xer_type_decoder_f OK_IntegerInRange4_decode_xer;
2246xer_type_encoder_f OK_IntegerInRange4_encode_xer;
2247per_type_decoder_f OK_IntegerInRange4_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002248per_type_encoder_f OK_IntegerInRange4_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002249
2250/*** <<< CODE [OK-IntegerInRange4] >>> ***/
2251
2252int
2253OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002254 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002255 long value;
2256
2257 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002258 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002259 "%s: value not given (%s:%d)",
2260 td->name, __FILE__, __LINE__);
2261 return -1;
2262 }
2263
2264 value = *(const long *)sptr;
2265
Lev Walkin63b41262007-11-06 01:48:46 +00002266 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002267 /* Constraint check succeeded */
2268 return 0;
2269 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002270 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002271 "%s: constraint failed (%s:%d)",
2272 td->name, __FILE__, __LINE__);
2273 return -1;
2274 }
2275}
2276
2277/*
2278 * This type is implemented using NativeInteger,
2279 * so here we adjust the DEF accordingly.
2280 */
2281static void
2282OK_IntegerInRange4_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
2283 td->free_struct = asn_DEF_NativeInteger.free_struct;
2284 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002285 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00002286 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
2287 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
2288 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
2289 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
2290 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002291 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002292 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
2293 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002294 if(!td->per_constraints)
2295 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
2296 td->elements = asn_DEF_NativeInteger.elements;
2297 td->elements_count = asn_DEF_NativeInteger.elements_count;
2298 td->specifics = asn_DEF_NativeInteger.specifics;
2299}
2300
2301void
2302OK_IntegerInRange4_free(asn_TYPE_descriptor_t *td,
2303 void *struct_ptr, int contents_only) {
2304 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2305 td->free_struct(td, struct_ptr, contents_only);
2306}
2307
2308int
2309OK_IntegerInRange4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2310 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2311 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2312 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2313}
2314
2315asn_dec_rval_t
2316OK_IntegerInRange4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2317 void **structure, const void *bufptr, size_t size, int tag_mode) {
2318 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2319 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2320}
2321
2322asn_enc_rval_t
2323OK_IntegerInRange4_encode_der(asn_TYPE_descriptor_t *td,
2324 void *structure, int tag_mode, ber_tlv_tag_t tag,
2325 asn_app_consume_bytes_f *cb, void *app_key) {
2326 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2327 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2328}
2329
2330asn_dec_rval_t
2331OK_IntegerInRange4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2332 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2333 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2334 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2335}
2336
2337asn_enc_rval_t
2338OK_IntegerInRange4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2339 int ilevel, enum xer_encoder_flags_e flags,
2340 asn_app_consume_bytes_f *cb, void *app_key) {
2341 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2342 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2343}
2344
2345asn_dec_rval_t
2346OK_IntegerInRange4_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2347 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2348 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2349 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2350}
2351
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002352asn_enc_rval_t
2353OK_IntegerInRange4_encode_uper(asn_TYPE_descriptor_t *td,
2354 asn_per_constraints_t *constraints,
2355 void *structure, asn_per_outp_t *per_out) {
2356 OK_IntegerInRange4_1_inherit_TYPE_descriptor(td);
2357 return td->uper_encoder(td, constraints, structure, per_out);
2358}
2359
Lev Walkin59b176e2005-11-26 11:25:14 +00002360
Lev Walkin725883b2006-10-09 12:07:58 +00002361/*** <<< CTDEFS [OK-IntegerInRange4] >>> ***/
2362
Lev Walkin2fce55d2013-03-28 05:00:39 -07002363static asn_per_constraints_t asn_PER_type_OK_IntegerInRange4_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00002364 { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
Lev Walkin725883b2006-10-09 12:07:58 +00002365 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
2366 0, 0 /* No PER value map */
2367};
2368
Lev Walkin59b176e2005-11-26 11:25:14 +00002369/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
2370
Lev Walkina7591b52014-10-12 18:37:35 -07002371static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002372 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2373};
Lev Walkin59b176e2005-11-26 11:25:14 +00002374asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
2375 "OK-IntegerInRange4",
2376 "OK-IntegerInRange4",
2377 OK_IntegerInRange4_free,
2378 OK_IntegerInRange4_print,
2379 OK_IntegerInRange4_constraint,
2380 OK_IntegerInRange4_decode_ber,
2381 OK_IntegerInRange4_encode_der,
2382 OK_IntegerInRange4_decode_xer,
2383 OK_IntegerInRange4_encode_xer,
2384 OK_IntegerInRange4_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002385 OK_IntegerInRange4_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002386 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002387 0, /* Use generic outmost tag fetcher */
2388 asn_DEF_OK_IntegerInRange4_tags_1,
2389 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
2390 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
2391 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
2392 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
2393 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00002394 &asn_PER_type_OK_IntegerInRange4_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00002395 0, 0, /* No members */
2396 0 /* No specifics */
2397};
2398
2399
2400/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
2401
Lev Walkin2a744a72013-03-27 01:56:23 -07002402#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00002403
2404/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
2405
Lev Walkin2a744a72013-03-27 01:56:23 -07002406typedef long OK_IntegerInRange5_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00002407
2408/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
2409
2410extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
2411asn_struct_free_f OK_IntegerInRange5_free;
2412asn_struct_print_f OK_IntegerInRange5_print;
2413asn_constr_check_f OK_IntegerInRange5_constraint;
2414ber_type_decoder_f OK_IntegerInRange5_decode_ber;
2415der_type_encoder_f OK_IntegerInRange5_encode_der;
2416xer_type_decoder_f OK_IntegerInRange5_decode_xer;
2417xer_type_encoder_f OK_IntegerInRange5_encode_xer;
2418per_type_decoder_f OK_IntegerInRange5_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002419per_type_encoder_f OK_IntegerInRange5_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002420
2421/*** <<< CODE [OK-IntegerInRange5] >>> ***/
2422
2423int
2424OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002425 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002426 long value;
2427
2428 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002429 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002430 "%s: value not given (%s:%d)",
2431 td->name, __FILE__, __LINE__);
2432 return -1;
2433 }
2434
Lev Walkin2a744a72013-03-27 01:56:23 -07002435 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +00002436
Lev Walkin63b41262007-11-06 01:48:46 +00002437 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002438 /* Constraint check succeeded */
2439 return 0;
2440 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002441 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002442 "%s: constraint failed (%s:%d)",
2443 td->name, __FILE__, __LINE__);
2444 return -1;
2445 }
2446}
2447
2448/*
Lev Walkin2a744a72013-03-27 01:56:23 -07002449 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00002450 * so here we adjust the DEF accordingly.
2451 */
2452static void
2453OK_IntegerInRange5_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -07002454 td->free_struct = asn_DEF_NativeInteger.free_struct;
2455 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002456 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -07002457 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
2458 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
2459 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
2460 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
2461 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
2462 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002463 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
2464 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002465 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -07002466 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
2467 td->elements = asn_DEF_NativeInteger.elements;
2468 td->elements_count = asn_DEF_NativeInteger.elements_count;
2469 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +00002470}
2471
2472void
2473OK_IntegerInRange5_free(asn_TYPE_descriptor_t *td,
2474 void *struct_ptr, int contents_only) {
2475 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2476 td->free_struct(td, struct_ptr, contents_only);
2477}
2478
2479int
2480OK_IntegerInRange5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2481 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2482 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2483 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2484}
2485
2486asn_dec_rval_t
2487OK_IntegerInRange5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2488 void **structure, const void *bufptr, size_t size, int tag_mode) {
2489 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2490 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2491}
2492
2493asn_enc_rval_t
2494OK_IntegerInRange5_encode_der(asn_TYPE_descriptor_t *td,
2495 void *structure, int tag_mode, ber_tlv_tag_t tag,
2496 asn_app_consume_bytes_f *cb, void *app_key) {
2497 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2498 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2499}
2500
2501asn_dec_rval_t
2502OK_IntegerInRange5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2503 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2504 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2505 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2506}
2507
2508asn_enc_rval_t
2509OK_IntegerInRange5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2510 int ilevel, enum xer_encoder_flags_e flags,
2511 asn_app_consume_bytes_f *cb, void *app_key) {
2512 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2513 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2514}
2515
2516asn_dec_rval_t
2517OK_IntegerInRange5_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2518 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2519 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2520 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2521}
2522
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002523asn_enc_rval_t
2524OK_IntegerInRange5_encode_uper(asn_TYPE_descriptor_t *td,
2525 asn_per_constraints_t *constraints,
2526 void *structure, asn_per_outp_t *per_out) {
2527 OK_IntegerInRange5_1_inherit_TYPE_descriptor(td);
2528 return td->uper_encoder(td, constraints, structure, per_out);
2529}
2530
Lev Walkin59b176e2005-11-26 11:25:14 +00002531
Lev Walkin725883b2006-10-09 12:07:58 +00002532/*** <<< CTDEFS [OK-IntegerInRange5] >>> ***/
2533
Lev Walkin2fce55d2013-03-28 05:00:39 -07002534static asn_per_constraints_t asn_PER_type_OK_IntegerInRange5_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00002535 { APC_CONSTRAINED | APC_EXTENSIBLE, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647,...) */,
Lev Walkin725883b2006-10-09 12:07:58 +00002536 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
2537 0, 0 /* No PER value map */
2538};
2539
Lev Walkin59b176e2005-11-26 11:25:14 +00002540/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
2541
Lev Walkina7591b52014-10-12 18:37:35 -07002542static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002543 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2544};
Lev Walkin59b176e2005-11-26 11:25:14 +00002545asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
2546 "OK-IntegerInRange5",
2547 "OK-IntegerInRange5",
2548 OK_IntegerInRange5_free,
2549 OK_IntegerInRange5_print,
2550 OK_IntegerInRange5_constraint,
2551 OK_IntegerInRange5_decode_ber,
2552 OK_IntegerInRange5_encode_der,
2553 OK_IntegerInRange5_decode_xer,
2554 OK_IntegerInRange5_encode_xer,
2555 OK_IntegerInRange5_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002556 OK_IntegerInRange5_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002557 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002558 0, /* Use generic outmost tag fetcher */
2559 asn_DEF_OK_IntegerInRange5_tags_1,
2560 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
2561 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
2562 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
2563 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
2564 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00002565 &asn_PER_type_OK_IntegerInRange5_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00002566 0, 0, /* No members */
2567 0 /* No specifics */
2568};
2569
2570
2571/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
2572
Lev Walkin8bb57a22007-12-03 13:41:36 +00002573#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00002574
2575/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
2576
Lev Walkin8bb57a22007-12-03 13:41:36 +00002577typedef unsigned long NO_IntegerInRange6_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00002578
2579/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
2580
2581extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
2582asn_struct_free_f NO_IntegerInRange6_free;
2583asn_struct_print_f NO_IntegerInRange6_print;
2584asn_constr_check_f NO_IntegerInRange6_constraint;
2585ber_type_decoder_f NO_IntegerInRange6_decode_ber;
2586der_type_encoder_f NO_IntegerInRange6_encode_der;
2587xer_type_decoder_f NO_IntegerInRange6_decode_xer;
2588xer_type_encoder_f NO_IntegerInRange6_encode_xer;
2589per_type_decoder_f NO_IntegerInRange6_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002590per_type_encoder_f NO_IntegerInRange6_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002591
2592/*** <<< CODE [NO-IntegerInRange6] >>> ***/
2593
2594int
2595NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002596 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002597
2598 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07002599 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00002600 "%s: value not given (%s:%d)",
2601 td->name, __FILE__, __LINE__);
2602 return -1;
2603 }
2604
Lev Walkin59b176e2005-11-26 11:25:14 +00002605
Lev Walkin8bb57a22007-12-03 13:41:36 +00002606 /* Constraint check succeeded */
2607 return 0;
Lev Walkin59b176e2005-11-26 11:25:14 +00002608}
2609
2610/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00002611 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00002612 * so here we adjust the DEF accordingly.
2613 */
2614static void
2615NO_IntegerInRange6_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin8bb57a22007-12-03 13:41:36 +00002616 td->free_struct = asn_DEF_NativeInteger.free_struct;
2617 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002618 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin8bb57a22007-12-03 13:41:36 +00002619 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
2620 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
2621 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
2622 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
2623 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
2624 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002625 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
2626 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002627 if(!td->per_constraints)
Lev Walkin8bb57a22007-12-03 13:41:36 +00002628 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
2629 td->elements = asn_DEF_NativeInteger.elements;
2630 td->elements_count = asn_DEF_NativeInteger.elements_count;
2631 /* td->specifics = asn_DEF_NativeInteger.specifics; // Defined explicitly */
Lev Walkin59b176e2005-11-26 11:25:14 +00002632}
2633
2634void
2635NO_IntegerInRange6_free(asn_TYPE_descriptor_t *td,
2636 void *struct_ptr, int contents_only) {
2637 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2638 td->free_struct(td, struct_ptr, contents_only);
2639}
2640
2641int
2642NO_IntegerInRange6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2643 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2644 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2645 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2646}
2647
2648asn_dec_rval_t
2649NO_IntegerInRange6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2650 void **structure, const void *bufptr, size_t size, int tag_mode) {
2651 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2652 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2653}
2654
2655asn_enc_rval_t
2656NO_IntegerInRange6_encode_der(asn_TYPE_descriptor_t *td,
2657 void *structure, int tag_mode, ber_tlv_tag_t tag,
2658 asn_app_consume_bytes_f *cb, void *app_key) {
2659 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2660 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2661}
2662
2663asn_dec_rval_t
2664NO_IntegerInRange6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2665 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2666 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2667 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2668}
2669
2670asn_enc_rval_t
2671NO_IntegerInRange6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2672 int ilevel, enum xer_encoder_flags_e flags,
2673 asn_app_consume_bytes_f *cb, void *app_key) {
2674 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2675 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2676}
2677
2678asn_dec_rval_t
2679NO_IntegerInRange6_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2680 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2681 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2682 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2683}
2684
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002685asn_enc_rval_t
2686NO_IntegerInRange6_encode_uper(asn_TYPE_descriptor_t *td,
2687 asn_per_constraints_t *constraints,
2688 void *structure, asn_per_outp_t *per_out) {
2689 NO_IntegerInRange6_1_inherit_TYPE_descriptor(td);
2690 return td->uper_encoder(td, constraints, structure, per_out);
2691}
2692
Lev Walkin59b176e2005-11-26 11:25:14 +00002693
Lev Walkin725883b2006-10-09 12:07:58 +00002694/*** <<< CTDEFS [NO-IntegerInRange6] >>> ***/
2695
Lev Walkin2fce55d2013-03-28 05:00:39 -07002696static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00002697 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
2698 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
2699 0, 0 /* No PER value map */
2700};
2701
Lev Walkin59b176e2005-11-26 11:25:14 +00002702/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
2703
johvike70c4072017-05-09 11:06:12 +02002704static asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00002705 0, 0, 0, 0, 0,
2706 0, /* Native long size */
2707 1 /* Unsigned representation */
2708};
Lev Walkina7591b52014-10-12 18:37:35 -07002709static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002710 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2711};
Lev Walkin59b176e2005-11-26 11:25:14 +00002712asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
2713 "NO-IntegerInRange6",
2714 "NO-IntegerInRange6",
2715 NO_IntegerInRange6_free,
2716 NO_IntegerInRange6_print,
2717 NO_IntegerInRange6_constraint,
2718 NO_IntegerInRange6_decode_ber,
2719 NO_IntegerInRange6_encode_der,
2720 NO_IntegerInRange6_decode_xer,
2721 NO_IntegerInRange6_encode_xer,
2722 NO_IntegerInRange6_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002723 NO_IntegerInRange6_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002724 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002725 0, /* Use generic outmost tag fetcher */
2726 asn_DEF_NO_IntegerInRange6_tags_1,
2727 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
2728 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
2729 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
2730 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
2731 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkin4b5dae32006-10-09 12:27:44 +00002732 &asn_PER_type_NO_IntegerInRange6_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00002733 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00002734 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +00002735};
2736
2737
2738/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
2739
Lev Walkin2a744a72013-03-27 01:56:23 -07002740#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00002741
2742/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
2743
2744typedef enum CN_IntegerEnumerated1 {
2745 CN_IntegerEnumerated1_a = 1,
2746 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00002747} e_CN_IntegerEnumerated1;
Lev Walkin59b176e2005-11-26 11:25:14 +00002748
2749/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
2750
Lev Walkin2a744a72013-03-27 01:56:23 -07002751typedef long CN_IntegerEnumerated1_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00002752
2753/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
2754
2755extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
2756asn_struct_free_f CN_IntegerEnumerated1_free;
2757asn_struct_print_f CN_IntegerEnumerated1_print;
2758asn_constr_check_f CN_IntegerEnumerated1_constraint;
2759ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
2760der_type_encoder_f CN_IntegerEnumerated1_encode_der;
2761xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
2762xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
2763per_type_decoder_f CN_IntegerEnumerated1_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002764per_type_encoder_f CN_IntegerEnumerated1_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002765
2766/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
2767
2768int
2769CN_IntegerEnumerated1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002770 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002771 /* Replace with underlying type checker */
Lev Walkin2a744a72013-03-27 01:56:23 -07002772 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +00002773 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin59b176e2005-11-26 11:25:14 +00002774}
2775
2776/*
Lev Walkin2a744a72013-03-27 01:56:23 -07002777 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00002778 * so here we adjust the DEF accordingly.
2779 */
2780static void
2781CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkin2a744a72013-03-27 01:56:23 -07002782 td->free_struct = asn_DEF_NativeInteger.free_struct;
2783 td->print_struct = asn_DEF_NativeInteger.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002784 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin2a744a72013-03-27 01:56:23 -07002785 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
2786 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
2787 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
2788 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
2789 td->uper_decoder = asn_DEF_NativeInteger.uper_decoder;
2790 td->uper_encoder = asn_DEF_NativeInteger.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002791 td->oer_decoder = asn_DEF_NativeInteger.oer_decoder;
2792 td->oer_encoder = asn_DEF_NativeInteger.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002793 if(!td->per_constraints)
Lev Walkin2a744a72013-03-27 01:56:23 -07002794 td->per_constraints = asn_DEF_NativeInteger.per_constraints;
2795 td->elements = asn_DEF_NativeInteger.elements;
2796 td->elements_count = asn_DEF_NativeInteger.elements_count;
2797 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin59b176e2005-11-26 11:25:14 +00002798}
2799
2800void
2801CN_IntegerEnumerated1_free(asn_TYPE_descriptor_t *td,
2802 void *struct_ptr, int contents_only) {
2803 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2804 td->free_struct(td, struct_ptr, contents_only);
2805}
2806
2807int
2808CN_IntegerEnumerated1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2809 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2810 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2811 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2812}
2813
2814asn_dec_rval_t
2815CN_IntegerEnumerated1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2816 void **structure, const void *bufptr, size_t size, int tag_mode) {
2817 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2818 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2819}
2820
2821asn_enc_rval_t
2822CN_IntegerEnumerated1_encode_der(asn_TYPE_descriptor_t *td,
2823 void *structure, int tag_mode, ber_tlv_tag_t tag,
2824 asn_app_consume_bytes_f *cb, void *app_key) {
2825 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2826 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2827}
2828
2829asn_dec_rval_t
2830CN_IntegerEnumerated1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2831 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2832 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2833 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2834}
2835
2836asn_enc_rval_t
2837CN_IntegerEnumerated1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2838 int ilevel, enum xer_encoder_flags_e flags,
2839 asn_app_consume_bytes_f *cb, void *app_key) {
2840 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2841 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2842}
2843
2844asn_dec_rval_t
2845CN_IntegerEnumerated1_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2846 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
2847 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2848 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
2849}
2850
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002851asn_enc_rval_t
2852CN_IntegerEnumerated1_encode_uper(asn_TYPE_descriptor_t *td,
2853 asn_per_constraints_t *constraints,
2854 void *structure, asn_per_outp_t *per_out) {
2855 CN_IntegerEnumerated1_1_inherit_TYPE_descriptor(td);
2856 return td->uper_encoder(td, constraints, structure, per_out);
2857}
2858
Lev Walkin59b176e2005-11-26 11:25:14 +00002859
2860/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
2861
Lev Walkina7591b52014-10-12 18:37:35 -07002862static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00002863 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
2864};
2865asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
2866 "CN-IntegerEnumerated1",
2867 "CN-IntegerEnumerated1",
2868 CN_IntegerEnumerated1_free,
2869 CN_IntegerEnumerated1_print,
2870 CN_IntegerEnumerated1_constraint,
2871 CN_IntegerEnumerated1_decode_ber,
2872 CN_IntegerEnumerated1_encode_der,
2873 CN_IntegerEnumerated1_decode_xer,
2874 CN_IntegerEnumerated1_encode_xer,
2875 CN_IntegerEnumerated1_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002876 CN_IntegerEnumerated1_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07002877 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00002878 0, /* Use generic outmost tag fetcher */
2879 asn_DEF_CN_IntegerEnumerated1_tags_1,
2880 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
2881 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
2882 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
2883 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
2884 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
2885 0, /* No PER visible constraints */
2886 0, 0, /* Defined elsewhere */
2887 0 /* No specifics */
2888};
2889
2890
2891/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
2892
2893#include <INTEGER.h>
2894
2895/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
2896
2897typedef enum NO_IntegerEnumerated2 {
2898 NO_IntegerEnumerated2_a = 1,
2899 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00002900} e_NO_IntegerEnumerated2;
Lev Walkin59b176e2005-11-26 11:25:14 +00002901
2902/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
2903
2904typedef INTEGER_t NO_IntegerEnumerated2_t;
2905
2906/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
2907
2908extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
2909asn_struct_free_f NO_IntegerEnumerated2_free;
2910asn_struct_print_f NO_IntegerEnumerated2_print;
2911asn_constr_check_f NO_IntegerEnumerated2_constraint;
2912ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
2913der_type_encoder_f NO_IntegerEnumerated2_encode_der;
2914xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
2915xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
2916per_type_decoder_f NO_IntegerEnumerated2_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002917per_type_encoder_f NO_IntegerEnumerated2_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00002918
2919/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
2920
2921int
2922NO_IntegerEnumerated2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00002923 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00002924 /* Replace with underlying type checker */
2925 td->check_constraints = asn_DEF_INTEGER.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +00002926 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin59b176e2005-11-26 11:25:14 +00002927}
2928
2929/*
2930 * This type is implemented using INTEGER,
2931 * so here we adjust the DEF accordingly.
2932 */
2933static void
2934NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
2935 td->free_struct = asn_DEF_INTEGER.free_struct;
2936 td->print_struct = asn_DEF_INTEGER.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08002937 td->check_constraints = asn_DEF_INTEGER.check_constraints;
Lev Walkin59b176e2005-11-26 11:25:14 +00002938 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
2939 td->der_encoder = asn_DEF_INTEGER.der_encoder;
2940 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
2941 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
2942 td->uper_decoder = asn_DEF_INTEGER.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00002943 td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07002944 td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
2945 td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00002946 if(!td->per_constraints)
2947 td->per_constraints = asn_DEF_INTEGER.per_constraints;
2948 td->elements = asn_DEF_INTEGER.elements;
2949 td->elements_count = asn_DEF_INTEGER.elements_count;
2950 td->specifics = asn_DEF_INTEGER.specifics;
2951}
2952
2953void
2954NO_IntegerEnumerated2_free(asn_TYPE_descriptor_t *td,
2955 void *struct_ptr, int contents_only) {
2956 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2957 td->free_struct(td, struct_ptr, contents_only);
2958}
2959
2960int
2961NO_IntegerEnumerated2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
2962 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
2963 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2964 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
2965}
2966
2967asn_dec_rval_t
2968NO_IntegerEnumerated2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2969 void **structure, const void *bufptr, size_t size, int tag_mode) {
2970 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2971 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
2972}
2973
2974asn_enc_rval_t
2975NO_IntegerEnumerated2_encode_der(asn_TYPE_descriptor_t *td,
2976 void *structure, int tag_mode, ber_tlv_tag_t tag,
2977 asn_app_consume_bytes_f *cb, void *app_key) {
2978 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2979 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
2980}
2981
2982asn_dec_rval_t
2983NO_IntegerEnumerated2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2984 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
2985 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2986 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
2987}
2988
2989asn_enc_rval_t
2990NO_IntegerEnumerated2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
2991 int ilevel, enum xer_encoder_flags_e flags,
2992 asn_app_consume_bytes_f *cb, void *app_key) {
2993 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
2994 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
2995}
2996
2997asn_dec_rval_t
2998NO_IntegerEnumerated2_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
2999 asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
3000 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
3001 return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
3002}
3003
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00003004asn_enc_rval_t
3005NO_IntegerEnumerated2_encode_uper(asn_TYPE_descriptor_t *td,
3006 asn_per_constraints_t *constraints,
3007 void *structure, asn_per_outp_t *per_out) {
3008 NO_IntegerEnumerated2_1_inherit_TYPE_descriptor(td);
3009 return td->uper_encoder(td, constraints, structure, per_out);
3010}
3011
Lev Walkin59b176e2005-11-26 11:25:14 +00003012
3013/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
3014
Lev Walkina7591b52014-10-12 18:37:35 -07003015static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00003016 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
3017};
3018asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
3019 "NO-IntegerEnumerated2",
3020 "NO-IntegerEnumerated2",
3021 NO_IntegerEnumerated2_free,
3022 NO_IntegerEnumerated2_print,
3023 NO_IntegerEnumerated2_constraint,
3024 NO_IntegerEnumerated2_decode_ber,
3025 NO_IntegerEnumerated2_encode_der,
3026 NO_IntegerEnumerated2_decode_xer,
3027 NO_IntegerEnumerated2_encode_xer,
3028 NO_IntegerEnumerated2_decode_uper,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00003029 NO_IntegerEnumerated2_encode_uper,
Lev Walkinba68c912017-07-06 07:52:39 -07003030 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin59b176e2005-11-26 11:25:14 +00003031 0, /* Use generic outmost tag fetcher */
3032 asn_DEF_NO_IntegerEnumerated2_tags_1,
3033 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
3034 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
3035 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
3036 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
3037 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
3038 0, /* No PER visible constraints */
3039 0, 0, /* Defined elsewhere */
3040 0 /* No specifics */
3041};
3042