Commit 1d4adfd
Fabian Wiles
provide a way to find the bytes read from Buffer
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.1 parent dd75c74 commit 1d4adfd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
0 commit comments