private static int PEEK_BITS(int nbits, int get_buffer, int bits_left) { return (((int)(get_buffer >> (bits_left - nbits))) & bmask[nbits]); }