Skip to content

Conversation

@brycx
Copy link
Collaborator

@brycx brycx commented Nov 5, 2020

Changes decode() to return Vec<u8> and encode to take &[u8], to comply fully with the specification. I think it's worth adding this as a breaking change (changed function signatures), since this was, strictly speaking, non-compliance with the specification.

Probably needs more work @return, let me know what you think of the API changes.

TODO: Ensure README examples and docs are up-to-date.

Closes #10

@brycx brycx changed the title Don't expect valid UTF-8 when decoding Don't expect valid UTF-8 when decoding or encoding Nov 5, 2020
@brycx brycx merged commit aeadd4d into return:master Nov 29, 2020
@brycx brycx deleted the decode_to_bytes branch November 29, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

branca decode does not handle binary data

1 participant