Swift use c struct

后端 未结 3 973
孤城傲影
孤城傲影 2021-02-01 08:31

Sorry for the title, I can\'t find words to describe my question in few words.

I already know that swift can use struct written in c. For example

In Bridging-Hea

3条回答
  •  心在旅途
    2021-02-01 08:53

    After change my question, I got an answer.

    When the struct implements in hidden, this is called "opaque"

    so I can use COpaquePointer.

    var pointer: COpaquePointer = COpaquePointer.null()
    // some init code.
    init_pointer(pointer);
    

提交回复
热议问题