21 if(!td || !sptr)
goto cb_failed;
28 tmper = td->
xer_encoder(td, sptr, 1, xer_flags, cb, app_key);
29 if(tmper.
encoded == -1)
return tmper;
46 FILE *stream = (FILE *)app_key;
48 if(fwrite(buffer, 1, size, stream) != size)
58 if(!stream) stream = stdout;
66 return fflush(stream);
static int xer__print2fp(const void *buffer, size_t size, void *app_key)
int xer_fprint(FILE *stream, asn_TYPE_descriptor_t *td, void *sptr)
#define _ASN_ENCODED_OK(rval)
#define _ASN_ENCODE_FAILED
int() asn_app_consume_bytes_f(const void *buffer, size_t size, void *application_specific_key)
#define _ASN_CALLBACK3(buf1, size1, buf2, size2, buf3, size3)
asn_enc_rval_t xer_encode(asn_TYPE_descriptor_t *td, void *sptr, enum xer_encoder_flags_e xer_flags, asn_app_consume_bytes_f *cb, void *app_key)
xer_type_encoder_f * xer_encoder