void CFile::PImpl::flush() { if (cl_type != CLF_TYPE_INVALID) { if (cl_type == CLF_TYPE_PLAIN) { fflush(cl_plain); } #ifdef USE_ZLIB if (cl_type == CLF_TYPE_GZIP) { gzflush(cl_gz, Z_SYNC_FLUSH); } #endif // USE_ZLIB #ifdef USE_BZ2LIB if (cl_type == CLF_TYPE_BZIP2) { BZ2_bzflush(cl_bz); } #endif // USE_BZ2LIB } else { errno = EBADF; } }
static int php_bz2iop_flush(php_stream *stream) { struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; return BZ2_bzflush(self->bz_file); }
bool BZ2File::flush() { assert(m_bzFile); return BZ2_bzflush(m_bzFile); }
static int bzdFlush(FDSTACK_t fps) { return BZ2_bzflush(fps->fp); }
static int bzdFlush(FD_t fd) { return BZ2_bzflush(bzdFileno(fd)); }