public ClickHouseByteBuffer reverse(int offset, int length) {
        if (length > 1) {
            offset += position;
            int l = offset + length;
            for (int i = offset, len = i + length / 2; i < len; i++) {
                byte b = array[i];
                --l;
                array[i] = array[l];
                array[l] = b;
            }
        }
        return this;
    }
Reverses the byte array.

@param offset start position
@param length bytes to reserve
@return this byte buffer
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java