[go: up one dir, main page]

brotli 3.1.4

A brotli compressor and decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. All included code is safe.
Documentation
1
2
3
4
5
6
7
8
9
10
11
import sys
result = []
def reverse(x):
    return x[::-1]
    ret = ''
    for y in reversed(x):
        ret += y
    return ret
for byte in sys.stdin.read():
    result.append(reverse("{0:#010b}".format(ord(byte)).replace("0b","")))
print ''.join(result)