mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Motivation: We should not need to trigger any copy when the ByteBuffer was fully consumed and discardReadBytes() is called. Modifications: - If fully consumed just reset reader and writer Index. - Add unit test Result: Less memory copies