Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 11 of 11) 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()
391 return csize; in getCompressedSize()
401 public void setCompressedSize(long csize) { in setCompressedSize() argument
402 this.csize = csize; in setCompressedSize()
514 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/src/main/java/java/io/
DObjectOutputStream.java2077 int csize = 0; in writeBytes() local
2079 if (cpos >= csize) { in writeBytes()
2081 csize = Math.min(endoff - off, CHAR_BUF_SIZE); in writeBytes()
2082 s.getChars(off, off + csize, cbuf, 0); in writeBytes()
2087 int n = Math.min(csize - cpos, MAX_BLOCK_SIZE - pos); in writeBytes()
2099 int csize = Math.min(endoff - off, CHAR_BUF_SIZE); in writeChars() local
2100 s.getChars(off, off + csize, cbuf, 0); in writeChars()
2101 writeChars(cbuf, 0, csize); in writeChars()
2102 off += csize; in writeChars()
2239 int csize = Math.min(len - off, CHAR_BUF_SIZE); in getUTFLength() local
[all …]
/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.java68 public void setCompressedSize(long csize) { throw new RuntimeException("Stub!"); } in setCompressedSize() argument