Go to the documentation of this file.
16 void **sptr,
const void *buf_ptr,
22 void *st_ptr = (
void *)&st;
23 long *native = (
long *)*sptr;
26 native = (
long *)(*sptr =
CALLOC(1,
sizeof(*native)));
30 memset(&st, 0,
sizeof(st));
32 if(rval.code ==
RC_OK) {
57 const void *sptr,
int ilevel,
64 const long *native = (
const long *)sptr;
71 er.encoded = snprintf(scratch,
sizeof(scratch),
72 (specs && specs->field_unsigned)
73 ?
"%lu" :
"%ld", *native);
74 if(er.encoded <= 0 || (
size_t)er.encoded >=
sizeof(scratch)
75 || cb(scratch, er.encoded, app_key) < 0)
#define ASN__ENCODED_OK(rval)
#define CALLOC(nmemb, size)
asn_TYPE_descriptor_t asn_DEF_INTEGER
#define ASN__ENCODE_FAILED
jer_type_decoder_f INTEGER_decode_jer
asn_dec_rval_t NativeInteger_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, void **sptr, const void *buf_ptr, size_t size)
int() asn_app_consume_bytes_f(const void *buffer, size_t size, void *application_specific_key)
asn_enc_rval_t NativeInteger_encode_jer(const asn_TYPE_descriptor_t *td, const asn_jer_constraints_t *constraints, const void *sptr, int ilevel, enum jer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key)
#define ASN__DECODE_FAILED
int asn_INTEGER2ulong(const INTEGER_t *i, unsigned long *l)
#define ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF, ptr)
int asn_INTEGER2long(const INTEGER_t *i, long *l)
etsi_its_vam_ts_coding
Author(s): Jean-Pierre Busch
, Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:30:55