valuesN refers to value of the Nth item
valuesN refers to value of the Nth key/value pair
If num > 0, values[0] to values[num-1] (inclusive) are valid. Otherwise, this can be NULL.
See Implementation