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

version» Context lines:

pike.git/src/modules/Gz/module.pmod.in:1:   // -*- pike -*- - // $Id: module.pmod.in,v 1.19 2008/11/12 14:57:44 mast Exp $ + // $Id: module.pmod.in,v 1.20 2009/01/28 03:05:04 mast Exp $   #pike __REAL_VERSION__      #if constant(@module@)      inherit @module@;      //! Low-level implementation of read/write support for GZip files   class _file {       protected private Stdio.Stream f;
pike.git/src/modules/Gz/module.pmod.in:242:    } else {    if(type == SEEK_CUR)    pos += file_pos;    if(pos < 0)    return -1;    if(pos < file_pos) {    if(!f->seek || f->seek(0)<0)    return -1;    at_eof = 0;    file_pos = 0; +  inf = 0;    read_buf = "";    crc = crc32("");    if(!check_header())    return -1;    } else    pos -= file_pos;    while(pos > 0) {    string r = read(pos>16384? 16384:pos);    if(!sizeof(r))    return -1;