lundi 8 août 2016

can std::ostream be used like a byte buffer

Can std::ostream be used like a byte buffer. Can it help me to append bytes (from a socket for example) and retrieve them correctly ? can we fix an initial size to this buffer and will it grow automatically ?

if this is possible, I need a simple example please.

Aucun commentaire:

Enregistrer un commentaire