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

Function _array__erase

codegraph-kernel/grammars/swift/tree_sitter/array.h:197–204  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

195
196/// This is not what you're looking for, see `array_erase`.
197static 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`.
207static inline void *_array__reserve(void *contents, uint32_t *capacity,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected