IO_METHOD(IoObject, protoOwnsSlots) { /*doc Object ownsSlots A debug method. */ return IOBOOL(self, IoObject_ownsSlots(self)); }
IoObject *IoObject_protoOwnsSlots(IoObject *self, IoObject *locals, IoMessage *m) { /*doc Object ownsSlots A debug method. */ return IOBOOL(self, IoObject_ownsSlots(self)); }
size_t IoObject_memorySize(IoObject *self) { //return (IoObject_tag(self)->memorySizeFunc) ? (IoObject_tag(self)->memorySizeFunc)(self) : 0; size_t size = sizeof(IoObject); if (IoObject_ownsSlots(self)) size += PHash_memorySize(IoObject_slots(self)); if (!ISNUMBER(self)) { // if(IoObject_dataPointer(self)) size += io_memsize(IoObject_dataPointer(self)); } return size; }