Describe the bug
Encode in version 1.0.1 does not zero-terminate the resulting byte array.
example:
non zero-ended
bytes: [1 2 6 0 0 1 1 8 192 11 0 198]
encoded: [4 1 2 6 1 6 1 1 8 192 11 2 198]
zero-ended
bytes: [1 2 6 0 0 1 1 8 192 11 0 198 0]
encoded: [4 1 2 6 1 6 1 1 8 192 11 2 198]
To Reproduce
Steps to reproduce the behavior:
- Use any byte array
- input it to Encode function with the v1.0.1 version
- See that the result isn't zero-terminated
Expected behavior
Expect the Encoded byte array to be zero-terminated