summaryrefslogtreecommitdiff
path: root/tools/aapt/ZipEntry.h
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-08-25 07:36:31 -0700
committerKenny Root <kroot@google.com>2010-08-25 07:38:33 -0700
commitfb2a9467ad77336edbf2a1a272dbe6ec30ef8a1b (patch)
tree584fffa345cccc738048b2d7930c0b4c89a48773 /tools/aapt/ZipEntry.h
parent6b6ae996b2e84af030397cff3a7f0087de93e01c (diff)
Add LFH offset to verbose list of APK
The Local File Header (LFH) offset is printed in debugging cases when the platform is inspecting APKs. This adds the LFH offset field to the list of contents of an APK, so that it can be checked easily against the Central Directory (CD). Change-Id: I08f9a13256bfe6563c1a963c4f0289789b2e7857
Diffstat (limited to 'tools/aapt/ZipEntry.h')
-rw-r--r--tools/aapt/ZipEntry.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/aapt/ZipEntry.h b/tools/aapt/ZipEntry.h
index 7f721b46321a..c2f3227cf230 100644
--- a/tools/aapt/ZipEntry.h
+++ b/tools/aapt/ZipEntry.h
@@ -72,6 +72,11 @@ public:
off_t getCompressedLen(void) const { return mCDE.mCompressedSize; }
/*
+ * Return the offset of the local file header.
+ */
+ off_t getLFHOffset(void) const { return mCDE.mLocalHeaderRelOffset; }
+
+ /*
* Return the absolute file offset of the start of the compressed or
* uncompressed data.
*/
@@ -186,11 +191,6 @@ protected:
void setModWhen(time_t when);
/*
- * Return the offset of the local file header.
- */
- off_t getLFHOffset(void) const { return mCDE.mLocalHeaderRelOffset; }
-
- /*
* Set the offset of the local file header, relative to the start of
* the current file.
*/