function withNativeString
source · line 9public
@Unsafe
public fun <R> OsString.withNativeString(block: (Ptr<Byte>) -> R): R
Extension receiver: OsString
Borrows a NUL-terminated native encoding for the callback. Embedded NUL is rejected and the pointer must not escape.
parameter block
source · line 10public
block: (Ptr<Byte>) -> R
parameter receiver
source · line 10public
OsString
type parameter R
source · line 10public
R