Module openj9.dtfj

Interface IMemorySource

All Superinterfaces:
Comparable<IMemoryRange>, IMemoryRange
All Known Implementing Classes:
BufferedMemorySource, DetailedDumpMemorySource, DumpMemorySource, ELFMemorySource, UnbackedMemorySource

public interface IMemorySource extends IMemoryRange
A memory range that holds its data.
  • Method Details

    • getBytes

      int getBytes(long address, byte[] buffer, int offset, int length) throws MemoryFault
      Reads data from the memory range
      Parameters:
      address - Starting address
      buffer - Buffer to read into
      offset - Offset in buffer to write to
      length - Number of bytes to read
      Returns:
      Bytes read
      Throws:
      MemoryFault
    • isBacked

      boolean isBacked()
      Specified by:
      isBacked in interface IMemoryRange
      Returns:
      True if this memory range is backed with data (such that getBytes() won't always throw MemoryFault).