Package ghidra.app.cmd.data
Class CreateStructureCmd
java.lang.Object
ghidra.app.cmd.data.AbstractCreateStructureCmd
ghidra.app.cmd.data.CreateStructureCmd
Command to create a structure.
-
Constructor Summary
ConstructorDescriptionCreateStructureCmd
(Address address, int length) Constructs a new command for creating a new structure and applying it to the browser.CreateStructureCmd
(Structure newStructure, Address address) Creates a new structure by using the provided structure and attaching it to the program passed in theAbstractCreateStructureCmd.applyTo(Program)
method.CreateStructureCmd
(String name, Address address, int length) Constructs a new command for creating a new structure and applying it to the browser. -
Method Summary
Methods inherited from class ghidra.app.cmd.data.AbstractCreateStructureCmd
applyTo, getName, getNewDataType, getStatusMsg
-
Constructor Details
-
CreateStructureCmd
Constructs a new command for creating a new structure and applying it to the browser. This method simply callsCreateStructureCmd(String, Address, int)
withStructureFactory.DEFAULT_STRUCTURE_NAME
as the name of the structure.- Parameters:
address
- the address at which to create the new structure.length
- the number of undefined bytes to consume in the new structure.
-
CreateStructureCmd
Constructs a new command for creating a new structure and applying it to the browser.- Parameters:
name
- The name of the new structure to create.address
- the address at which to create the new structure.length
- the number of undefined bytes to consume in the new structure.
-
CreateStructureCmd
Creates a new structure by using the provided structure and attaching it to the program passed in theAbstractCreateStructureCmd.applyTo(Program)
method.- Parameters:
newStructure
- The new structure to attach to the program provided in theAbstractCreateStructureCmd.applyTo(Program)
method.address
- the address at which to create the new structure.
-