add readBits to InputBuffer