1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CRAZY_ZIP_H
6#define CRAZY_ZIP_H
7
8// Definitions related to supporting loading libraries from zip files.
9
10namespace crazy {
11
12// Find "filename" in the specified "zip_file" and return the offset
13// in the file of the start of the data for the file. Return -1 on error.
14// This routine replaces code which used the minizip library, but is about
15// 150 times faster, locating the offset in less than 0.5ms on a Nexus 4.
16int FindStartOffsetOfFileInZipFile(const char* zip_file, const char* filename);
17
18}
19
20#endif  // CRAZY_ZIP_H
21