Files
wizapp-stdlib/codegen/array/snippets/array_get
T
2025-05-05 19:15:58 +01:00

5 lines
134 B
Plaintext

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