This is not what you're looking for, see `array_erase`.
| 171 | |
| 172 | /// This is not what you're looking for, see `array_erase`. |
| 173 | static inline void _array__erase(Array *self, size_t element_size, |
| 174 | uint32_t index) { |
| 175 | assert(index < self->size); |
| 176 | char *contents = (char *)self->contents; |
| 177 | memmove(contents + index * element_size, contents + (index + 1) * element_size, |
| 178 | (self->size - index - 1) * element_size); |
| 179 | self->size--; |
| 180 | } |
| 181 | |
| 182 | /// This is not what you're looking for, see `array_reserve`. |
| 183 | static inline void _array__reserve(Array *self, size_t element_size, uint32_t new_capacity) { |
nothing calls this directly
no outgoing calls
no test coverage detected