What does the term “opaque type” mean in the context of “CFBundleRef opaque type”?

后端 未结 3 1231
暗喜
暗喜 2021-01-30 11:01

Does someone have a good explanation of what an \"opaque type\" is? I saw that term in context of the CFBundleRef, where they were saying: \"CFBundleRef opaque type

3条回答
  •  Happy的楠姐
    2021-01-30 11:51

    It's a future-declared structure. For example:

    typedef struct CFBundle *CFBundleRef;
    

    Without the actual definition of "struct CFBundle", your code cannot access anything within a CFBundleRef pointer. This is opaque.

提交回复
热议问题