encodeToString
Encode a ByteArray.
Return
The String of encoded data.
Parameters
encoder
The Encoder to use.
See also
Throws
If the encoder is configured to reject something, such as UTF-8 byte to text transformations rejecting invalid byte sequences.
If EncoderDecoder.Config.encodeOutMaxSize throws an exception (i.e. output would exceed Int.MAX_VALUE).
Encode len number of bytes from the array, starting at index offset.
Return
The String of encoded data.
Parameters
encoder
The Encoder to use.
offset
The index in the array to start at.
len
The number of bytes, starting at index offset.
See also
Throws
If the encoder is configured to reject something, such as UTF-8 byte to text transformations rejecting invalid byte sequences.
If EncoderDecoder.Config.encodeOutMaxSize throws an exception (i.e. output would exceed Int.MAX_VALUE).