public int end() {
            return endIdx;
        }
Defines a range from start index (inclusive) to end index (exclusive).

@param start Starting index position
@param end Ending index position (exclusive)
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/ByteUtil.java