mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: ByteBuffer.viewBytes would unconditionally return a ByteBufferView even if the requested bytes were not readable. Modifications: - make it return an `Optional<ByteBufferView>` Result: safer, better APIs