decodeString

fun ByteBuffer.decodeString(
    charset: Charset = Charsets.UTF_8
): String

Decodes a string from this buffer with the specified charset