get the next n bits but do n't increase input pointer . n must be less or equal 16 and if you if this call succeeds , you must drop at least n-8 bits in the next call . concode_field_sep int bits_in_buffer concode_elem_sep int buffer concode_elem_sep int window_start concode_elem_sep byte[] window concode_elem_sep int window_end concode_field_sep int getBits concode_elem_sep boolean needsInput concode_elem_sep int getAvailableBits concode_elem_sep void reset concode_elem_sep void dropBits concode_elem_sep int getAvailableBytes concode_elem_sep void skipToByteBoundary concode_elem_sep int copyBytes concode_elem_sep void setInput
int function ( int arg0 ) { if ( bits_in_buffer < arg0 ) { if ( window_start == window_end ) return - 1 ; buffer |= ( window [ window_start ++ ] & 0xff | ( window [ window_start ++ ] & 0xff ) << 8 ) << bits_in_buffer ; bits_in_buffer += 16 ; } return buffer & ( ( 1 << arg0 ) - 1 ) ; }