summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-02-10 21:35:19 +0100
committerDoug Zongker <dougz@android.com>2014-02-13 17:30:41 +0100
commita9300301ce0bddb6f46e1e1a7499c13b615713c6 (patch)
treede91ee750f49aaf54aeb63751cb7cd9ba58804fa /minzip/Zip.h
parentam 2739ed96: am a5d105e2: Merge "recovery: fix building with pointer-to-int errors turned on" (diff)
downloadandroid_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar.gz
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar.bz2
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar.lz
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar.xz
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.tar.zst
android_bootable_recovery-a9300301ce0bddb6f46e1e1a7499c13b615713c6.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/minzip/Zip.h b/minzip/Zip.h
index 05a2e60e0..2054b38a4 100644
--- a/minzip/Zip.h
+++ b/minzip/Zip.h
@@ -183,6 +183,17 @@ bool mzExtractZipEntryToBuffer(const ZipArchive *pArchive,
const ZipEntry *pEntry, unsigned char* buffer);
/*
+ * Return a pointer and length for a given entry. The returned region
+ * should be valid until pArchive is closed, and should be treated as
+ * read-only.
+ *
+ * Only makes sense for entries which are stored (ie, not compressed).
+ * No guarantees are made regarding alignment of the returned pointer.
+ */
+bool mzGetStoredEntry(const ZipArchive *pArchive,
+ const ZipEntry* pEntry, unsigned char **addr, size_t *length);
+
+/*
* Inflate all entries under zipDir to the directory specified by
* targetDir, which must exist and be a writable directory.
*