mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
7ef823a44a70bbd13a1e0b56de142ca5f4a367ef
This implements a heap based ByteBuffer modeled on Netty's ByteBuf. It provides read and write access via Unsafe{Mutable}Pointers (withReadPointer, withMutableWritePointer) and read access via withData. Instead of providing public access to mutating readIndex/writeIndex, the mutable withPointer methods take a closure returning the number of bytes written and automatically manages the applicable index.
Read and write helper methods still largely TODO.
Languages
Swift
91.9%
C
5%
Shell
2%
CMake
0.5%
C++
0.4%