If you pass the address to a pointer that is NULL pointer as the last parameter of uper_encode_to_new_buffer(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *sptr, void **buffer_r) , then it will allocate by itself the required space.
The following project demonstrates a full working example of encoding and decoding ASN.1 structures using the asn1c compiler of http://lionet.info/asn1c/ In this project we assumed that we have to encode a set of geometric elements, including: A rectangle that is composed by its height and its width A rectangular cuboid…
The following post is for the https://lionet.info/asn1c/ (repository: https://github.com/vlm/asn1c/) Hello guys, I've noticed that when I set a lower bound limit on the size of an octet string, it fails to decode it. To reproduce this scenario I created a small but full example that is located here([download id="2539"]). The…
The following post is for the https://lionet.info/asn1c/ (repository: https://github.com/vlm/asn1c/) The asn1c usage manual (PDF), mentions an element called write_stream but it does not define what it is. What write_stream is can be found in converter-sample.c and in the manual under the name write_out: write_out is function that has the following…