encodeString

fun Encoding.encodeString(string: String, byteOrder: ByteOrder): ByteArray

Encodes a String into a ByteArray using the given Encoding and ByteOrder.

Parameters

string

the String to encode.

byteOrder

the ByteOrder to use.