pike.git / src / modules / Gz / module.pmod.in

version» Context lines:

pike.git/src/modules/Gz/module.pmod.in:282:    if(def || write_mode || sizeof(read_buf)) return 0;    while(!sizeof(read_buf) && fill_read_buffer())    ;    return at_eof;    }       //! Sets the encoding level, strategy and window_size.    //!    //! @seealso    //! @[Gz.deflate] -  int setparams(void|int(-9..9) level, void|int strategy, +  int setparams(void|int(0..9) level, void|int strategy,    void|int(8..15) window_size) {    if (def) {    string s = def->deflate("", SYNC_FLUSH);    if (sizeof(s) && f->write(s) != sizeof(s))    return 0;    def = 0;    }    if (!zero_type(level))    _file::level = level;    if (!zero_type(strategy))