writeBits

fun writeBits(len: Int, value: Int): BitBuf