public long getPos() {
        // TODO: we should report bits as we would loose this information on a reset
        return delegate.getIndex();
    }
Modified version that exposes the position.
plc4j/spi/src/main/java/org/apache/plc4x/java/spi/generation/io/MyDefaultBitInput.java