Hi, I'm getting "Native interop types constructors...
# multiplatform
s
Hi, I'm getting "Native interop types constructors must not be called directly" on a call to the sockaddr constructor with the following code:
Copy code
val addressCount = CFArrayGetCount(addresses)
resolvedAddresses = (0 until addressCount).map {
  sockaddr(CFArrayGetValueAtIndex(addresses, it)!!.rawValue).sa_data.toKString()
}
Does anybody know how to do this correctly?