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

version» Context lines:

pike.git/src/modules/Gz/module.pmod.in:1: - // $Id: module.pmod.in,v 1.15 2003/04/23 11:41:22 nilsson Exp $ + // $Id: module.pmod.in,v 1.16 2009/01/28 03:05:04 mast Exp $   #pike __REAL_VERSION__      inherit @module@;      #if constant(@module@.inflate)      //! Low-level implementation of read/write support for GZip files   class _file {       static private Stdio.Stream f;
pike.git/src/modules/Gz/module.pmod.in:241:    } 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;