ktor-utils / io.ktor.util / java.nio.ByteBuffer / moveToByteArray

moveToByteArray

fun ByteBuffer.moveToByteArray(): ByteArray

Moves bytes from this buffer into newly created ByteArray and returns it