BIT_STRING.h
Go to the documentation of this file.
1 /*-
2  * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3  * Redistribution and modifications are permitted subject to BSD license.
4  */
5 #ifndef _BIT_STRING_H_
6 #define _BIT_STRING_H_
7 
8 #include <etsi_its_cam_ts_coding/OCTET_STRING.h> /* Some help from OCTET STRING */
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 typedef struct BIT_STRING_s {
15  uint8_t *buf; /* BIT STRING body */
16  size_t size; /* Size of the above buffer */
17 
18  int bits_unused;/* Unused trailing bits in the last octet (0..7) */
19 
20  asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
21 } BIT_STRING_t;
22 
26 
27 #define BIT_STRING_free OCTET_STRING_free
28 
29 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
30 asn_struct_print_f BIT_STRING_print; /* Human-readable output */
31 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
32 
35 
37 
38 #if !defined(ASN_DISABLE_BER_SUPPORT)
39 #define BIT_STRING_decode_ber OCTET_STRING_decode_ber
40 #define BIT_STRING_encode_der OCTET_STRING_encode_der
41 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
42 
43 #if !defined(ASN_DISABLE_XER_SUPPORT)
44 #define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary
45 xer_type_encoder_f BIT_STRING_encode_xer;
46 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
47 
48 #if !defined(ASN_DISABLE_JER_SUPPORT)
51 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
52 
53 #if !defined(ASN_DISABLE_OER_SUPPORT)
54 oer_type_decoder_f BIT_STRING_decode_oer;
55 oer_type_encoder_f BIT_STRING_encode_oer;
56 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
57 
58 #if !defined(ASN_DISABLE_UPER_SUPPORT)
61 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
62 #if !defined(ASN_DISABLE_APER_SUPPORT)
63 #define BIT_STRING_decode_aper OCTET_STRING_decode_aper
64 #define BIT_STRING_encode_aper OCTET_STRING_encode_aper
65 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
66 
67 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
69 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
70 
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* _BIT_STRING_H_ */
asn_struct_ctx_s
Definition: constr_TYPE.h:29
BIT_STRING_encode_xer
xer_type_encoder_f BIT_STRING_encode_xer
Definition: BIT_STRING.h:45
per_type_decoder_f
asn_dec_rval_t() per_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, void **struct_ptr, asn_per_data_t *per_data)
Definition: per_decoder.h:20
asn_TYPE_operation_s
Definition: constr_TYPE.h:184
asn_struct_print_f
int() asn_struct_print_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_ptr, int level, asn_app_consume_bytes_f *callback, void *app_key)
Definition: constr_TYPE.h:129
asn_random_fill_f
asn_random_fill_result_t() asn_random_fill_f(const struct asn_TYPE_descriptor_s *td, void **struct_ptr, const struct asn_encoding_constraints_s *memb_constraints, size_t max_length)
Definition: asn_random_fill.h:32
asn_struct_compare_f
int() asn_struct_compare_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_A, const void *struct_B)
Definition: constr_TYPE.h:141
BIT_STRING_s::buf
uint8_t * buf
Definition: BIT_STRING.h:15
BIT_STRING_s::size
size_t size
Definition: BIT_STRING.h:16
BIT_STRING_encode_jer
jer_type_encoder_f BIT_STRING_encode_jer
Definition: BIT_STRING.h:50
BIT_STRING_encode_uper
per_type_encoder_f BIT_STRING_encode_uper
Definition: BIT_STRING.h:60
asn_DEF_BIT_STRING
asn_TYPE_descriptor_t asn_DEF_BIT_STRING
Definition: BIT_STRING.c:77
asn_OP_BIT_STRING
asn_TYPE_operation_t asn_OP_BIT_STRING
Definition: BIT_STRING.c:19
BIT_STRING_s
Definition: BIT_STRING.h:14
asn_OCTET_STRING_specifics_s
Definition: OCTET_STRING.h:125
BIT_STRING_decode_jer
jer_type_decoder_f BIT_STRING_decode_jer
Definition: BIT_STRING.h:49
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
jer_type_encoder_f
asn_enc_rval_t() jer_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, const void *struct_ptr, int ilevel, enum jer_encoder_flags_e jer_flags, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
Definition: jer_encoder.h:73
BIT_STRING_decode_oer
oer_type_decoder_f BIT_STRING_decode_oer
Definition: BIT_STRING.h:54
BIT_STRING_t
struct BIT_STRING_s BIT_STRING_t
BIT_STRING_encode_oer
oer_type_encoder_f BIT_STRING_encode_oer
Definition: BIT_STRING.h:55
asn_SPC_BIT_STRING_specs
asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs
Definition: BIT_STRING.c:14
BIT_STRING_random_fill
asn_random_fill_f BIT_STRING_random_fill
Definition: BIT_STRING.h:68
jer_type_decoder_f
asn_dec_rval_t() jer_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, void **struct_ptr, const void *buf_ptr, size_t size)
Definition: jer_decoder.h:32
BIT_STRING_constraint
asn_constr_check_f BIT_STRING_constraint
Definition: BIT_STRING.h:36
BIT_STRING_compare
asn_struct_compare_f BIT_STRING_compare
Definition: BIT_STRING.h:33
per_type_encoder_f
asn_enc_rval_t() per_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, const void *struct_ptr, asn_per_outp_t *per_output)
Definition: per_encoder.h:20
BIT_STRING_decode_uper
per_type_decoder_f BIT_STRING_decode_uper
Definition: BIT_STRING.h:59
asn_constr_check_f
int() asn_constr_check_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_ptr, asn_app_constraint_failed_f *optional_callback, void *optional_app_key)
Definition: constraints.h:41
BIT_STRING_copy
asn_struct_copy_f BIT_STRING_copy
Definition: BIT_STRING.h:34
BIT_STRING_print
asn_struct_print_f BIT_STRING_print
Definition: BIT_STRING.h:30
BIT_STRING__compactify
const BIT_STRING_t * BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp)
Definition: BIT_STRING.c:133
BIT_STRING_s::bits_unused
int bits_unused
Definition: BIT_STRING.h:18
asn_struct_copy_f
int() asn_struct_copy_f(const struct asn_TYPE_descriptor_s *type_descriptor, void **struct_A, const void *struct_B)
Definition: constr_TYPE.h:150
OCTET_STRING.h
BIT_STRING_s::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: BIT_STRING.h:20


etsi_its_cam_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:21:22