napperley
01/22/2019, 4:49 AMserebit
01/22/2019, 4:49 AMserebit
01/22/2019, 4:52 AMmemScoped
is used to clean up memory that is manually allocated once it's done being used. A "global" equivalent wouldn't be able to do thatnapperley
01/22/2019, 4:52 AMserebit
01/22/2019, 4:53 AMKString
?napperley
01/22/2019, 5:10 AMnapperley
01/22/2019, 5:44 AMolonho
01/22/2019, 5:48 AMnativeHeap
, see https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md#memory-allocation