https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

stoyicker

11/27/2023, 7:06 PM
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?