Go to the documentation of this file.
25 ASN_DEBUG(
"Getting open type %s...", td->
name);
33 if(bufLen + chunk_bytes > bufSize) {
35 bufSize = chunk_bytes + (bufSize << 2);
47 bufLen += chunk_bytes;
50 ASN_DEBUG(
"Getting open type %s encoded in %ld bytes", td->
name,
53 memset(&spd, 0,
sizeof(spd));
55 spd.
nbits = bufLen << 3;
64 if (((padding > 0 && padding < 8) ||
74 ASN_DEBUG(
"Too large padding %d in open type", (
int)padding);
77 ASN_DEBUG(
"No padding");
97 ASN_DEBUG(
"Open type put %s ...", td->
name);
100 if(size <= 0)
return -1;
102 for(bptr = buf, toGo = size; toGo;) {
105 if(maySave < 0)
break;
107 bptr = (
char *)bptr + maySave;
118 ASN_DEBUG(
"Open type put %s of length %zd + overhead (1byte?)",
139 memset(&op_t, 0,
sizeof(op_t));
140 s_td.
name =
"<unknown extension>";
asn_dec_rval_t uper_sot_suck(const asn_codec_ctx_t *, const asn_TYPE_descriptor_t *td, const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd)
ssize_t aper_put_length(asn_per_outp_t *po, ssize_t lb, ssize_t ub, size_t n, int *opt_need_eom)
asn_dec_rval_t aper_open_type_get(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd)
#define per_get_few_bits(data, bits)
#define REALLOC(oldptr, size)
static asn_dec_rval_t aper_open_type_get_simple(const asn_codec_ctx_t *ctx, const asn_TYPE_descriptor_t *td, const asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd)
asn_TYPE_operation_t * op
ssize_t aper_get_length(asn_per_data_t *pd, ssize_t lb, ssize_t ub, int effective_bound_bits, int *repeat)
per_type_decoder_f * aper_decoder
static int CC_NOTUSED ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx)
#define per_put_many_bits(out, src, nbits)
#define ASN__DECODE_STARVED
#define per_get_many_bits(data, dst, align, bits)
int aper_open_type_skip(const asn_codec_ctx_t *ctx, asn_per_data_t *pd)
#define ASN__DECODE_FAILED
#define ASN_DEBUG_INDENT_ADD(i)
ssize_t aper_encode_to_new_buffer(const struct asn_TYPE_descriptor_s *td, const asn_per_constraints_t *constraints, const void *sptr, void **buffer_r)
enum asn_dec_rval_code_e code
int aper_open_type_put(const asn_TYPE_descriptor_t *td, const asn_per_constraints_t *constraints, const void *sptr, asn_per_outp_t *po)
etsi_its_vam_ts_coding
Author(s): Jean-Pierre Busch
, Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:30:55