ktor-io / io.ktor.utils.io / ByteReadChannel / totalBytesRead

totalBytesRead

abstract val totalBytesRead: Long

Number of bytes read from the channel. It is not guaranteed to be atomic so could be updated in the middle of long running read operation.