Files
swift-nio/Sources
Norman Maurer e5dedbec14 Not cause a CoW when calling ByteBuffer.discardReadBytes() while it was fully consumed. (#363)
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
2018-04-27 10:04:18 +01:00
..
2017-12-15 09:50:12 +00:00
2018-04-27 08:33:32 +02:00
2018-03-19 14:45:32 +01:00