13 const asn_anonymous_set_ *list;
26 ASN_DEBUG(
"Encoding %s as SET OF (%d)", td->
name, list->count);
28 if(constraints) ct = &constraints->
size;
37 ASN_DEBUG(
"lb %lld ub %lld %s",
40 ct->
flags & APC_EXTENSIBLE ?
"ext" :
"fix");
41 if(ct->
flags & APC_EXTENSIBLE) {
44 if(not_in_root) ct = 0;
68 for(seq = 0; seq < list->count;) {
72 may_encode = list->count;
80 const struct _el_buffer *el = &encoded_els[seq++];
108 asn_anonymous_set_ *list;
126 if(constraints) ct = &constraints->
size;
131 if(ct && ct->flags & APC_EXTENSIBLE) {
137 if(ct && ct->upper_bound >= 1 && ct->upper_bound <= 65535
138 && ct->upper_bound == ct->lower_bound) {
140 nelems = ct->upper_bound;
141 ASN_DEBUG(
"Preparing to fetch %ld elements from %s",
142 (
long)nelems, td->
name);
152 ct->upper_bound ? ct->upper_bound : -1,
153 ct->effective_bits, &repeat);
156 ASN_DEBUG(
"Got to decode %d elements (eff %d)",
157 (
int)nelems, (
int)(ct ? ct->effective_bits : -1));
161 for(i = 0; i < nelems; i++) {
163 ASN_DEBUG(
"SET OF %s decoding", elm->type->name);
164 rv = elm->type->op->aper_decoder(opt_codec_ctx, elm->type,
165 elm->encoding_constraints.per_constraints, &ptr, pd);
166 ASN_DEBUG(
"%s SET OF %s decoded %d, %p",
167 td->
name, elm->type->name, rv.
code, ptr);
171 ASN_DEBUG(
"Failed to add element into %s",
176 ASN_DEBUG(
"Failed decoding %s of %s (SET OF)",
177 elm->type->name, td->
name);
186 ASN_DEBUG(
"Decoded %s as SET OF", td->
name);