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

Function UArray_copy_

libs/basekit/source/UArray.c:459–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457// copy
458
459void UArray_copy_(UArray *self, const UArray *other) {
460 UArray_setItemType_(self, UArray_itemType(other));
461 UArray_setEncoding_(self, UArray_encoding(other));
462 UArray_setSize_(self, UArray_size(other));
463 UArray_copyItems_(self, other);
464}
465
466void UArray_copyItems_(UArray *self, const UArray *other) {
467 if (self->size != other->size) {

Callers 9

BStream_cloneFunction · 0.85
UArray_cloneFunction · 0.85
UArray_insert_every_Function · 0.85
UArray_asUTF8Function · 0.85
IoSeq_immutable.cFile · 0.85
IoSeq_rawCopy_Function · 0.85

Calls 7

UArray_setItemType_Function · 0.85
UArray_itemTypeFunction · 0.85
UArray_setEncoding_Function · 0.85
UArray_encodingFunction · 0.85
UArray_setSize_Function · 0.85
UArray_sizeFunction · 0.85
UArray_copyItems_Function · 0.85

Tested by

no test coverage detected