__iio_format_value
len = __iio_format_value(buf, 0, type, size, vals);
len += __iio_format_value(buf, len, type, stride, &vals[i]);