function withUtf8Bytes
source · line 35public
@Unsafe
public fun <R> String.withUtf8Bytes(block: (Ptr<UInt8>, Long) -> R): R
Extension receiver: String
Borrows the string's UTF-8 bytes for the callback, without a terminating NUL. The pointer is valid only during the callback.
type parameter R
source · line 36public
R
parameter block
source · line 36public
block: (Ptr<UInt8>, Long) -> R
parameter receiver
source · line 36public
String