ParsableNalUnitBitArray { public void reset(byte[] data, int offset, int limit) { this.data = data; byteOffset = offset; byteLimit = limit; bitOffset = 0; assertValidOffset(); } @SuppressWarnings({"initialization.fields.uninitialized", "method.invocation.invalid"})  ParsableNalUnitBitArray(byte[] data, int offset, int limit); void reset(byte[] data, int offset, int limit); void skipBit(); void skipBits(int numBits); boolean canReadBits(int numBits); boolean readBit(); int readBits(int numBits); boolean canReadExpGolombCodedNum(); int readUnsignedExpGolombCodedInt(); int readSignedExpGolombCodedInt();  }
@Test public void testReset() { ParsableNalUnitBitArray array = new ParsableNalUnitBitArray(createByteArray(0, 0), 0, 2); assertThat(array.canReadExpGolombCodedNum()).isFalse(); assertThat(array.canReadBits(16)).isTrue(); assertThat(array.canReadBits(17)).isFalse(); array.reset(createByteArray(0, 0, 3, 0), 0, 4); assertThat(array.canReadBits(24)).isTrue(); assertThat(array.canReadBits(25)).isFalse(); }