Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DZipOutputStream.java210 if (e.size == -1 || e.csize == -1 || e.crc == -1) in putNextEntry()
218 e.size = e.csize; in putNextEntry()
219 } else if (e.csize == -1) { in putNextEntry()
220 e.csize = e.size; in putNextEntry()
221 } else if (e.size != e.csize) { in putNextEntry()
266 if (e.csize != def.getBytesWritten()) { in closeEntry()
269 e.csize + " but got " + def.getBytesWritten() + " bytes)"); in closeEntry()
279 e.csize = def.getBytesWritten(); in closeEntry()
284 written += e.csize; in closeEntry()
405 if (e.csize >= ZIP64_MAGICVAL || e.size >= ZIP64_MAGICVAL) { in writeLOC()
[all …]
DZipEntry.java53 long csize = -1; // compressed size of entry data field in ZipEntry
104 this.csize = compressedSize; in ZipEntry()
153 csize = e.csize; in ZipEntry()
392 return csize; in getCompressedSize()
402 public void setCompressedSize(long csize) { in setCompressedSize() argument
403 this.csize = csize; in setCompressedSize()
515 csize = get64(extra, off + 8); in setExtra0()
DZipInputStream.java338 e.csize = get32(tmpbuf, LOCSIZ); in readLOC()
346 e.csize == ZIP64_MAGICVAL || e.size == ZIP64_MAGICVAL); in readLOC()
379 e.csize = get64(tmpbuf, ZIP64_EXTSIZ - ZIP64_EXTCRC); in readEnd()
385 e.csize = get64(tmpbuf, ZIP64_EXTSIZ); in readEnd()
393 e.csize = get32(tmpbuf, EXTSIZ - EXTCRC); in readEnd()
399 e.csize = get32(tmpbuf, EXTSIZ); in readEnd()
409 if (e.csize != inf.getBytesRead()) { in readEnd()
411 "invalid entry compressed size (expected " + e.csize + in readEnd()
DZipFile.java632 e.csize = getEntryCSize(jzentry); in getZipEntry()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DZipEntry.java112 public void setCompressedSize(long csize) { in setCompressedSize() argument
182 long csize = -1; // 0xffffffff field in ZipEntry
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipOutputStreamTest.java154 long csize = ze.getCompressedSize(); in test_setLevelI() local
159 assertTrue("setLevel failed", csize <= ze.getCompressedSize()); in test_setLevelI()
175 long csize = ze.getCompressedSize(); in test_setMethodI() local
180 assertTrue("setLevel failed", csize >= ze.getCompressedSize()); in test_setMethodI()
/libcore/ojluni/src/main/native/
Dzip_util.c1056 ze->csize = (CENHOW(cen) == STORED) ? 0 : CENSIZ(cen); in newEntry()
1074 if (ze->csize == ZIP64_MAGICVAL || ze->size == ZIP64_MAGICVAL || in newEntry()
1089 if (ze->csize == ZIP64_MAGICVAL) { in newEntry()
1092 ze->csize = LL(extra, off); in newEntry()
1373 entry_size = (entry->csize != 0) ? entry->csize : entry->size; in ZIP_Read()
1425 jlong count = entry->csize; in InflateFully()
1512 if (entry->csize == 0) { in ZIP_ReadEntry()
DZipFile.c214 return ze->csize != 0 ? DEFLATED : STORED; in ZipFile_getEntryMethod()
228 return ze->csize != 0 ? ze->csize : ze->size; in ZipFile_getEntryCSize()
Dzip_util.h164 jlong csize; /* size of compressed data (zero if uncompressed) */ member
/libcore/ojluni/annotations/mmodule/java/util/zip/
DZipEntry.annotated.java69 public void setCompressedSize(long csize) { throw new RuntimeException("Stub!"); } in setCompressedSize() argument