@Test public void testRawCompressedSize() { try { entry.setRawCompressedSize(UNKNOWN - 1); fail(); } catch (IllegalArgumentException expected) { } try { entry.setRawCompressedSize(ULong.MIN_VALUE - 1); fail(); } catch (IllegalArgumentException expected) { } try { entry.setRawCompressedSize(ULong.MAX_VALUE + 1); fail(); } catch (IllegalArgumentException expected) { } assertEquals(0, entry.getRawCompressedSize()); entry.setRawCompressedSize(UInt.MIN_VALUE); assertEquals(UInt.MIN_VALUE, entry.getRawCompressedSize()); entry.setRawCompressedSize(UInt.MAX_VALUE); assertEquals(UInt.MAX_VALUE, entry.getRawCompressedSize()); entry.setRawCompressedSize(UInt.MAX_VALUE + 1); // ZIP64! assertEquals(UInt.MAX_VALUE, entry.getRawCompressedSize()); }
if (UInt.MAX_VALUE <= csize) { assert UInt.MAX_VALUE == csize; setRawCompressedSize(readLong(data, off)); off += 8;
off += 4; entry.setRawCompressedSize(readUInt(cfh, off)); off += 4;
entry.setRawCompressedSize(UInt.MAX_VALUE); entry.setRawOffset(UInt.MAX_VALUE);
off += 4; entry.setRawCompressedSize(readUInt(lfh, off)); off += 4; entry.setRawCompressedSize(fp - start);