2 * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
4 * Redistribution and modifications are permitted subject to BSD license.
6 #include <asn_internal.h>
7 #include <NativeReal.h>
11 NativeReal_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
12 int ilevel, enum jer_encoder_flags_e flags,
13 asn_app_consume_bytes_f *cb, void *app_key) {
14 double d = NativeReal__get_double(td, sptr);
15 asn_enc_rval_t er = {0,0,0};
19 er.encoded = REAL__dump(d, flags, cb, app_key);
20 if(er.encoded < 0) ASN__ENCODE_FAILED;