public ByteBuffer sliceData() {
        return this.data != null ? this.data.slice() : null;
    }
Creates a new byte buffer whose content is a shared subsequence of this log entry's data
buffer's content.

@return The new byte buffer
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/LogEntry.java