ktor-io / io.ktor.utils.io.core / IoBuffer / duplicate

duplicate

fun duplicate(): IoBuffer

Overrides ChunkBuffer.duplicate

Create a new Buffer instance pointing to the same memory and having the same positions.