blob: 39e657b0a0f697591240c4cca1192200491d0bd1 (
plain) (
tree)
|
|
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)
|