Lines Matching refs:cenpos
287 jlong cenpos = endpos - ENDSIZ(endbuf);
288 jlong locpos = cenpos - ENDOFF(endbuf);
290 return (cenpos >= 0 &&
292 readFullyAt(zip->zfd, buf, sizeof(buf), cenpos) != -1 &&
547 jlong endpos, end64pos, cenpos, cenlen, cenoff;
589 cenpos = endpos - cenlen;
593 zip->locpos = cenpos - cenoff;
613 if (cenpos > pagesize) {
614 offset = cenpos & ~(pagesize - 1);
625 zip->mlen = cenpos - offset + cenlen + endhdrlen;
636 cenbuf = zip->maddr + cenpos - offset;
641 (readFullyAt(zip->zfd, cenbuf, cenlen, cenpos) == -1))
676 cenpos = readCEN(zip, countCENHeaders(cenbuf, cenend));
698 entries[i].cenpos = cenpos + (cp - cenbuf);
714 cenpos = -1;
722 return cenpos;
929 readCENHeader(jzfile *zip, jlong cenpos, jint bufsize)
934 if (bufsize > zip->len - cenpos)
935 bufsize = (jint)(zip->len - cenpos);
937 if (readFullyAt(zfd, cen, bufsize, cenpos) == -1) goto Catch;
950 sequentialAccessReadCENHeader(jzfile *zip, jlong cenpos)
955 && (cenpos >= cache->pos)
956 && (cenpos + CENHDR <= cache->pos + CENCACHE_PAGESIZE))
958 cen = cache->data + cenpos - cache->pos;
959 if (cenpos + CENSIZE(cen) <= cache->pos + CENCACHE_PAGESIZE)
964 if ((cen = readCENHeader(zip, cenpos, CENCACHE_PAGESIZE)) == NULL)
968 cache->pos = cenpos;
996 cen = (char*) zip->maddr + zc->cenpos - zip->offset;
1001 cen = readCENHeader(zip, zc->cenpos, AMPLE_CEN_HEADER_SIZE);
1003 cen = sequentialAccessReadCENHeader(zip, zc->cenpos);