public static long calculateCycle(long offset, long physicalCapacity, long headerSize) {
        long capacity = physicalCapacity - headerSize;
        return offset / capacity;
    }
Get CRC32 of the given ByteBuf from current reader index to the given length.
This method will not change the reader index of the given ByteBuf.
s3stream/src/main/java/com/automq/stream/s3/wal/util/WALUtil.java