(self, address)
return self._values.from_bytes(lst[offset : offset+values.size_bytes(name)])
Get a value for an array given its pointer address.
Get a value for an array given its pointer address.
Get a value for an array given its pointer address .
def dereference(self, address):
        """Get a value for an array given its pointer address."""
        found_addr = -1
        found_name = None
        for name, data in iteritems(self._array_memory):
            addr = self._memory.var_current() + data[1]
            if addr > found_addr and addr <= address:
                found_addr = addr
                found_name = name
        if not found_name:
            return None
        lst = self._buffers[name]
        offset = address - found_addr
        return self._values.from_bytes(lst[offset : offset+values.size_bytes(name)])
def dereference ( self , address ) : found_addr = - 1 found_name = None for name , data in iteritems ( self . _array_memory ) : addr = self . _memory . var_current ( ) + data [ 1 ] if addr > found_addr and addr <= address : found_addr = addr found_name = name if not found_name : return None lst = self . _buffers [ name ] offset = address - found_addr return self . _values . from_bytes ( lst [ offset : offset + values . size_bytes ( name ) ] )