Ble is a (fixed) bit length encoder, it accept parameter 1-7 bits for 1 byte, 9-15 bits for 2 bytes or 17-23 bits for 3 bytes.
It read 1, 2 or 3 byte(s) depending the parameter bit(s) provided till 2 ^ bit(s) unique values are reached, then it write a header and bitmap (one time encoded if possible) and the 1 bit or smaller encoded input values, this is repeated till end of file.
The bitmap is encoded by:
00 = 0
01 = 1 01
10 = 1 10
11 = 1 11
Bit values 6, 11 and 17 are often best for text files.
Ble can also be used to expand files.
Download:
http://www.metacompressor.com/download/ble.zip
Windows 32/64-bit command line version.
Need Microsoft .NET framework 4.6.1.
Example:
Encode:
ble 7 input output
Decode:
ble -d input output