diff options
| author | Florent Monjalet <florent.monjalet@gmail.com> | 2015-11-30 10:06:35 +0100 |
|---|---|---|
| committer | Florent Monjalet <florent.monjalet@gmail.com> | 2016-01-18 14:02:31 +0100 |
| commit | 2b77be65a2810900898582f8a78d7d8a51acfe35 (patch) | |
| tree | f3a8b2d7ead251d241f3a09ee50d56eb2e50ad1b /example/jitter/memstruct.py | |
| parent | 0682ca8d6e82626bb0325d96d19342fbede33e21 (diff) | |
| download | miasm-2b77be65a2810900898582f8a78d7d8a51acfe35.tar.gz miasm-2b77be65a2810900898582f8a78d7d8a51acfe35.zip | |
MemStruct: Array/PinnedArray homogeneity
Array access logic has moved to Array, Pinned(Sized)Array just contains the logic to interface with memory
Diffstat (limited to 'example/jitter/memstruct.py')
| -rw-r--r-- | example/jitter/memstruct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/memstruct.py b/example/jitter/memstruct.py index 6e8e13af..038622ba 100644 --- a/example/jitter/memstruct.py +++ b/example/jitter/memstruct.py @@ -126,7 +126,7 @@ class DataArray(PinnedStruct): # PinnedStruct containing only one field named "val" will be created, so # that Ptr can point to a PinnedStruct instance. Here, # data_array.array.deref.val will allow to access an Array - ("arrayptr", Ptr("<I", PinnedSizedArray, Num("B"), 16)), + ("arrayptr", Ptr("<I", Array(Num("B"), 16))), # Array of 10 uint8 ("array", Array(Num("B"), 16)), ] |