[swift-users] Object size on heap

Jordan Rose jordan_rose at apple.com
Tue Mar 22 11:52:48 CDT 2016

> On Mar 22, 2016, at 8:47, Joe Groff via swift-users <swift-users at swift.org> wrote:
>> On Mar 21, 2016, at 9:31 PM, Howard Lovatt <howard.lovatt at gmail.com <mailto:howard.lovatt at gmail.com>> wrote:
>> How do you call swift_class_getInstanceExtents, it doesn't show in Xcode?
> It's not provided as API by default. You can do this as an unsupported hack:
> @_silgen_name("swift_class_getInstanceExtents")
> func swift_class_getInstanceExtents(theClass: AnyClass)
>   -> (negative: UInt, positive: UInt)

This has probably gone too far to hide it already, but, um, what do you plan to do with this information?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160322/684ef62b/attachment.html>

More information about the swift-users mailing list