public ClickHouseByteBuffer update(byte[] bytes, int offset, int length) {
        if (bytes == null || bytes.length == 0 || length == 0) {
            return reset();
        } else {
//            validate(bytes, offset, length);
        }

        if (bytes != this.array) {
            this.array = bytes;
        }
        this.position = offset;
        this.length = length;
        return this;
    }
Updates buffer.

@param bytes  byte array, null is same as empty byte array
@param offset start position
@param length length of bytes
@return this byte buffer
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java