From 97df898839f20f3110e88f4ad3abffcf775508f2 Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Tue, 11 Aug 2009 08:13:35 +0000 Subject: [PATCH] Implemented getFileSize(), getDataSize() and getDataOffset() git-svn-id: https://smali.googlecode.com/svn/trunk@396 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- .../src/main/java/org/jf/dexlib/DexFile.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/dexlib/src/main/java/org/jf/dexlib/DexFile.java b/dexlib/src/main/java/org/jf/dexlib/DexFile.java index 6a036691..6086b1cc 100644 --- a/dexlib/src/main/java/org/jf/dexlib/DexFile.java +++ b/dexlib/src/main/java/org/jf/dexlib/DexFile.java @@ -384,19 +384,25 @@ public class DexFile return this.inplace; } + /** + * @return the size of the file, in bytes + */ public int getFileSize() { - //TODO: implement this - return 0; + return fileSize; } + /** + * @return the size of the data section, in bytes + */ public int getDataSize() { - //TODO: implement this - return 0; + return dataSize; } + /** + * @return the offset where the data section begins + */ public int getDataOffset() { - //TODO: implement this - return 0; + return dataOffset; } /**