Package vmm

Interface IVmmMemScatterMemory


public interface IVmmMemScatterMemory
Interface to simplify efficient scattered read/write from the underlying API.
Author:
Ulf Frisk - pcileech@frizk.net
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the IVmmMemScatter for new calls to Prepare()/PrepareWrite()
    void
    Close the IVmmMemScatter object and clean up native resources.
    void
    Execute memory read/write operations queued by previous calls to Prepare()/PrepareWrite()
    int
    Retrieve the flags.
    boolean
    Retrieve the object validity.
    void
    prepare(long va, int size)
    Prepare memory for reading.
    void
    prepareWrite(long va, byte[] data)
    Prepare memory for writing.
    byte[]
    read(long va, int size)
    Read scatter data previously prepared by Prepare() after an Execute() call.
  • Method Details

    • isValid

      boolean isValid()
      Retrieve the object validity. Will turn to false after Close().
      Returns:
    • getFlags

      int getFlags()
      Retrieve the flags.
      Returns:
    • prepare

      void prepare(long va, int size)
      Prepare memory for reading. Read memory after a successful call to Execute()
      Parameters:
      va -
      size -
    • prepareWrite

      void prepareWrite(long va, byte[] data)
      Prepare memory for writing. Memory will hopefully be written after a call to Execute()
      Parameters:
      va -
      data -
    • execute

      void execute()
      Execute memory read/write operations queued by previous calls to Prepare()/PrepareWrite()
    • clear

      void clear()
      Clear the IVmmMemScatter for new calls to Prepare()/PrepareWrite()
    • read

      byte[] read(long va, int size)
      Read scatter data previously prepared by Prepare() after an Execute() call.
      Parameters:
      va -
      size -
      Returns:
    • close

      void close()
      Close the IVmmMemScatter object and clean up native resources.