Hi all,

I came across this compression algorithm some time ago, but I can't remember what algorithm it is. What I remember was the compression ratio was about 50%, and there's something unique about the way it pads the compressed payload to a byte. The first 3 bits of the compressed payload indicates the number of padding bits, and they are not all ones or zeros. Instead, it takes the last however many number of bits of the size of the uncompressed data.

For example, if the first 3 bits indicate that there are 7 padding bits, and the uncompressed data is 1000 bytes long, then the padding bits is 1101000.

Does anyone know which compression algorithm does something like this?

Thank you!