Пример #1
0
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();
}
Пример #2
0
void ExecutionContext::obFlushAll() {
  while (obFlush()) { obEnd();}
}