writePosition

var writePosition: Int = 0

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.