OC类布局
2017-12-28 00:44:17 0 举报
OC类布局
作者其他创作
大纲/内容
class_rw_t
- flags: uint32_t- version: uint32_t- ro: class_ro_t- method_lists: method_list_t **- properties: chained_property_list*- protocols: protocol_list_t **- firstSubclass: Class- nextSiblingClass: Class- demangledName: char*
typedef uintptr_t protocol_ref_t;
property_t
- name: const char *- attributes: const char *
class_data_bits_t
- bits: uintptr_t
bucket_t
- _key: cache_key_t- _imp: IMP
method_t
- name: SEL- types: const char *- imp: IMP
typedef void (*IMP)(void);
typedef uintptr_t cache_key_t;
typedef uint32_t mask_t;
isa
- isa:Class- superclass:Class- cache: cache_t- bits: uintptr_t
OC类
12345678\"abcde\"98765432\"zyw\"
cache_t
- _buckets: bucket_t- _mask: mask_t- _occupied: mask_t
class_ro_t
- flags: uint32_t- instanceStart: uint32_t- instanceSize: uint32_t- reserved: uint32_t- ivarLayout: const uint8_t *- name: const char *- baseMethods: const method_list_t *- baseProtocols: const protocol_list_t *- ivars: const ivar_list_t *- weakIvarLayout: const uint8_t *- baseProperties: const property_list_t *
chained_property_list
- next: chained_property_list *- count: uint32_t- list[0]: property_t
ivar_list_t
- offset: int32_t- name: const char *- type: const char *- alignment_raw: uint32_t- size: uint32_t
protocol_list_t
- count: uintptr_t- list[0]: protocol_ref_t
method_list_t
- entsize_NEVER_USE: uint32_t- count: uint32_t- first: method_t
0 条评论
回复 删除
下一页