Krystian
01/18/2023, 9:32 PMLandry Norris
01/18/2023, 10:39 PMLandry Norris
01/18/2023, 10:41 PMnapperley
01/19/2023, 1:21 AMreinterpret
is casting from one CPointer
type to another, especially when dealing with C callbacks, and user data that is passed to the callback. Many C libraries use COpaquePointer
as the type for user data which is equivalent to Kotlin's Any
data type.Jeff Lockhart
01/19/2023, 1:21 AMCOpaquePointer
type and reinterpret()
can be used to massage the type to the correct known type, like reinterpret<ByteVar>()
.Jeff Lockhart
01/19/2023, 1:21 AMKrystian
01/19/2023, 6:52 AMLandry Norris
01/19/2023, 7:11 PM