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

Provide a way to specify how decoded binary data should be rendered #329

Open
brendanzab opened this issue Apr 1, 2022 · 2 comments
Open

Comments

@brendanzab
Copy link
Member

I'm not sure the best approach to this, but it would be really useful to be able to configure how formats are rendered for the purposes of the CLI or other tooling.

@brendanzab
Copy link
Member Author

I think we might be able to include this information in the format descriptions? And then when decoding this can be added as a hint in the resulting decoded terms, like described in #328.

@brendanzab
Copy link
Member Author

If we had a way to apply optional parameters to format you could imagine allowing something like:

u32be (default_display = ascii)

Another option could be adding some sort of ‘attributes’ or metadata to terms. Perhaps something like:

@[default_display = "ascii"] u32be

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

No branches or pull requests

1 participant