mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: ByteBuffer methods like `set(string:)` never felt very Swift-like and also didn't look the same as their counterparts like `getString(...)`. Modifications: - rename all `ByteBuffer.set/write(<type>:,...)` methods to `ByteBuffer.set/write<Type>(...)` - polyfill the old spellings in `_NIO1APIShims` Result: code more Swift-like