(self)
return None
reads pointer from data
reads pointer from data
reads pointer from data
def read_pointer(self):
        """ reads pointer from data
        """

        if self.data is None:
            return None

        # todo: little/big endian
        ptr_size = self.app.dwarf.pointer_size
        start = self.caret.position
        end = self.caret.position + ptr_size
        ptr = int.from_bytes(self.data[start:end], sys.byteorder)
        is_valid_ptr = self.app.dwarf.dwarf_api('isValidPointer', ptr)
        if ptr > 0 and is_valid_ptr:
            return ptr

        return None
def read_pointer ( self ) : if self . data is None : return None # todo: little/big endian ptr_size = self . app . dwarf . pointer_size start = self . caret . position end = self . caret . position + ptr_size ptr = int . from_bytes ( self . data [ start : end ] , sys . byteorder ) is_valid_ptr = self . app . dwarf . dwarf_api ( 'isValidPointer' , ptr ) if ptr > 0 and is_valid_ptr : return ptr return None