getNotSetSentinel
Callable
Parameters
size: number
The size of the array that is indexed (number of elements)
Returns number
The appropriate sentinel value (0xff, 0xffff, or 0xffffffff)
The size of the array that is indexed (number of elements)
The appropriate sentinel value (0xff, 0xffff, or 0xffffffff)
Returns the sentinel value (not-set indicator) for a given index size.
Derives the sentinel from the length of the indexed table, which is not what the writer keys the width on - use getNotSetSentinelForIndexWidth with the channel's
BYTES_PER_ELEMENTinstead. Thesizeparameter is an element count, so passing an IndexSize member yields the u8 sentinel for every width.