test_class.declarator: unitTestZipArchive
test_class.modifier: private
test_class.original_string: private byte[] unitTestZipArchive;
test_class.type: byte[]
test_class.var_name: unitTestZipArchive
test_class.file: feya/libraries/archive_diff/diff.generator/src/test/java/com/google/archivepatcher/generator/MinimalZipParserTest.java
test_class.identifier: MinimalZipParserTest
test_case.body: @Test
    public void testLocateStartOfEocd_WithArray_NoEocd() {
      int eocdOffset = MinimalZipParser.locateStartOfEocd(new byte[32768]);
      Assert.assertEquals(-1, eocdOffset);
    }
test_case.class_method_signature: MinimalZipParserTest.testLocateStartOfEocd_WithArray_NoEocd()
test_case.full_signature: @Test public void testLocateStartOfEocd_WithArray_NoEocd()
test_case.identifier: testLocateStartOfEocd_WithArray_NoEocd
test_case.invocations: locateStartOfEocd assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLocateStartOfEocd_WithArray_NoEocd()
focal_class.declarator: EOCD_SIGNATURE = 0x06054b50
focal_class.modifier: public static final
focal_class.original_string: public static final int EOCD_SIGNATURE = 0x06054b50;
focal_class.type: int
focal_class.var_name: EOCD_SIGNATURE
focal_class.declarator: CENTRAL_DIRECTORY_ENTRY_SIGNATURE = 0x02014b50
focal_class.modifier: public static final
focal_class.original_string: public static final int CENTRAL_DIRECTORY_ENTRY_SIGNATURE = 0x02014b50;
focal_class.type: int
focal_class.var_name: CENTRAL_DIRECTORY_ENTRY_SIGNATURE
focal_class.declarator: LOCAL_ENTRY_SIGNATURE = 0x04034b50
focal_class.modifier: public static final
focal_class.original_string: public static final int LOCAL_ENTRY_SIGNATURE = 0x04034b50;
focal_class.type: int
focal_class.var_name: LOCAL_ENTRY_SIGNATURE
focal_class.file: feya/libraries/archive_diff/diff.generator/src/main/java/com/google/archivepatcher/generator/MinimalZipParser.java
focal_class.identifier: MinimalZipParser
focal_class.class_method_signature: MinimalZipParser.readByteOrDie(InputStream in)
focal_class.full_signature: private static int readByteOrDie(InputStream in)
focal_class.identifier: readByteOrDie
focal_class.modifiers: private static
focal_class.parameters: (InputStream in)
focal_class.return: int
focal_class.signature: int readByteOrDie(InputStream in)
focal_class.class_method_signature: MinimalZipParser.skipOrDie(InputStream in, long numBytes)
focal_class.full_signature: private static void skipOrDie(InputStream in, long numBytes)
focal_class.identifier: skipOrDie
focal_class.modifiers: private static
focal_class.parameters: (InputStream in, long numBytes)
focal_class.return: void
focal_class.signature: void skipOrDie(InputStream in, long numBytes)
focal_class.class_method_signature: MinimalZipParser.read16BitUnsigned(InputStream in)
focal_class.full_signature: private static int read16BitUnsigned(InputStream in)
focal_class.identifier: read16BitUnsigned
focal_class.modifiers: private static
focal_class.parameters: (InputStream in)
focal_class.return: int
focal_class.signature: int read16BitUnsigned(InputStream in)
focal_class.class_method_signature: MinimalZipParser.read32BitUnsigned(InputStream in)
focal_class.full_signature: private static long read32BitUnsigned(InputStream in)
focal_class.identifier: read32BitUnsigned
focal_class.modifiers: private static
focal_class.parameters: (InputStream in)
focal_class.return: long
focal_class.signature: long read32BitUnsigned(InputStream in)
focal_class.class_method_signature: MinimalZipParser.readOrDie(InputStream in, byte[] buffer, int offset, int length)
focal_class.full_signature: private static void readOrDie(InputStream in, byte[] buffer, int offset, int length)
focal_class.identifier: readOrDie
focal_class.modifiers: private static
focal_class.parameters: (InputStream in, byte[] buffer, int offset, int length)
focal_class.return: void
focal_class.signature: void readOrDie(InputStream in, byte[] buffer, int offset, int length)
focal_class.class_method_signature: MinimalZipParser.parseCentralDirectoryEntry(InputStream in)
focal_class.full_signature: public static MinimalZipEntry parseCentralDirectoryEntry(InputStream in)
focal_class.identifier: parseCentralDirectoryEntry
focal_class.modifiers: public static
focal_class.parameters: (InputStream in)
focal_class.return: MinimalZipEntry
focal_class.signature: MinimalZipEntry parseCentralDirectoryEntry(InputStream in)
focal_class.class_method_signature: MinimalZipParser.parseLocalEntryAndGetCompressedDataOffset(InputStream in)
focal_class.full_signature: public static long parseLocalEntryAndGetCompressedDataOffset(InputStream in)
focal_class.identifier: parseLocalEntryAndGetCompressedDataOffset
focal_class.modifiers: public static
focal_class.parameters: (InputStream in)
focal_class.return: long
focal_class.signature: long parseLocalEntryAndGetCompressedDataOffset(InputStream in)
focal_class.class_method_signature: MinimalZipParser.locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
focal_class.full_signature: public static long locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
focal_class.identifier: locateStartOfEocd
focal_class.modifiers: public static
focal_class.parameters: (RandomAccessFileInputStream in, int searchBufferLength)
focal_class.return: long
focal_class.signature: long locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
focal_class.class_method_signature: MinimalZipParser.locateStartOfEocd(byte[] buffer)
focal_class.full_signature: public static int locateStartOfEocd(byte[] buffer)
focal_class.identifier: locateStartOfEocd
focal_class.modifiers: public static
focal_class.parameters: (byte[] buffer)
focal_class.return: int
focal_class.signature: int locateStartOfEocd(byte[] buffer)
focal_class.class_method_signature: MinimalZipParser.parseEocd(InputStream in)
focal_class.full_signature: public static MinimalCentralDirectoryMetadata parseEocd(InputStream in)
focal_class.identifier: parseEocd
focal_class.modifiers: public static
focal_class.parameters: (InputStream in)
focal_class.return: MinimalCentralDirectoryMetadata
focal_class.signature: MinimalCentralDirectoryMetadata parseEocd(InputStream in)
focal_method.body: public static long locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
        throws IOException {
      final int maxBufferSize = (int) Math.min(searchBufferLength, in.length());
      final byte[] buffer = new byte[maxBufferSize];
      final long rangeStart = in.length() - buffer.length;
      in.setRange(rangeStart, buffer.length);
      readOrDie(in, buffer, 0, buffer.length);
      int offset = locateStartOfEocd(buffer);
      if (offset == -1) {
        return -1;
      }
      return rangeStart + offset;
    }
focal_method.class_method_signature: MinimalZipParser.locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
focal_method.full_signature: public static long locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)
focal_method.identifier: locateStartOfEocd
focal_method.invocations: min length length setRange readOrDie locateStartOfEocd
focal_method.modifiers: public static
focal_method.parameters: (RandomAccessFileInputStream in, int searchBufferLength)
focal_method.return: long
focal_method.signature: long locateStartOfEocd(RandomAccessFileInputStream in, int searchBufferLength)