[swift-corelibs-dev] driving writev(2) from DispatchData

2017-04-25 Thread Johannes Weiss via swift-corelibs-dev
Hi swift-corelibs-dev, I recently found myself with a DispatchData and wanted to use writev(2). So what I need was basically an array of pointers and lengths, not necessarily contiguous. That's exactly what DispatchData is so I thought it should be quite straightforward. Obviously I need a gua

[swift-corelibs-dev] Driving writev(2) with a list of Data

2017-05-19 Thread Johannes Weiss via swift-corelibs-dev
Hi swift-corelibs-dev, Similar to my question "driving writev(2) from DispatchData" [1] (much appreciated if someone had an answer for that), today I'd like to know if there's a better way to drive writev(2) [2] from a list of Data. Sure, I can get the pointers to the individual Data using som