toByteBuffer

fun ByteArray.toByteBuffer(): ByteBuffer

Returns a direct primitive buffer containing all of the elements of this byte array.

fun Array<out Byte>.toByteBuffer(): ByteBuffer

Returns a direct Byte buffer containing all of the elements of this generic array.