summaryrefslogtreecommitdiff
path: root/src/strings/fstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/fstring.py')
-rw-r--r--src/strings/fstring.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/strings/fstring.py b/src/strings/fstring.py
new file mode 100644
index 0000000..5418300
--- /dev/null
+++ b/src/strings/fstring.py
@@ -0,0 +1,19 @@
+class FString(object):
+ ''' print a FString
+ '''
+ __slots__ = ('_value')
+ name = 'strings::FString'
+ enabled = True
+
+ def __init__(self, value):
+ self._value = value
+
+ def children(self):
+ yield 'count', self._value['owned'].dereference()['count']
+
+ def to_string(self):
+ r = self._value['owned'].dereference()
+ b = r['body']
+ b = b.cast(b.type.target().pointer())
+ d = r['size']
+ return b.lazy_string(length=d)