mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: Previously, ByteBuffers get* methods would get bytes from anywhere, even if the bytes were not readable. That can lead to security issues in code that doesn't expect this. NIO shouldn't contain such unsafe methods without the word 'unsafe'. Modifications: Made all `get*` methods respect reader/writerIndex. Result: safer user code