MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_copyItems_

Function UArray_copyItems_

libs/basekit/source/UArray.c:466–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void UArray_copyItems_(UArray *self, const UArray *other) {
467 if (self->size != other->size) {
468 printf("UArray_copyItems_ error - arrays not of same size\n");
469 exit(-1);
470 }
471
472 if (self->itemType == other->itemType) {
473 UArray_copyData_(self, other);
474 } else {
475 DUARRAY_OP(UARRAY_BASICOP_TYPES, =, self, other);
476 }
477
478 UArray_changed(self);
479}
480
481void UArray_copyData_(UArray *self, const UArray *other) {
482 UArray_setSize_(self, UArray_sizeRequiredToContain_(self, other));

Callers 3

UArray_copy_Function · 0.85
UArray_at_putAll_Function · 0.85

Calls 2

UArray_copyData_Function · 0.85
UArray_changedFunction · 0.85

Tested by

no test coverage detected