Module openj9.dtfj

Class BufferedMemorySource

All Implemented Interfaces:
IMemoryRange, IMemorySource, Comparable<IMemoryRange>

public class BufferedMemorySource extends ProtectedMemoryRange implements IMemorySource
Serves as a ByteBuffer backed memory source.
See Also:
  • com.ibm.j9ddr.tools.ddrinteractive.BufferedMemory
  • Constructor Details

    • BufferedMemorySource

      public BufferedMemorySource(long address, ByteBuffer source)
  • Method Details

    • getUnsignedShort

      public int getUnsignedShort(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getShort

      public short getShort(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getInt

      public int getInt(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getDouble

      public double getDouble(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getLong

      public long getLong(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getByte

      public byte getByte(long address) throws MemoryFault
      Throws:
      MemoryFault
    • getBytes

      public int getBytes(long address, byte[] buffer, int offset, int length) throws MemoryFault
      Description copied from interface: IMemorySource
      Reads data from the memory range
      Specified by:
      getBytes in interface IMemorySource
      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
    • getByteOrder

      public ByteOrder getByteOrder()
    • getName

      public String getName()
      Specified by:
      getName in interface IMemoryRange
      Returns:
      Name of this range (e.g. .text or stack), or null if range is unnamed.
    • getAddressSpaceId

      public int getAddressSpaceId()
      Specified by:
      getAddressSpaceId in interface IMemoryRange
      Returns:
      Address space ID that this range belongs to.