encode

abstract fun encode(data: ByteArray): ByteArray

Encode: Bytes to Bytes

Encode the provided data, returning the raw resulting bytes.

Return

Encoded data.

Parameters

data

Data to encode.


abstract fun encode(string: String): ByteArray

Encode: String to Bytes

Encode the provided string, returning the raw resulting bytes.

Return

Encoded data.

Parameters

string

String to encode.