15 Sep
2020
15 Sep
'20
3:19 p.m.
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