Parameter points to an array of items.
Parameter for input. Default is transfer none.
Don't free data after the code is done.