[swift-server-dev] Byte Bucket Protocol

Helge Heß me at helgehess.eu
Thu Nov 3 18:45:12 CDT 2016


Hi Steve,

On 3 Nov 2016, at 23:40, steve algernon <salgernon at apple.com> wrote:
> In ObjC dispatch_data_t is effectively toll-free-bridged with NSData

presumably that doesn’t help Swift much :-)

> For this reason, we recommend using -[NSData enumerateByteRangesUsingBlock:] from now on.  Obviously sometimes you need a contiguous buffer, but at least we can defer the copying as much as possible if concatenating dispatch_data objects.

in the scope of this project you usually need an array of blocks for `writev` and alikes. So neither option is really what is needed.

hh



More information about the swift-server-dev mailing list