mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: In the new CircularBuffer indices we had 24 spare bits, let's do something useful with them: If it fits we can store the expected collection size there and compare when an element is accessed through that index. Modifications: add collection count to CircularBuffer.Index Result: we can somewhat validate the correct use of CircularBuffer indices