According to Objective-C link to runtime :
ivar_getOffset Returns the offset of an instance variable.ptrdiff_t ivar_getOffset (Ivar ivar) Discussion For example, variables of type id or other types of objects, calling object_getIvar and object_setIvar instead of using this offset to access instance variable data directly.Declared In runtime.h
ivar_getOffset Returns the offset of an instance variable.
ptrdiff_t ivar_getOffset (Ivar ivar) Discussion For example, variables of type id or other types of objects, calling object_getIvar and object_setIvar instead of using this offset to access instance variable data directly.
Declared In runtime.h
Why is this? What does object_getIvar do for object types?
EDIT: changed the question from the signature (void *) to (id *).
, ivar. , object_getIvar() Apple open-source Obj-C.
object_getIvar()
object_setIvar() , . , , objc_assign_ivar().
object_setIvar()
objc_assign_ivar()
; , API .
, , object_getIvar - , id , ivar_getOffset object, .
object_getIvar
id
ivar_getOffset
object
, void * C99 ( ):
void *
C99 §6.2.5 (1): (...) (, ), (, ) (, , , ).C99 §6.2.5 (19): void ; , .C99 §6.5.6 (2): , , . ( 1.)C99 §6.5.2.1 (1): " ", , "".
C99 §6.2.5 (1): (...) (, ), (, ) (, , , ).
C99 §6.2.5 (19): void ; , .
void
C99 §6.5.6 (2): , , . ( 1.)
C99 §6.5.2.1 (1): " ", , "".
, char *.
char *
Source: https://habr.com/ru/post/1761656/More articles:ContentProvider Calendar URL on Sense Android Phones - androidHow to get the date between the start date and the end date? (excluding weekend date) - javascriptIs it possible to transfer wma sound files to iPhone / iPod touch? - objective-cWhat is meant by "using a function" - c ++Tips for a lengthy procedure in C # - performanceVariable Period PRNG - language-agnosticUIImagePickerController в альбомной ориентации - iosextension variables in shell script - shellJQuery: datatable pagination - jqueryDoes this code authenticate? - c ++All Articles