示例#1
0
/// Writes the object to stream \p os.
void istream::text_write (ostringstream& os) const
{
    os.write (ipos(), remaining());
}
示例#2
0
/// Writes all written data to \p os.
void ostream::text_write (ostringstream& os) const
{
    os.write (begin(), pos());
}
示例#3
0
文件: Tagger.cpp 项目: RJ/playdar
// 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;
}