From bd85479c0c7aba2d9ec9aeb2e6b2c4bb4b54d3e0 Mon Sep 17 00:00:00 2001 From: Florent Monjalet Date: Fri, 4 Dec 2015 11:05:51 +0100 Subject: MemStruct/Types: example on type manipulations --- example/jitter/types.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'example/jitter/types.py') diff --git a/example/jitter/types.py b/example/jitter/types.py index f4a7ddb4..6c0b59af 100644 --- a/example/jitter/types.py +++ b/example/jitter/types.py @@ -229,7 +229,29 @@ print "See that the original array has been modified:" print repr(data) print -# TODO: type manipulation examples +# Some type manipulation examples, for example let's construct an argv for +# a program: +# Let's say that we have two arguments, +1 for the program name and +1 for the +# final null ptr in argv, the array has 4 elements: +argv_t = Array(Ptr("