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 TypeMethodDescriptionvoidclear()Clear the IVmmMemScatter for new calls to Prepare()/PrepareWrite()voidclose()Close the IVmmMemScatter object and clean up native resources.voidexecute()Execute memory read/write operations queued by previous calls to Prepare()/PrepareWrite()intgetFlags()Retrieve the flags.booleanisValid()Retrieve the object validity.voidprepare(long va, int size) Prepare memory for reading.voidprepareWrite(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.
-