Skip to content

Version 1.0.1 Encode does not work as intended #3

@torbWaterLinked

Description

@torbWaterLinked

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:

  1. Use any byte array
  2. input it to Encode function with the v1.0.1 version
  3. See that the result isn't zero-terminated

Expected behavior
Expect the Encoded byte array to be zero-terminated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions