Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 9 of 9) 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()
409 if (e.csize >= ZIP64_MAGICVAL || e.size >= ZIP64_MAGICVAL) { in writeLOC()
[all …]
DZipEntry.java55 long csize = -1; // compressed size of entry data field in ZipEntry
85 this.csize = compressedSize; in ZipEntry()
150 csize = e.csize; in ZipEntry()
388 return csize; in getCompressedSize()
398 public void setCompressedSize(long csize) { in setCompressedSize() argument
399 this.csize = csize; in setCompressedSize()
511 csize = get64(extra, off + 8); in setExtra0()
DZipInputStream.java326 e.csize = get32(tmpbuf, LOCSIZ); in readLOC()
334 e.csize == ZIP64_MAGICVAL || e.size == ZIP64_MAGICVAL); in readLOC()
367 e.csize = get64(tmpbuf, ZIP64_EXTSIZ - ZIP64_EXTCRC); in readEnd()
373 e.csize = get64(tmpbuf, ZIP64_EXTSIZ); in readEnd()
381 e.csize = get32(tmpbuf, EXTSIZ - EXTCRC); in readEnd()
387 e.csize = get32(tmpbuf, EXTSIZ); in readEnd()
397 if (e.csize != inf.getBytesRead()) { in readEnd()
399 "invalid entry compressed size (expected " + e.csize + in readEnd()
DZipFile.java600 e.csize = getEntryCSize(jzentry); in getZipEntry()
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java2061 int csize = 0; in writeBytes() local
2063 if (cpos >= csize) { in writeBytes()
2065 csize = Math.min(endoff - off, CHAR_BUF_SIZE); in writeBytes()
2066 s.getChars(off, off + csize, cbuf, 0); in writeBytes()
2071 int n = Math.min(csize - cpos, MAX_BLOCK_SIZE - pos); in writeBytes()
2083 int csize = Math.min(endoff - off, CHAR_BUF_SIZE); in writeChars() local
2084 s.getChars(off, off + csize, cbuf, 0); in writeChars()
2085 writeChars(cbuf, 0, csize); in writeChars()
2086 off += csize; in writeChars()
2223 int csize = Math.min(len - off, CHAR_BUF_SIZE); in getUTFLength() local
[all …]
/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.c1053 ze->csize = (CENHOW(cen) == STORED) ? 0 : CENSIZ(cen); in newEntry()
1071 if (ze->csize == ZIP64_MAGICVAL || ze->size == ZIP64_MAGICVAL || in newEntry()
1086 if (ze->csize == ZIP64_MAGICVAL) { in newEntry()
1089 ze->csize = LL(extra, off); in newEntry()
1370 entry_size = (entry->csize != 0) ? entry->csize : entry->size; in ZIP_Read()
1422 jlong count = entry->csize; in InflateFully()
1509 if (entry->csize == 0) { in ZIP_ReadEntry()
Djava_util_zip_ZipFile.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