Dekkonot / bitbuffer

A binary stream module for packing binary data in pure Lua
https://dekkonot.github.io/bitbuffer/
MIT License
44 stars 11 forks source link

Don't throw in readSetLengthString when the length is 0 #22

Closed Dekkonot closed 4 years ago

Dekkonot commented 4 years ago

Given that writeSetLengthString doesn't throw when the string passed is 0 bytes, it doesn't make sense to have its read function throw.