MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / _array__erase

Function _array__erase

codegraph-kernel/grammars/lua/tree_sitter/array.h:173–180  ·  view source on GitHub ↗

This is not what you're looking for, see `array_erase`.

Source from the content-addressed store, hash-verified

171
172/// This is not what you're looking for, see `array_erase`.
173static 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`.
183static inline void _array__reserve(Array *self, size_t element_size, uint32_t new_capacity) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected