/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
final int magic1 = reader.readBits(24); final int magic2 = reader.readBits(24); if (magic1 == END_OF_STREAM_MAGIC_1 && magic2 == END_OF_STREAM_MAGIC_2) { final int bwtStartPointer = reader.readBits(24); return; blockDecompressor.huffmanInUse16 = reader.readBits(16); currentState = State.RECEIVE_HUFFMAN_USED_BITMAPS; int totalTables = reader.readBits(3); if (totalTables < HUFFMAN_MINIMUM_TABLES || totalTables > HUFFMAN_MAXIMUM_TABLES) { throw new DecompressionException("incorrect huffman groups number"); return; int totalSelectors = reader.readBits(15); if (totalSelectors < 1 || totalSelectors > MAX_SELECTORS) { throw new DecompressionException("incorrect selectors number"); currLength = reader.readBits(5);
final int magic1 = reader.readBits(24); final int magic2 = reader.readBits(24); if (magic1 == END_OF_STREAM_MAGIC_1 && magic2 == END_OF_STREAM_MAGIC_2) { final int bwtStartPointer = reader.readBits(24); return; blockDecompressor.huffmanInUse16 = reader.readBits(16); currentState = State.RECEIVE_HUFFMAN_USED_BITMAPS; int totalTables = reader.readBits(3); if (totalTables < HUFFMAN_MINIMUM_TABLES || totalTables > HUFFMAN_MAXIMUM_TABLES) { throw new DecompressionException("incorrect huffman groups number"); return; int totalSelectors = reader.readBits(15); if (totalSelectors < 1 || totalSelectors > MAX_SELECTORS) { throw new DecompressionException("incorrect selectors number"); currLength = reader.readBits(5);
final int magic1 = reader.readBits(24); final int magic2 = reader.readBits(24); if (magic1 == END_OF_STREAM_MAGIC_1 && magic2 == END_OF_STREAM_MAGIC_2) { final int bwtStartPointer = reader.readBits(24); return; blockDecompressor.huffmanInUse16 = reader.readBits(16); currentState = State.RECEIVE_HUFFMAN_USED_BITMAPS; int totalTables = reader.readBits(3); if (totalTables < HUFFMAN_MINIMUM_TABLES || totalTables > HUFFMAN_MAXIMUM_TABLES) { throw new DecompressionException("incorrect huffman groups number"); return; int totalSelectors = reader.readBits(15); if (totalSelectors < 1 || totalSelectors > MAX_SELECTORS) { throw new DecompressionException("incorrect selectors number"); currLength = reader.readBits(5);
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads 32 bits of input as an integer. * @return The integer read */ int readInt() { return readBits(32); }
/** * Reads a single bit from the {@link ByteBuf}. * @return {@code true} if the bit read was {@code 1}, otherwise {@code false} */ boolean readBoolean() { return readBits(1) != 0; }