ktor-io / io.ktor.utils.io.core / reset

reset

fun BytePacketBuilder.reset(): Unit

Discard all written bytes and prepare to build another packet.