ParsableBitArray { public void skipBytes(int length) { Assertions.checkState(bitOffset == 0); byteOffset += length; assertValidOffset(); } ParsableBitArray();  ParsableBitArray(byte[] data);  ParsableBitArray(byte[] data, int limit); void reset(byte[] data); void reset(ParsableByteArray parsableByteArray); void reset(byte[] data, int limit); int bitsLeft(); int getPosition(); int getBytePosition(); void setPosition(int position); void skipBit(); void skipBits(int numBits); boolean readBit(); int readBits(int numBits); long readBitsToLong(int numBits); void readBits(byte[] buffer, int offset, int numBits); void byteAlign(); void readBytes(byte[] buffer, int offset, int length); void skipBytes(int length); void putInt(int value, int numBits); public byte[] data; }
@Test public void testSkipBytes() { byte[] testData = TestUtil.createByteArray(0x3C, 0xD2, 0x5F, 0x01); ParsableBitArray testArray = new ParsableBitArray(testData); testArray.skipBytes(2); assertThat(testArray.readBits(8)).isEqualTo(0x5F); }