summaryrefslogtreecommitdiff
path: root/src/analysis/content-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-09-27 22:50:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-09-27 22:50:50 (GMT)
commit32f7a1126f8ac5a602f60a29de18eb7c5683dcc2 (patch)
treef92189c4d5d8f164c4b666289dd40344d71d39f9 /src/analysis/content-int.h
parentad4ae001fbb37bdccd99ef1e01404ae72c0a1318 (diff)
Read LEB128 values from binary contents.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@579 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/content-int.h')
-rw-r--r--src/analysis/content-int.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/analysis/content-int.h b/src/analysis/content-int.h
index c5b1659..36168be 100644
--- a/src/analysis/content-int.h
+++ b/src/analysis/content-int.h
@@ -62,6 +62,12 @@ typedef bool (* read_u32_fc) (const GBinContent *, vmpa2t *, SourceEndian, uint3
/* Lit un nombre non signé sur huit octets. */
typedef bool (* read_u64_fc) (const GBinContent *, vmpa2t *, SourceEndian, uint64_t *);
+/* Lit un nombre non signé encodé au format LEB128. */
+typedef bool (* read_uleb128_fc) (const GBinContent *, vmpa2t *, uleb128_t *);
+
+/* Lit un nombre signé encodé au format LEB128. */
+typedef bool (* read_leb128_fc) (const GBinContent *, vmpa2t *, leb128_t *);
+
/* Accès à un contenu binaire quelconque (interface) */
struct _GBinContentIface
@@ -85,6 +91,9 @@ struct _GBinContentIface
read_u32_fc read_u32; /* Lecture de 32 bits */
read_u64_fc read_u64; /* Lecture de 64 bits */
+ read_uleb128_fc read_uleb128; /* Lecture d'un LEB non signé */
+ read_leb128_fc read_leb128; /* Lecture d'un LEB signé */
+
};