riebl / vanetza

Open-source implementation of the ETSI C-ITS protocol stack
Other
202 stars 158 forks source link

asn1: Add print() method to asn1c wrapper #217

Closed v0-e closed 8 months ago

v0-e commented 8 months ago

Adds new print() method to ASN.1 types by leveraging asn1c's asn_fprint(). Defaults to stdout though the output stream can be specified. Specifying the output is done through a FILE*, since there is no straightforward way to convert between an std::ostream to a FILE*. Can be regarded as an alternative to CAM's print_indented().

riebl commented 8 months ago

Thanks!