Skip to content
New issue

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

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

Already on GitHub? # to your account

feature: splitlen - count HEX as its underlying length #87

Open
roycewilliams opened this issue Jul 5, 2024 · 0 comments
Open

feature: splitlen - count HEX as its underlying length #87

roycewilliams opened this issue Jul 5, 2024 · 0 comments

Comments

@roycewilliams
Copy link
Member

When using splitlen, it would be useful to have an option for the 'true' length (in bytes) to be used, taking HEX encoding into account.

A crude approach, rather than explicitly converting from HEX, would be to detect HEX and calculating the 'true' length as (rawlength-6)/2 (assuming no malformed HEX, depending on how strict the HEX detection/validation is.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant