This is not what you're looking for, see `array_erase`.
| 201 | |
| 202 | /// This is not what you're looking for, see `array_erase`. |
| 203 | static inline void _array__erase(void* self_contents, uint32_t *size, |
| 204 | size_t element_size, uint32_t index) { |
| 205 | assert(index < *size); |
| 206 | char *contents = (char *)self_contents; |
| 207 | memmove(contents + index * element_size, contents + (index + 1) * element_size, |
| 208 | (*size - index - 1) * element_size); |
| 209 | (*size)--; |
| 210 | } |
| 211 | |
| 212 | /// This is not what you're looking for, see `array_reserve`. |
| 213 | static inline void *_array__reserve(void *contents, uint32_t *capacity, |
nothing calls this directly
no outgoing calls
no test coverage detected