Varint
Using the high bit of each byte to indicate “continue” or “stop”, and the remaining bits (7 bits of each byte in the sequence) are interpreted as ordinary binary code that encodes the actual value:
It sounds like “Base 128 Varint” used in “Google Protocol Buffers” .
related ways to compress integers
In short: this code is an integer in 2 parts: The first part in unary code, which indicates how many bits will be required to read the rest of the value, and the second part (of the specified width in bits) in more or less equal binary format, which encodes actual value.
This particular code is "streams" of a binary unary code, but other similar codes first pack the complete unary code and then the binary code, such as Elias gamma code .
I suspect this code is one of the “Start / Stop Codes” family, as described in:
Stephen Pidgeon - Start / Stop Codes - Procs. Data Compression Conference, 2001, IEEE Computer Society Press, 2001.
source share