Searched refs:BITS_IN_BYTE (Results 1 – 2 of 2) sorted by relevance
37 private static final int BITS_IN_BYTE = 8; field in BitStream56 buffer[position] = (byte) (buffer[position] | (data << (BITS_IN_BYTE - setBits)) & 0xFF); in appendByte()68 buffer[position] = (byte) (buffer[position] | 1 << (BITS_IN_BYTE - 1 - setBits)); in appendBit()71 if (setBits == BITS_IN_BYTE) { in appendBit()78 return BITS_IN_BYTE * position + setBits; in getBitCount()86 Preconditions.checkArgument(howManyBits < BITS_IN_BYTE); in appendLowBits()
26 private static final int BITS_IN_BYTE = 8; field in BitStreamReader42 if (bitsRead > BITS_IN_BYTE) { in readBit()46 return ((buffer[position] >> (BITS_IN_BYTE - bitsRead)) & 1) == 1; in readBit()54 || (bitsRead < BITS_IN_BYTE && position < buffer.length); in hasBit()