resources/src/main/java/org/robolectric/res/android/ZipFileRO.java
boolean getEntryInfo(org.robolectric.res.android.ZipFileRO.ZipEntryRO entry, Ref<Short> pMethod,
      final Ref<Long> pUncompLen, Ref<Long> pCompLen, Ref<Long> pOffset,
      final Ref<Long> pModWhen, Ref<Long> pCrc32)
  {
    final ZipEntryRO zipEntry = /*reinterpret_cast<ZipEntryRO*>*/(entry);
    final ZipEntry ze = zipEntry.entry;

    if (pMethod != null) {
      pMethod.set((short) ze.getMethod());
    }
    if (pUncompLen != null) {
        pUncompLen.set(ze.getSize()); // uncompressed_length
    }
    if (pCompLen != null) {
        pCompLen.set(ze.getCompressedSize());
    }
    if (pOffset != null) {
      throw new UnsupportedOperationException("Figure out offset");
      //        pOffset = ze.offset;
    }
    if (pModWhen != null) {
        // todo pModWhen.set(ze.getLastModifiedTime().toMillis());
    }
    if (pCrc32 != null) {
      pCrc32.set(ze.getCrc());
    }

    return true;
  }
boolean getEntryInfo(org.robolectric.res.android.ZipFileRO.ZipEntryRO entry, Ref<Short> pMethod,
      final Ref<Long> pUncompLen, Ref<Long> pCompLen, Ref<Long> pOffset,
      final Ref<Long> pModWhen, Ref<Long> pCrc32)
  {
    final ZipEntryRO zipEntry = /*reinterpret_cast<ZipEntryRO*>*/(entry);
    final ZipEntry ze = zipEntry.entry;

    if (pMethod != null) {
      pMethod.set((short) ze.getMethod());
    }
    if (pUncompLen != null) {
        pUncompLen.set(ze.getSize()); // uncompressed_length
    }
    if (pCompLen != null) {
        pCompLen.set(ze.getCompressedSize());
    }
    if (pOffset != null) {
      throw new UnsupportedOperationException("Figure out offset");
      //        pOffset = ze.offset;
    }
    if (pModWhen != null) {
        // todo pModWhen.set(ze.getLastModifiedTime().toMillis());
    }
    if (pCrc32 != null) {
      pCrc32.set(ze.getCrc());
    }

    return true;
  }
boolean getEntryInfo ( org . robolectric . res . android . ZipFileRO . ZipEntryRO entry , Ref < Short > pMethod , final Ref < Long > pUncompLen , Ref < Long > pCompLen , Ref < Long > pOffset , final Ref < Long > pModWhen , Ref < Long > pCrc32 ) { final ZipEntryRO zipEntry = /*reinterpret_cast<ZipEntryRO*>*/ ( entry ) ; final ZipEntry ze = zipEntry . entry ; if ( pMethod != null ) { pMethod . set ( ( short ) ze . getMethod ( ) ) ; } if ( pUncompLen != null ) { pUncompLen . set ( ze . getSize ( ) ) ; // uncompressed_length } if ( pCompLen != null ) { pCompLen . set ( ze . getCompressedSize ( ) ) ; } if ( pOffset != null ) { throw new UnsupportedOperationException ( "Figure out offset" ) ; //        pOffset = ze.offset; } if ( pModWhen != null ) { // todo pModWhen.set(ze.getLastModifiedTime().toMillis()); } if ( pCrc32 != null ) { pCrc32 . set ( ze . getCrc ( ) ) ; } return true ; }
/*
Get the useful fields from the zip entry.

Returns "false" if the offsets to the fields or the contents of the fields
appear to be bogus.
/ * Get the useful fields from the zip entry .