Package ghidra.app.cmd.memory
Class AddInitializedMemoryBlockCmd
java.lang.Object
ghidra.app.cmd.memory.AbstractAddMemoryBlockCmd
ghidra.app.cmd.memory.AddInitializedMemoryBlockCmd
Command for adding a new memory block initialized with a specific byte.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAddInitializedMemoryBlockCmd(String name, String comment, String source, Address start, long length, boolean read, boolean write, boolean execute, boolean isVolatile, byte initialValue, boolean isOverlay) Create a new AddFileBytesMemoryBlockCmd -
Method Summary
Methods inherited from class ghidra.app.cmd.memory.AbstractAddMemoryBlockCmd
applyTo, getName, getStatusMsg, setArtificial
-
Constructor Details
-
AddInitializedMemoryBlockCmd
public AddInitializedMemoryBlockCmd(String name, String comment, String source, Address start, long length, boolean read, boolean write, boolean execute, boolean isVolatile, byte initialValue, boolean isOverlay) Create a new AddFileBytesMemoryBlockCmd- Parameters:
name- the name for the new memory block.comment- the comment for the blocksource- indicates what is creating the blockstart- the start address for the blocklength- the length of the new blockread- sets the block's read permission flagwrite- sets the block's write permission flagexecute- sets the block's execute permission flagisVolatile- sets the block's volatile flaginitialValue- the bytes value to use throught the new block.isOverlay- if true, the block will be created in a new overlay address space.
-
-
Method Details
-
createMemoryBlock
protected MemoryBlock createMemoryBlock(Memory memory) throws LockException, MemoryConflictException, AddressOverflowException, CancelledException - Specified by:
createMemoryBlockin classAbstractAddMemoryBlockCmd- Throws:
LockExceptionMemoryConflictExceptionAddressOverflowExceptionCancelledException
-