What version of this package are you using?
Latest
What operating system, Node.js, and npm version?
Arch Linux, latest Node LTS (v20)
What happened?
decode.bytes returns the length of the entire input data after decoding
What did you expect to happen?
It should've returned only the number of bytes consumed.
Are you willing to submit a pull request to fix this bug?
Yes