summaryrefslogtreecommitdiff
path: root/src/format/dex/dex-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-12-10 23:41:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-12-10 23:41:09 (GMT)
commit79ec14ee5c1cea5c4ad345a7047b47b9205fc29e (patch)
tree0596bb4b7910964ef96c3705c80ec5dba677eeb0 /src/format/dex/dex-int.h
parent42420cfa1f406a5f0a9f062b258ece72098635b5 (diff)
Took care of Dalvik switch cases.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@299 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/dex/dex-int.h')
-rwxr-xr-xsrc/format/dex/dex-int.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/format/dex/dex-int.h b/src/format/dex/dex-int.h
index 6a153c1..55a48b5 100755
--- a/src/format/dex/dex-int.h
+++ b/src/format/dex/dex-int.h
@@ -68,6 +68,13 @@ size_t g_dex_format_count_classes(const GDexFormat *);
GDexClass *g_dex_format_get_class(const GDexFormat *, size_t);
+/* -------------------------- DESCRIPTION DU FORMAT DALVIK -------------------------- */
+
+
+/* Procède à la lecture d'une en-tête de programme DEX. */
+bool read_dex_header(const GDexFormat *, off_t *, dex_header *);
+
+
/* ------------------------ ELEMENTS DE TABLE DES CONSTANTES ------------------------ */
@@ -147,14 +154,26 @@ void reset_dex_code_item(code_item *);
+/* ------------------------------- AIGUILLAGES DIVERS ------------------------------- */
-/* Procède à la lecture d'une en-tête de programme DEX. */
-bool read_dex_header(const GDexFormat *, off_t *, dex_header *);
+/* Procède à la lecture d'un contenu d'aiguillage compact. */
+bool read_dex_packed_switch(const GDexFormat *, off_t *, packed_switch *);
+
+/* Supprime tous les éléments chargés en mémoire à la lecture. */
+void reset_dex_packed_switch(packed_switch *);
+/* Procède à la lecture d'un contenu d'aiguillage dispersé. */
+bool read_dex_sparse_switch(const GDexFormat *, off_t *, sparse_switch *);
+/* Supprime tous les éléments chargés en mémoire à la lecture. */
+void reset_dex_sparse_switch(sparse_switch *);
+/* Procède à la lecture d'un contenu d'aiguillage Dex interne. */
+bool read_dex_switch(const GDexFormat *, off_t *, dex_switch *);
+/* Supprime tous les éléments chargés en mémoire à la lecture. */
+void reset_dex_switch(dex_switch *);