/** * shows 0-32 bits. */ public /*inline*/ long show_bits_long(int n) { if (n <= MIN_CACHE_BITS) { return(show_bits(n)); } else { GetBitContext gb = makeCopy(); return(gb.get_bits_long(n, "")); } }
// Copy ctor?? public GetBitContext makeCopy() { GetBitContext ret = new GetBitContext(); ret.buffer = buffer; ret.buffer_offset = buffer_offset; ret.buffer_end = buffer_end; ret.index = index; //ret.buffer_ptr = buffer_ptr; ret.cache = cache; //ret.bit_count = bit_count; ret.cache0 = cache0; ret.cache1 = cache1; ret.size_in_bits = size_in_bits; return(ret); }