Boost logo

Boost :

From: sehe (bugs_at_[hidden])
Date: 2020-09-15 15:19:35


On do, 10. sep 18:54, Peter Dimov via Boost wrote:
> Alexander Grund wrote:
> > > s.read( buf ) writes data to the buffer you supply
> >
> > I get the rationale. But reading that code I would expect that "s" reads
> > from "buf".
>
> ¯\_(ツ)_/¯
>
> I'd certainly not expect any such thing if s were File or an istream.
+100

In the networking TS and Asio traditions, I expect all buffer arguments to mean "using this buffer". So, it means "read, using this buffer".

Seth


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk