Skip to content

Conversation

Toxicable
Copy link
Contributor

This change could possibly be breaking. Another way to do it would be wrap the return value into another object.

return { bytesRead: offset, vars}

But that 100% would be a breaking change

This allows users to post parsing check the length of the input buffer agasint the number of bytes read from it.
Which can make it easier to point out bugs in the application.

Toxicable pushed a commit to Toxicable/binary-parser that referenced this pull request Aug 3, 2018
This change could possibly be breaking. Another way to do it would be wrap the return value into another object.
```
return { bytesRead: offset, vars}
```
But that 100% would be a breaking change

This allows users to post parsing check the length of the input buffer agasint the number of bytes read from it.
Which can make it easier to point out bugs in the application.

---
I've another PR for this here: keichi#86
But I like the encoding functionality that you've put together aswell.
@Toxicable
Copy link
Contributor Author

I think this is a better approach: #89

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.

1 participant