summaryrefslogtreecommitdiff
path: root/src/strings/vstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/vstring.py')
-rw-r--r--src/strings/vstring.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/strings/vstring.py b/src/strings/vstring.py
new file mode 100644
index 0000000..39e657b
--- /dev/null
+++ b/src/strings/vstring.py
@@ -0,0 +1,17 @@
+class VString(object):
+ ''' print a VString
+ '''
+ __slots__ = ('_value')
+ name = 'strings::VString'
+ enabled = True
+
+ def __init__(self, value):
+ self._value = value
+
+ def to_string(self):
+ b = self._value['_data']
+ b = b.cast(b.type.target().pointer())
+ n = self._value.type.template_argument(0)
+ s = self._value['_special']
+ d = n - s
+ return b.lazy_string(length=d)