ITS
constr_SET_OF.c File Reference
#include <asn_internal.h>
#include <constr_SET_OF.h>
#include <asn_SET_OF.h>
Include dependency graph for constr_SET_OF.c:

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)
 

Macro Definition Documentation

◆ ADVANCE

#define ADVANCE (   num_bytes)
Value:
do { \
size_t num = num_bytes; \
ptr = ((const char *)ptr) + num;\
size -= num; \
if(ctx->left >= 0) \
ctx->left -= num; \
consumed_myself += num; \
} while(0)

Definition at line 35 of file constr_SET_OF.c.

Referenced by SET_OF_decode_ber().

◆ LEFT

#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().

◆ NEXT_PHASE

#define NEXT_PHASE (   ctx)
Value:
do { \
ctx->phase++; \
ctx->step = 0; \
} while(0)

Definition at line 49 of file constr_SET_OF.c.

Referenced by SET_OF_decode_ber().

◆ PHASE_OUT

#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().

◆ RETURN

#define RETURN (   _code)
Value:
do { \
rval.code = _code; \
rval.consumed = consumed_myself;\
return rval; \
} while(0)

Definition at line 59 of file constr_SET_OF.c.

Referenced by SET_OF_decode_ber(), and SET_OF_decode_xer().

◆ SIZE_VIOLATION

#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().

◆ XER_ADVANCE

#define XER_ADVANCE (   num_bytes)
Value:
do { \
size_t num = num_bytes; \
buf_ptr = ((const char *)buf_ptr) + num;\
size -= num; \
consumed_myself += num; \
} while(0)

Definition at line 458 of file constr_SET_OF.c.

Referenced by SET_OF_decode_xer().

Typedef Documentation

◆ xer_tmp_enc_t

typedef struct xer_tmp_enc_s xer_tmp_enc_t

Function Documentation

◆ _el_addbytes()

static int _el_addbytes ( const void *  buffer,
size_t  size,
void *  el_buf_ptr 
)
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().

Here is the caller graph for this function:

◆ _el_buf_cmp()

static int _el_buf_cmp ( const void *  ap,
const void *  bp 
)
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().

Here is the caller graph for this function:

◆ SET_OF_constraint()

◆ SET_OF_decode_ber()

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 
)

◆ SET_OF_decode_uper()

◆ SET_OF_decode_xer()

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 
)

◆ SET_OF_encode_der()

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 
)

◆ SET_OF_encode_xer()

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 
)

◆ SET_OF_encode_xer_callback()

static int SET_OF_encode_xer_callback ( const void *  buffer,
size_t  size,
void *  key 
)
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().

Here is the caller graph for this function:

◆ SET_OF_free()

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.

Here is the call graph for this function:

◆ SET_OF_print()

int SET_OF_print ( asn_TYPE_descriptor_t td,
const void *  sptr,
int  ilevel,
asn_app_consume_bytes_f cb,
void *  app_key 
)

◆ SET_OF_xer_order()

static int SET_OF_xer_order ( const void *  aptr,
const void *  bptr 
)
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().

Here is the caller graph for this function: