toBuffer

fun toBuffer(): ByteBuffer

Convert this buffer into a bytebuffer of the same capacity and content.