summaryrefslogblamecommitdiff
path: root/src/strings/fstring.py
blob: 5418300a56546c725c58f7ad843704fcdeb78e04 (plain) (tree)


















                                                                  
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)