Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 28, 2024
Merged

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

merged 1 commit into from
Jan 28, 2024

Conversation

v0-e
Copy link
Contributor

@v0-e v0-e commented Jan 26, 2024

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
Copy link
Owner

riebl commented Jan 28, 2024

Thanks!

@riebl riebl merged commit 332387b into riebl:master Jan 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants