public int currentOffset() {
        return nioBuffer.position();
    }
Returns the current offset (the position).
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/serialization/impl/protostuff/io/UnsafeNioBufInput.java