Skip to content

Obj-C 中的类信息存放在哪里? #48

Open
@tbfungeek

Description

@tbfungeek

Obj-C中的类信息存放位置如下:

  • 实例方法存放在class_data_bits_t 中的 class_rw_t 中的方法列表中,一旦使用过就会被缓存在cache 方法缓存中。
  • 类方法存放在元类对象中
  • 属性,协议都存放在class_data_bits_t 中的 class_rw_t 中的对应列表中。
  • 实例变量存放在class_data_bits_t 中的 class_ro_t 中。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions