Searched refs:eocdOffset (Results 1 – 2 of 2) sorted by relevance
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | MinimalZipParserTest.java | 57 int eocdOffset = MinimalZipParser.locateStartOfEocd(unitTestZipArchive); in testLocateStartOfEocd_WithArray() local 58 checkExpectedBytes(new byte[] {0x50, 0x4b, 0x05, 0x06}, eocdOffset); in testLocateStartOfEocd_WithArray() 63 int eocdOffset = MinimalZipParser.locateStartOfEocd(new byte[32768]); in testLocateStartOfEocd_WithArray_NoEocd() local 64 Assert.assertEquals(-1, eocdOffset); in testLocateStartOfEocd_WithArray_NoEocd() 92 long eocdOffset = MinimalZipParser.locateStartOfEocd(in, 32768); in testLocateStartOfEocd_WithFile() local 93 Assert.assertEquals(bytesBefore, eocdOffset); in testLocateStartOfEocd_WithFile() 118 long eocdOffset = MinimalZipParser.locateStartOfEocd(in, 4000); in testLocateStartOfEocd_WithFile_NoEocd() local 119 Assert.assertEquals(-1, eocdOffset); in testLocateStartOfEocd_WithFile_NoEocd() 125 int eocdOffset = MinimalZipParser.locateStartOfEocd(unitTestZipArchive); in testParseEocd() local 127 Assert.assertEquals(eocdOffset, in.skip(eocdOffset)); in testParseEocd() [all …]
|
/external/turbine/java/com/google/turbine/zip/ |
D | Zip.java | 165 long eocdOffset = size - ENDHDR; in ZipIterable() local 166 MappedByteBuffer eocd = chan.map(MapMode.READ_ONLY, eocdOffset, ENDHDR); in ZipIterable() 181 eocdOffset = start + index; in ZipIterable() 206 eocdOffset = zip64eocdOffset; in ZipIterable() 209 this.cd = chan.map(MapMode.READ_ONLY, eocdOffset - cdsize, cdsize); in ZipIterable()
|