static void validate(byte[] bytes, int offset, int length) {
        int len = ClickHouseChecker.nonNull(bytes, "Byte array").length;
        if (ClickHouseChecker.between(offset, "Offset", 0, len)
                + ClickHouseChecker.between(length, "Length", 0, len) > len) {
            throw new IllegalArgumentException(
                    ClickHouseUtils.format("Offset(%d) plus length(%d) should not greater than %d", offset, length,
                            len));
        }
    }
Wraps given byte arrays as byte buffer.

@param list   list of non-null byte arrays
@param offset offset
@param length length
@return non-null byte buffer
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java