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

Function UArray_at_putPointer_

libs/basekit/source/UArray.c:757–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757void UArray_at_putPointer_(UArray *self, size_t pos, void *v) {
758 if (pos >= self->size)
759 UArray_setSize_(self, pos + 1);
760
761 switch (self->itemType) {
762 case CTYPE_uintptr_t:
763 if (((void **)self->data)[pos] != v) {
764 ((void **)self->data)[pos] = v;
765 UArray_changed(self);
766 }
767 return;
768 default:
769 UArray_error_(self,
770 "UArray_at_putPointer_ not supported with this type");
771 }
772
773 // UArray_error_(self, "UArray_at_putPointer_ not supported with this
774 // type");
775}
776
777void UArray_appendLong_(UArray *self, long v) {
778 UArray_at_putLong_(self, self->size, v);

Callers 1

UArray_appendPointer_Function · 0.85

Calls 3

UArray_setSize_Function · 0.85
UArray_changedFunction · 0.85
UArray_error_Function · 0.85

Tested by

no test coverage detected