mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Add ByteBuffer.readableBytesUInt8Span ### Motivation: Provide access to readableBytes as a Span<UInt8> ### Modifications: Added computed property `ByteBuffer.readableBytesUInt8Span`. I also attempted to add `ByteBuffer.mutableReadableBytesUInt8Span` but due to an apparently faulty exclusivity issue I couldn't get this to work. See https://github.com/swiftlang/swift/issues/81218. ### Result: You can access the readable bytes of a ByteBuffer as a Span<UInt8>