mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: ByteBufferView isn't a mutable collection, but it probably should be. Modifications: - Add `copyBytes(at:to:length)` to `ByteBuffer` to copy bytes from a readable region of a buffer to another part of the buffer - Conform `ByteBufferView` to `MutableCollection`, `RangeReplaceableCollection` and `MutableDataProtocol` - Add an allocation counting test Result: `ByteBufferView` is now mutable.