mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +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