ktor-io / io.ktor.utils.io.core / Buffer / <init>

<init>

Buffer(memory: Memory)

Represents a buffer with read and write positions.

Concurrent unsafe: the same memory could be shared between different instances of Buffer however you can't read/write using the same Buffer instance from different threads.