ktor-io / io.ktor.utils.io.core / Buffer / writePosition

writePosition

var writePosition: Int

Current write position. It is always non-negative and will never run ahead of the limit. It is always greater or equal to the readPosition.