114 clear(rdstate()|std::ios::failbit);
120 if (dir==std::ios::beg)
124 const char *ptr = gptr()+offset;
127 const size_t sbuf = egptr()-gptr();
131 if (ptr>=eback() && ptr<egptr())
134 const z_off_t zpos = gztell(
fFile)-sbuf;
141 const streampos pos = gzseek(
fFile, offset-sbuf, SEEK_CUR);
146 return pos<0 ? streampos(EOF) : pos;