assert(array != NULL & index < array->count); u8 *ptr = (u8 *)(array->items) + (array->item_size * index); return ({T} *)ptr;