Join Slack
Powered by
What is the best way to load test data from some f...
# kotlin-native
t
tapchicoma
12/07/2019, 9:30 PM
What is the best way to load test data from some file for native test? In JVM I would just put it into
res
folder and then use
Classloader#getResourcesAsStream()
, but it is not available in native target.
o
olonho
12/08/2019, 8:12 AM
one option is
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/immutable-blob-of.html
, another one is load from file using posix APIs
3
Views
Open in Slack
Previous
Next