about summary refs log tree commit diff stats
path: root/miasm2/analysis/mem.py
diff options
context:
space:
mode:
authorFlorent Monjalet <florent.monjalet@gmail.com>2015-11-26 14:29:36 +0100
committerFlorent Monjalet <florent.monjalet@gmail.com>2016-01-18 14:02:31 +0100
commit392a8eea91d6114c0f3480118354bf7f95ed9096 (patch)
tree2fff684f5b542ff8833ee160bfeb3fde33291698 /miasm2/analysis/mem.py
parent955595f40dfa7a8bb246050dd3bbb5a4ecb67f0e (diff)
downloadmiasm-392a8eea91d6114c0f3480118354bf7f95ed9096.tar.gz
miasm-392a8eea91d6114c0f3480118354bf7f95ed9096.zip
MemStruct: Struct -> RawStruct
Diffstat (limited to 'miasm2/analysis/mem.py')
-rw-r--r--miasm2/analysis/mem.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/analysis/mem.py b/miasm2/analysis/mem.py
index dbfd335a..ef41366b 100644
--- a/miasm2/analysis/mem.py
+++ b/miasm2/analysis/mem.py
@@ -41,7 +41,7 @@ MemStruct and define a list of (<field_name>, <field_definition>). Available
 MemField classes are:
 
     - Num: for number (float or int) handling
-    - Struct: abstraction over a simple struct pack/unpack
+    - RawStruct: abstraction over a simple struct pack/unpack
     - Ptr: a pointer to another MemStruct instance
     - Inline: include another MemStruct as a field (equivalent to having a
       struct field into another struct in C)
@@ -240,7 +240,7 @@ class MemField(object):
         return not self == other
 
 
-class Struct(MemField):
+class RawStruct(MemField):
     """Dumb struct.pack/unpack field. Mainly used to factorize code.
 
     Value is a tuple corresponding to the struct @fmt passed to the constructor.
@@ -268,7 +268,7 @@ class Struct(MemField):
         return hash((self.__class__, self._fmt))
 
 
-class Num(Struct):
+class Num(RawStruct):
     """Represents a number (integer or float). The number is encoded with
     a struct-style format which must represent only one value.