Gieted
10/20/2020, 8:44 AM<http://java.io|java.io>.File#path
using Windows native apis. However, I'm not sure which arguments I should supply this function with and how to convert resulting DWORD
to Kotlin's String
gildor
10/20/2020, 9:42 AMGieted
10/20/2020, 9:53 AMUInt
, so I guess the result of this function should be put into a buffer, that you pass as an argument. However, I have no idea how to create this buffer and then read value from itgildor
10/20/2020, 10:00 AMval length = 4096
val buffer = allocArray<ByteVar>(length)
GetFullPathNameW(pathname, length, buffer null)
gildor
10/20/2020, 10:10 AMval buffer = ByteArray(4096)
GetFullPathNameW(pathname, buffer.size, buffer.refTo(0).getPointer(this /* memScoped */), null)