Add remainingCapacity to RingBuffer