| 457 | // copy |
| 458 | |
| 459 | void 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 | |
| 466 | void UArray_copyItems_(UArray *self, const UArray *other) { |
| 467 | if (self->size != other->size) { |
no test coverage detected