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 TypeMethodDescriptionvoid
clear()
Clear the IVmmMemScatter for new calls to Prepare()/PrepareWrite()void
close()
Close the IVmmMemScatter object and clean up native resources.void
execute()
Execute memory read/write operations queued by previous calls to Prepare()/PrepareWrite()int
getFlags()
Retrieve the flags.boolean
isValid()
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.
-