Interface MemoryConflictHandler


  • public interface MemoryConflictHandler
    An interface for handling memory block conflicts that are encountered during an import.
    • Field Detail

      • ALWAYS_OVERWRITE

        static final MemoryConflictHandler ALWAYS_OVERWRITE
        An implementation that always overwrites conflicts.
      • NEVER_OVERWRITE

        static final MemoryConflictHandler NEVER_OVERWRITE
        An implementation that never overwrites conflicts.
    • Method Detail

      • allowOverwrite

        boolean allowOverwrite​(Address start,
                               Address end)
        This method is invoked when a memory block conflict is detected. The start and end addresses of the conflict are passed into the method. To overwrite the conflict, return true. Otherwise return false to NOT overwrite the conflict.
        Parameters:
        start - the start address of the conflict
        end - the end address of the conflict
        Returns:
        true to overwrite the conflict