Skip to content

Commit

Permalink
Make encoding and decoding roundtrip correctly
Browse files Browse the repository at this point in the history
THIS IS A BREAKING CHANGE

Leading nulls are now encoded as "0", followed by a count.
For example, `b"\x00"` becomes "01".
For example, `b"\x00" * 63` becomes "0z01".

Applications that rely on automatic stripping of "0z"
must now perform this stripping themselves
based on their knowledge of their problem domain.

Applications that rely on the `minlen` parameter
must now pad the output themselves
based on their knowledge of their problem domain,
and must remove references to the `minlen` parameter.

Applications that rely on leading null bytes being stripped
must now strip leading null bytes themselves.

Fixes #18
  • Loading branch information
kurtmckee committed Jan 26, 2023
1 parent 58e7b84 commit 420841b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
build
dist

/.idea/
/.venv/
/.coverage*

0 comments on commit 420841b

Please sign in to comment.