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

Function _array__assign

codegraph-kernel/grammars/dart/tree_sitter/array.h:222–228  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

220
221/// This is not what you're looking for, see `array_assign`.
222static inline void *_array__assign(void* self_contents, uint32_t *self_size, uint32_t *self_capacity,
223 const void *other_contents, uint32_t other_size, size_t element_size) {
224 void *new_contents = _array__reserve(self_contents, self_capacity, element_size, other_size);
225 *self_size = other_size;
226 memcpy(new_contents, other_contents, *self_size * element_size);
227 return new_contents;
228}
229
230/// This is not what you're looking for, see `array_swap`.
231static inline void _array__swap(uint32_t *self_size, uint32_t *self_capacity,

Callers

nothing calls this directly

Calls 1

_array__reserveFunction · 0.70

Tested by

no test coverage detected