[swift-users] Object size on heap

Brent Royal-Gordon brent at architechies.com
Mon Mar 21 14:01:40 CDT 2016


>> Is there a way to find out how big an object is on the heap?
> 
> Yes, the sizeof() function.

I think he's asking for the size of the object itself. For a reference type, `sizeof()` gives you the size of the reference.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-users mailing list