Exemple #1
0
/// Writes the object to stream \p os.
void istream::text_write (ostringstream& os) const
{
    os.write (ipos(), remaining());
}
Exemple #2
0
/// Writes all written data to \p os.
void ostream::text_write (ostringstream& os) const
{
    os.write (begin(), pos());
}
Exemple #3
0
// curl has response data for us:
size_t curl_writer(void *ptr, size_t size, size_t nmemb, void *)
{
    size_t bytes = size * nmemb;
    ossresp.write((char*) ptr, bytes);
    return bytes;
}