Searched refs:CENHDR (Results 1 - 9 of 9) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/zip/
H A DZipConstants.java48 static final int CENHDR = 46; // CEN header size field in interface:ZipConstants
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipInfo.java72 while (pos + CENHDR < cen.length) {
76 // use size CENHDR as the extra bytes to read, just in case the
79 long len = LOCHDR + CENNAM(cen, pos) + CENEXT(cen, pos) + CENHDR;
82 if (LOCEXT(buf) > CENEXT(cen, pos) + CENHDR) {
89 pos += CENHDR + CENNAM(cen, pos) + CENEXT(cen, pos) + CENCOM(cen, pos);
144 CENNAM(cen, off), new String(cen, off + CENHDR, CENNAM(cen, off)));
147 printExtra(cen, off + CENHDR + CENNAM(cen, off), CENEXT(cen, off));
159 int off = pos + CENHDR + CENNAM(cen, pos);
H A DZipConstants.java82 static final int CENHDR = 46; // CEN header size field in class:ZipConstants
H A DZipFileSystem.java1067 if (pos + CENHDR + nlen > limit)
1069 byte[] name = Arrays.copyOfRange(cen, pos + CENHDR, pos + CENHDR + nlen);
1073 pos += (CENHDR + nlen + elen + clen);
1896 pos += CENHDR;
1913 int written = CENHDR;
2010 return CENHDR + nlen + elen + clen + elen64 + elenNTFS + elenEXTT;
/openjdk7/jdk/src/share/bin/
H A Dparse_manifest.c198 * 3*2**16 + CENHDR + SIGSIZ
211 #define BUFSIZE (3 * 65536 + CENHDR + SIGSIZ)
288 * for "bytes < CENHDR" must be made before the test for the entire
289 * size of the header, because if bytes is less than CENHDR, the
294 if (bytes < CENHDR) {
302 entry_size = CENHDR + CENNAM(p) + CENEXT(p) + CENCOM(p);
321 memcmp((p + CENHDR), file_name, JLI_StrLen(file_name)) == 0) {
H A Dmanifest_info.h45 #define CENHDR 46 macro
/openjdk7/jdk/src/share/native/java/util/zip/
H A Dzip_util.c66 #define CENSIZE(cen) (CENHDR + CENNAM(cen) + CENEXT(cen) + CENCOM(cen))
529 for (i = 0; i + CENHDR <= end - beg; i += CENSIZE(beg + i))
667 for (i = 0, cp = cenbuf; cp <= cenend - CENHDR; i++, cp += CENSIZE(cp)) {
689 if (cp + CENHDR + nlen > cenend)
693 if (isMetaName((char *)cp+CENHDR, nlen))
694 if (addMetaName(zip, (char *)cp+CENHDR, nlen) != 0)
699 entries[i].hash = hashN((char *)cp+CENHDR, nlen);
956 && (cenpos + CENHDR <= cache->pos + CENCACHE_PAGESIZE))
1019 memcpy(ze->name, cen + CENHDR, nlen);
1022 char *extra = cen + CENHDR
[all...]
H A Dzip_util.h50 #define CENHDR 46 macro
/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DCorruptedZipFiles.java202 static final int CENHDR = ZipFile.CENHDR; field in class:CorruptedZipFiles

Completed in 224 milliseconds