streambuf nesnelerini kopyalamak için şöyle yaparız.
boost::asio::streambuf source, target;
...
std::size_t bytes_copied = buffer_copy(
target.prepare(source.size()), // target's output sequence
source.data()); // source's input sequence
// Explicitly move target's output sequence to its input sequence.
target.commit(bytes_copied);
Hiç yorum yok:
Yorum Gönder