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

Function _array__swap

codegraph-kernel/grammars/scala/tree_sitter/array.h:231–239  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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,
232 uint32_t *other_size, uint32_t *other_capacity) {
233 uint32_t tmp_size = *self_size;
234 uint32_t tmp_capacity = *self_capacity;
235 *self_size = *other_size;
236 *self_capacity = *other_capacity;
237 *other_size = tmp_size;
238 *other_capacity = tmp_capacity;
239}
240
241/// This is not what you're looking for, see `array_push` or `array_grow_by`.
242static 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