Not worthy
Simplify bitstream2buf