xsputn invokes after complete buffer is filled RRS feed

  • Question

  • Can i Invoke xsputn in intermediate state and not when filled completely ?
    Tuesday, April 14, 2020 10:58 AM

All replies

  • I'm not sure what you mean by "intermediate state" or "filled completely". Intermediate between what and what else? What is filled completely?

    You can call std::basic_streambuf::sputn (or xsputn, if you have a class derived from std::basic_streambuf; xsputn is protected) at any time. All this does is place an array of characters into the output buffer managed by streambuf.

    Igor Tandetnik

    Tuesday, April 14, 2020 2:30 PM