D and i/o
Patrick Schluter
Patrick.Schluter at bbox.fr
Tue Nov 12 09:18:24 UTC 2019
On Monday, 11 November 2019 at 19:36:22 UTC, Jacob Carlborg wrote:
> On 2019-11-11 02:04, sarn wrote:
>
>> FTR, that sounds like Linux's sendfile and splice syscalls.
>> They're not portable, though.
>
> "sendfile" is intended to send a file over a socket?
It works with any file handle. I used it to implement cp and I
had used it with pipes. Its only limitation is the 0x7FFF0000
limit, but a 3 line loop takes care of that easily.
More information about the Digitalmars-d
mailing list