ITS
|
Go to the source code of this file.
Classes | |
struct | _el_buffer |
struct | xer_tmp_enc_s |
Macros | |
#define | LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) |
#define | SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) |
#define | ADVANCE(num_bytes) |
#define | NEXT_PHASE(ctx) |
#define | PHASE_OUT(ctx) do { ctx->phase = 10; } while(0) |
#define | RETURN(_code) |
#define | XER_ADVANCE(num_bytes) |
Typedefs | |
typedef struct xer_tmp_enc_s | xer_tmp_enc_t |
Functions | |
asn_dec_rval_t | SET_OF_decode_ber (asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **struct_ptr, const void *ptr, size_t size, int tag_mode) |
static int | _el_addbytes (const void *buffer, size_t size, void *el_buf_ptr) |
static int | _el_buf_cmp (const void *ap, const void *bp) |
asn_enc_rval_t | SET_OF_encode_der (asn_TYPE_descriptor_t *td, void *ptr, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) |
asn_dec_rval_t | SET_OF_decode_xer (asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **struct_ptr, const char *opt_mname, const void *buf_ptr, size_t size) |
static int | SET_OF_encode_xer_callback (const void *buffer, size_t size, void *key) |
static int | SET_OF_xer_order (const void *aptr, const void *bptr) |
asn_enc_rval_t | SET_OF_encode_xer (asn_TYPE_descriptor_t *td, void *sptr, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) |
int | SET_OF_print (asn_TYPE_descriptor_t *td, const void *sptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) |
void | SET_OF_free (asn_TYPE_descriptor_t *td, void *ptr, int contents_only) |
int | SET_OF_constraint (asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) |
asn_dec_rval_t | SET_OF_decode_uper (asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) |
#define ADVANCE | ( | num_bytes | ) |
Definition at line 35 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber().
#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) |
Definition at line 15 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber().
#define NEXT_PHASE | ( | ctx | ) |
Definition at line 49 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber().
#define PHASE_OUT | ( | ctx | ) | do { ctx->phase = 10; } while(0) |
Definition at line 53 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber().
#define RETURN | ( | _code | ) |
Definition at line 59 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber(), and SET_OF_decode_xer().
#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) |
Definition at line 28 of file constr_SET_OF.c.
Referenced by SET_OF_decode_ber().
#define XER_ADVANCE | ( | num_bytes | ) |
Definition at line 458 of file constr_SET_OF.c.
Referenced by SET_OF_decode_xer().
typedef struct xer_tmp_enc_s xer_tmp_enc_t |
|
static |
Definition at line 276 of file constr_SET_OF.c.
References _el_buffer::buf, _el_buffer::length, and _el_buffer::size.
Referenced by SET_OF_encode_der().
|
static |
Definition at line 287 of file constr_SET_OF.c.
References _el_buffer::buf, and _el_buffer::length.
Referenced by SET_OF_encode_der().
int SET_OF_constraint | ( | asn_TYPE_descriptor_t * | td, |
const void * | sptr, | ||
asn_app_constraint_failed_f * | ctfailcb, | ||
void * | app_key | ||
) |
Definition at line 825 of file constr_SET_OF.c.
References _A_CSET_FROM_VOID, _ASN_CTFAIL, asn_TYPE_descriptor_s::check_constraints, asn_TYPE_descriptor_s::elements, asn_TYPE_member_s::memb_constraints, asn_TYPE_descriptor_s::name, and asn_TYPE_member_s::type.
asn_dec_rval_t SET_OF_decode_ber | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
void ** | struct_ptr, | ||
const void * | ptr, | ||
size_t | size, | ||
int | tag_mode | ||
) |
Definition at line 69 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, ADVANCE, ASN_DEBUG(), ASN_SET_ADD, ASN_STRUCT_FREE, ber_check_tags(), ber_fetch_tag(), BER_TAGS_EQUAL, ber_tlv_tag_string(), CALLOC, asn_SET_OF_specifics_s::ctx_offset, asn_TYPE_descriptor_s::elements, LEFT, asn_TYPE_descriptor_s::name, NEXT_PHASE, PHASE_OUT, RC_FAIL, RC_OK, RC_WMORE, RETURN, SIZE_VIOLATION, asn_TYPE_descriptor_s::specifics, and asn_SET_OF_specifics_s::struct_size.
asn_dec_rval_t SET_OF_decode_uper | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
asn_per_constraints_t * | constraints, | ||
void ** | sptr, | ||
asn_per_data_t * | pd | ||
) |
Definition at line 867 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, _ASN_DECODE_FAILED, _ASN_DECODE_STARVED, _ASN_STACK_OVERFLOW_CHECK(), ASN_DEBUG(), ASN_SET_ADD, ASN_STRUCT_FREE, CALLOC, asn_dec_rval_s::code, asn_dec_rval_s::consumed, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::name, asn_TYPE_descriptor_s::per_constraints, per_get_few_bits(), RC_FAIL, RC_OK, asn_per_constraints_s::size, asn_TYPE_descriptor_s::specifics, asn_SET_OF_specifics_s::struct_size, and uper_get_length().
asn_dec_rval_t SET_OF_decode_xer | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
void ** | struct_ptr, | ||
const char * | opt_mname, | ||
const void * | buf_ptr, | ||
size_t | size | ||
) |
Definition at line 469 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, asn_SET_OF_specifics_s::as_XMLValueList, ASN_DEBUG(), ASN_SET_ADD, CALLOC, asn_dec_rval_s::code, asn_dec_rval_s::consumed, asn_SET_OF_specifics_s::ctx_offset, asn_TYPE_descriptor_s::elements, PXER_COMMENT, PXER_TAG, PXER_TEXT, RC_FAIL, RC_OK, RC_WMORE, RETURN, _el_buffer::size, asn_TYPE_descriptor_s::specifics, asn_SET_OF_specifics_s::struct_size, XCT_BOTH, XCT_CLOSING, XCT_OPENING, XCT_UNKNOWN_BO, XCT_UNKNOWN_OP, XER_ADVANCE, xer_next_token(), and asn_TYPE_descriptor_s::xml_tag.
asn_enc_rval_t SET_OF_encode_der | ( | asn_TYPE_descriptor_t * | td, |
void * | ptr, | ||
int | tag_mode, | ||
ber_tlv_tag_t | tag, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 313 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, _ASN_ENCODED_OK, _el_addbytes(), _el_buf_cmp(), ASN_DEBUG(), _el_buffer::buf, asn_TYPE_descriptor_s::der_encoder, der_write_tags(), asn_TYPE_descriptor_s::elements, asn_enc_rval_s::encoded, asn_enc_rval_s::failed_type, FREEMEM, _el_buffer::length, MALLOC, asn_TYPE_descriptor_s::name, _el_buffer::size, asn_enc_rval_s::structure_ptr, asn_TYPE_member_s::tag, and asn_TYPE_member_s::type.
asn_enc_rval_t SET_OF_encode_xer | ( | asn_TYPE_descriptor_t * | td, |
void * | sptr, | ||
int | ilevel, | ||
enum xer_encoder_flags_e | flags, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 653 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, _ASN_CALLBACK, _ASN_CALLBACK3, _ASN_ENCODE_FAILED, _ASN_ENCODED_OK, _i_ASN_TEXT_INDENT, asn_SET_OF_specifics_s::as_XMLValueList, xer_tmp_enc_s::buffer, asn_TYPE_descriptor_s::elements, asn_enc_rval_s::encoded, asn_enc_rval_s::failed_type, FREEMEM, MALLOC, xer_tmp_enc_s::offset, SET_OF_encode_xer_callback(), SET_OF_xer_order(), asn_TYPE_descriptor_s::specifics, asn_enc_rval_s::structure_ptr, and XER_F_CANONICAL.
|
static |
Definition at line 621 of file constr_SET_OF.c.
References xer_tmp_enc_s::buffer, xer_tmp_enc_s::offset, REALLOC, and xer_tmp_enc_s::size.
Referenced by SET_OF_encode_xer().
void SET_OF_free | ( | asn_TYPE_descriptor_t * | td, |
void * | ptr, | ||
int | contents_only | ||
) |
Definition at line 790 of file constr_SET_OF.c.
References _A_SET_FROM_VOID, asn_set_empty(), ASN_STRUCT_FREE, asn_SET_OF_specifics_s::ctx_offset, asn_TYPE_descriptor_s::elements, FREEMEM, asn_struct_ctx_s::ptr, asn_TYPE_descriptor_s::specifics, and asn_TYPE_member_s::type.
int SET_OF_print | ( | asn_TYPE_descriptor_t * | td, |
const void * | sptr, | ||
int | ilevel, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 758 of file constr_SET_OF.c.
References _A_CSET_FROM_VOID, _i_INDENT, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::name, asn_TYPE_descriptor_s::print_struct, and asn_TYPE_member_s::type.
|
static |
Definition at line 635 of file constr_SET_OF.c.
References xer_tmp_enc_s::buffer, and xer_tmp_enc_s::offset.
Referenced by SET_OF_encode_xer().