Function

ivar_getOffset(_:)

Returns the offset of an instance variable.

Declaration

func ivar_getOffset(_ v: Ivar) -> Int

Discussion

For instance variables of type id or other object types, call object_getIvar(_:_:) and object_setIvar(_:_:_:) instead of using this offset to access the instance variable data directly.

See Also

Working with Instance Variables

func ivar_getName(Ivar) -> UnsafePointer<Int8>?

Returns the name of an instance variable.

func ivar_getTypeEncoding(Ivar) -> UnsafePointer<Int8>?

Returns the type string of an instance variable.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software