Lines Matching defs:offset
1174 static int skipStream(FILE* f, unsigned offset)
1177 while (offset > 0) {
1178 size_t const tr = MIN(offset, sizeof(buf));
1181 offset -= (unsigned)tr;
1183 assert(offset == 0);
1187 /** Safely handle cases when (unsigned)offset > LONG_MAX */
1188 static int fseek_u32(FILE *fp, unsigned offset, int where)
1194 while (offset > 0) {
1195 unsigned s = offset;
1198 if (errorNb==0) { offset -= s; continue; }
1199 errorNb = skipStream(fp, offset);
1200 offset = 0;