MarkedCircularBuffer

A circular buffer that allows one object at a time to be “marked” and easily identified and retrieved later.

MarkedCircularBuffer.swift:20
struct MarkedCircularBuffer<Element>

This object is used extensively within SwiftNIO to handle flushable buffers. It can be used to store buffered writes and mark how far through the buffer the user has flushed, and therefore how far through the buffer is safe to write.