drom / LEB128

Little Endian Base 128 converters
MIT License
8 stars 3 forks source link

Ignore garbage bytes #8

Closed piranna closed 7 years ago

piranna commented 7 years ago

This allow have garbage or undefined values on the stream and don't affect to the result, just checking the already known valid bytes.

Also, I've seen there's a bit of duplicate code between signed and unsigned decoders and also length counter due to this kind of stats, so I think it would make sense to have them on their own internal component to earn some transistors, how do you see it?

piranna commented 7 years ago

Thanks ^^