Utf8

abstract class Utf8

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun decodeUtf8(buffer: ByteBuffer, offset: Int, length: Int): String
Decodes the given UTF-8 portion of the ByteBuffer into a String.
Link copied to clipboard
abstract fun encodedLength(sequence: CharSequence): Int
Returns the number of bytes in the UTF-8-encoded form of sequence.
Link copied to clipboard
abstract fun encodeUtf8(in: CharSequence, out: ByteBuffer)
Encodes the given characters to the target ByteBuffer using UTF-8 encoding.
Link copied to clipboard
open fun getDefault(): Utf8
Get the default UTF-8 processor.
Link copied to clipboard
open fun setDefault(instance: Utf8)
Set the default instance of the UTF-8 processor.