Hacker News new | past | comments | ask | show | jobs | submit login

Also, why 1B and not just B? As such the compressed size would be at most the same as original, but never larger than?



Well that one is more understandable. You can't tell literal from counts except by convention. If we assume ASCII encoding, you don't know if it's a 'B' or a count of 66. It makes sense when you're encoding something with lots of runs, that you use every second word for literals and every second word for counts.

I just don't understand why they start with counts, that's all.


Ah, so obvious indeed.


So is '2' a one-byte sequence or the start of a three-byte sequence?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: