Function

ivar_getOffset

Returns the offset of an instance variable.

Declaration

ptrdiff_t ivar_getOffset(Ivar v);

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

ivar_getName

Returns the name of an instance variable.

ivar_getTypeEncoding

Returns the type string of an instance variable.