mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: Provide a way for CircularBuffer to directly access underlying buffer with an index instead of needing to calculate depending on current head index and underlying buffer count. Related issue: #682 Modifications: Added needed properties to circular buffers Index and adjust CircularBuffer code accordingly. Removed MarkedCircularBuffer assumption that an index into it's underlying buffer will not be invalidated. Result: CircularBuffer will have a complete Index implementation