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