Le 29/06/2023 à 06:07, Weston Pace a écrit :
When a binary array or a list array element is null the cleanest thing to do is to set the offsets to be the same. So, for example, given a list array with 5 elements, if second item is null, the offsets could be 0, 8, 8, 12, 20, 50. Question for Antoine: is it correct for the offsets of a null element to be different? For the above example, could the offsets be 0, 8, 10, 12, 20, 50? I think the answer is "yes, this is correct". However, if this is the case, then the list's values array must still have 50 items.
Yes, it is correct (though wasteful), and yes, the offsets must correspond to actual slots in the values array.
Regards Antoine.