2 /*** <<< INCLUDES [T] >>> ***/
4 #include <BIT_STRING.h>
6 /*** <<< DEPS [T] >>> ***/
14 /*** <<< TYPE-DECLS [T] >>> ***/
16 typedef BIT_STRING_t T_t;
18 /*** <<< FUNC-DECLS [T] >>> ***/
20 extern asn_TYPE_descriptor_t asn_DEF_T;
21 asn_struct_free_f T_free;
22 asn_struct_print_f T_print;
23 asn_constr_check_f T_constraint;
24 ber_type_decoder_f T_decode_ber;
25 der_type_encoder_f T_encode_der;
26 xer_type_decoder_f T_decode_xer;
27 xer_type_encoder_f T_encode_xer;
29 /*** <<< CODE [T] >>> ***/
32 T_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
33 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
34 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
37 ASN__CTFAIL(app_key, td, sptr,
38 "%s: value not given (%s:%d)",
39 td->name, __FILE__, __LINE__);
44 if(1 /* No applicable constraints whatsoever */) {
45 (void)st; /* Unused variable */
46 /* Nothing is here. See below */
49 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
53 * This type is implemented using BIT_STRING,
54 * so here we adjust the DEF accordingly.
57 /*** <<< STAT-DEFS [T] >>> ***/
59 static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
60 (ASN_TAG_CLASS_UNIVERSAL | (3 << 2))
62 asn_TYPE_descriptor_t asn_DEF_T = {
67 sizeof(asn_DEF_T_tags_1)
68 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
69 asn_DEF_T_tags_1, /* Same as above */
70 sizeof(asn_DEF_T_tags_1)
71 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
72 { 0, 0, T_constraint },
73 0, 0, /* Defined elsewhere */
74 &asn_SPC_BIT_STRING_specs /* Additional specs */