Closed spAnser closed 7 years ago
Yikes. This has been fixed in https://github.com/JoshGlazebrook/smart-buffer/commit/603d6ebe20a9b795142323f5e987f6e99cc70d24. Looks like it was from the re-factor in Typescript.
3.0.1 has been published.
Thanks for the quick fix.
Let me know if you find anything else. (Hopefully not)
Well you have a .remaining()
is there an opposite function that returns the current position?
Was just a though when I was testing some things.
If you're using JavaScript you could access the internal readOffset and writeOffset variables. Otherwise you could do length - remaining(), but I can add this to a list of things to add in the future.
readInt____
should be returning signed values not unsigned values.