Runtime

delims 于 2020-08-17 发布

x86_64架构下,runtime相关结构体的大小

结构体 大小 member
class_ro_t 72 flags instanceStart instanceSize reserved ivarLayout name baseMethodList baseProtocols ivars weakIvarLayout baseProperties
class_rw_t 64  
objc_class 40 superclass cache bits isa
objc_object 8 isa
method_t 24 name type imp
entsize_list_tt 与count有关 entsizeAndFlags count first
method_list_t 32 first = method_t
protocol_list_t 8 + 8n 变长
ivar_t 32 offset name types alignment_raw size
property_t 16 name attributes