@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        } else if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        ClickHouseByteBuffer other = (ClickHouseByteBuffer) obj;
        return Arrays.equals(array, other.array) && position == other.position && length == other.length;
    }
Sets new length.

@param newLength new length, negative number is treated as zero
@return this byte buffer
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java