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

Function _array__swap

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

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

Source from the content-addressed store, hash-verified

235
236/// This is not what you're looking for, see `array_swap`.
237static inline void _array__swap(uint32_t *self_size, uint32_t *self_capacity,
238 uint32_t *other_size, uint32_t *other_capacity) {
239 uint32_t tmp_size = *self_size;
240 uint32_t tmp_capacity = *self_capacity;
241 *self_size = *other_size;
242 *self_capacity = *other_capacity;
243 *other_size = tmp_size;
244 *other_capacity = tmp_capacity;
245}
246
247/// This is not what you're looking for, see `array_push` or `array_grow_by`.
248static inline void *_array__grow(void *contents, uint32_t size, uint32_t *capacity,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected