mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: The (`internal`) `Socket` API should've always been based on `Unsafe(Mutable)RawBufferPointer`s but for some reason (probably just age) it was `Unsafe(Mutable)Pointer<UInt8>` alongside a `size: Int`. Modifications: switched the `Socket` APIs from `Unsafe(Mutable)Pointer<UInt8>` and a size to `Unsafe(Mutable)RawBufferPointer`. Result: better Swift code. Motivation: Explain here the context, and why you're making that change. What is the problem you're trying to solve. Modifications: Describe the modifications you've done. Result: After your change, what will change.