encode

fun encode(data: String?): ByteBuffer

Encode a string into a bytebuffer