blob: 5021e1c7b950827dd8a1479116ef082570bdbefc (
plain) (
tree)
|
|
class ZString(object):
''' print a ZString
'''
__slots__ = ('_value')
name = 'strings::ZString'
enabled = True
def __init__(self, value):
self._value = value
def children(self):
yield 'base', self._value['_base']
def to_string(self):
b = self._value['_b']['_ptr']
e = self._value['_e']['_ptr']
d = e - b
return b.lazy_string(length=d)
|