void ExecutionContext::write(const char *s, int len) { if (m_sb) { m_sb->append(s, len); if (m_out && m_out->chunk_size > 0) { if (m_sb->size() >= m_out->chunk_size) { obFlush(); } } } else { writeStdout(s, len); } if (m_implicitFlush) flush(); }
void ExecutionContext::obFlushAll() { while (obFlush()) { obEnd();} }