function withCString
source · line 6public
@Unsafe
public fun <R> String.withCString(block: (Ptr<Int8>) -> R): R
Extension receiver: String
Copies the string into scoped NUL-terminated UTF-8 storage. Embedded NUL is rejected; the pointer must not escape the callback.
parameter block
source · line 7public
block: (Ptr<Int8>) -> R
type parameter R
source · line 7public
R
parameter receiver
source · line 7public
String