object Companion
source · line 47public
public companion
Creates independent native-byte values from text or existing native bytes.
function fromUtf16
source · line 56public
public fun fromUtf16(value: List<UShort>): OsString
Copies arbitrary UTF-16 code units as WTF-8, preserving unpaired surrogates and NUL.
parameter value
source · line 56public
value: List<UShort>
function fromString
source · line 51public
public fun fromString(value: String): OsString
Copies the UTF-8 encoding of the supplied text.
parameter value
source · line 51public
value: String
function fromByteArray
source · line 60public
public fun fromByteArray(value: List<Byte>): OsString
Copies arbitrary native bytes without requiring UTF-8.
parameter value
source · line 60public
value: List<Byte>