constr_SET_OF.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 CONSTR_SET_OF_H
6 #define CONSTR_SET_OF_H
7 
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct asn_SET_OF_specifics_s {
16  /*
17  * Target structure description.
18  */
19  unsigned struct_size; /* Size of the target structure. */
20  unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */
21 
22  /* XER-specific stuff */
23  int as_XMLValueList; /* The member type must be encoded like this */
25 
26 /*
27  * A set specialized functions dealing with the SET OF type.
28  */
30 
31 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
33 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
34 
37 
39 
40 #if !defined(ASN_DISABLE_BER_SUPPORT)
41 ber_type_decoder_f SET_OF_decode_ber;
42 der_type_encoder_f SET_OF_encode_der;
43 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
44 
45 #if !defined(ASN_DISABLE_XER_SUPPORT)
46 xer_type_decoder_f SET_OF_decode_xer;
47 xer_type_encoder_f SET_OF_encode_xer;
48 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
49 
50 #if !defined(ASN_DISABLE_JER_SUPPORT)
53 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
54 
55 #if !defined(ASN_DISABLE_OER_SUPPORT)
56 oer_type_decoder_f SET_OF_decode_oer;
57 oer_type_encoder_f SET_OF_encode_oer;
58 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
59 
60 #if !defined(ASN_DISABLE_UPER_SUPPORT)
63 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
64 #if !defined(ASN_DISABLE_APER_SUPPORT)
67 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
68 
69 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
71 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
72 
74 
75 /*
76  * Internally visible buffer holding a single encoded element.
77  */
78 struct _el_buffer {
79  uint8_t *buf;
80  size_t length;
82  unsigned bits_unused;
83 };
84 
86  SOES_DER, /* Distinguished Encoding Rules */
87  SOES_CUPER, /* Canonical Unaligned Packed Encoding Rules */
88  SOES_CAPER /* Canonical Aligned Packed Encoding Rules */
89 };
90 
92  const asn_TYPE_member_t *elm,
93  const asn_anonymous_set_ *list,
94  enum SET_OF__encode_method method);
95 
97  struct _el_buffer *el_buf,
98  size_t count);
99 
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #endif /* CONSTR_SET_OF_H */
asn_SET_OF_specifics_t
struct asn_SET_OF_specifics_s asn_SET_OF_specifics_t
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_SET_OF_specifics_s::ctx_offset
unsigned ctx_offset
Definition: constr_SET_OF.h:20
SET_OF__encode_sorted
struct _el_buffer * SET_OF__encode_sorted(const asn_TYPE_member_t *elm, const asn_anonymous_set_ *list, enum SET_OF__encode_method method)
Definition: constr_SET_OF.c:142
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
_el_buffer::bits_unused
unsigned bits_unused
Definition: constr_SET_OF.h:82
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
SET_OF_encode_aper
per_type_encoder_f SET_OF_encode_aper
Definition: constr_SET_OF.h:66
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
SET_OF_random_fill
asn_random_fill_f SET_OF_random_fill
Definition: constr_SET_OF.h:70
SOES_DER
@ SOES_DER
Definition: constr_SET_OF.h:86
SET_OF_constraint
asn_constr_check_f SET_OF_constraint
Definition: constr_SET_OF.h:38
SET_OF_decode_uper
per_type_decoder_f SET_OF_decode_uper
Definition: constr_SET_OF.h:61
asn_OP_SET_OF
asn_TYPE_operation_t asn_OP_SET_OF
Definition: constr_SET_OF.c:9
SET_OF_decode_xer
xer_type_decoder_f SET_OF_decode_xer
Definition: constr_SET_OF.h:46
SOES_CUPER
@ SOES_CUPER
Definition: constr_SET_OF.h:87
_el_buffer::allocated_size
size_t allocated_size
Definition: constr_SET_OF.h:81
SET_OF__encode_method
SET_OF__encode_method
Definition: constr_SET_OF.h:85
SET_OF_print
asn_struct_print_f SET_OF_print
Definition: constr_SET_OF.h:32
_el_buffer::length
size_t length
Definition: constr_SET_OF.h:80
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
_el_buffer
Definition: constr_SET_OF.h:78
SOES_CAPER
@ SOES_CAPER
Definition: constr_SET_OF.h:88
asn_SET_OF_specifics_s::struct_size
unsigned struct_size
Definition: constr_SET_OF.h:19
SET_OF_decode_oer
oer_type_decoder_f SET_OF_decode_oer
Definition: constr_SET_OF.h:56
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
asn_SET_OF_specifics_s::as_XMLValueList
int as_XMLValueList
Definition: constr_SET_OF.h:23
SET_OF_decode_ber
ber_type_decoder_f SET_OF_decode_ber
Definition: constr_SET_OF.h:41
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
SET_OF_encode_uper
per_type_encoder_f SET_OF_encode_uper
Definition: constr_SET_OF.h:62
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
SET_OF_encode_xer
xer_type_encoder_f SET_OF_encode_xer
Definition: constr_SET_OF.h:47
asn_SET_OF.h
SET_OF_decode_jer
jer_type_decoder_f SET_OF_decode_jer
Definition: constr_SET_OF.h:51
SET_OF_decode_aper
per_type_decoder_f SET_OF_decode_aper
Definition: constr_SET_OF.h:65
SET_OF_encode_der
der_type_encoder_f SET_OF_encode_der
Definition: constr_SET_OF.h:42
SET_OF_compare
asn_struct_compare_f SET_OF_compare
Definition: constr_SET_OF.h:35
SET_OF_encode_oer
oer_type_encoder_f SET_OF_encode_oer
Definition: constr_SET_OF.h:57
asn_application.h
SET_OF_encode_jer
jer_type_encoder_f SET_OF_encode_jer
Definition: constr_SET_OF.h:52
SET_OF_copy
asn_struct_copy_f SET_OF_copy
Definition: constr_SET_OF.h:36
SET_OF_free
asn_struct_free_f SET_OF_free
Definition: constr_SET_OF.h:29
asn_TYPE_member_s
Definition: constr_TYPE.h:272
SET_OF__encode_sorted_free
void SET_OF__encode_sorted_free(struct _el_buffer *el_buf, size_t count)
Definition: constr_SET_OF.c:131
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
asn_struct_free_f
void() asn_struct_free_f(const struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, enum asn_struct_free_method)
Definition: constr_TYPE.h:95
asn_SET_OF_specifics_s
Definition: constr_SET_OF.h:15
_el_buffer::buf
uint8_t * buf
Definition: constr_SET_OF.h:79


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