$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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