public static long calculateEndOffsetV0(long startOffset, long length) {
        return startOffset + length - WAL_HEADER_SIZE_V0;
    }
In the historical version V0, the endOffset of each WAL object is calculated directly from the path and size of the object.
This method is used to be compatible with this case.

@param startOffset the start offset of the WAL object, get from the path
@param length the size of the WAL object
@return the end offset of the WAL object
s3stream/src/main/java/com/automq/stream/s3/wal/impl/object/WALObjectHeader.java