public ClickHouseByteBuffer update(byte[] bytes) {
        if (bytes == null || bytes.length == 0) {
            reset();
        } else {
            position = 0;
            length = (array = bytes).length;
        }

        return this;
    }
Updates buffer.

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