Package ghidra.app.cmd.data
Class CreateStringCmd
java.lang.Object
ghidra.app.cmd.data.CreateStringCmd
- All Implemented Interfaces:
Command
Command to create a String and optionally label it.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateStringCmd
(Address addr) Constructs a new command for creating strings.CreateStringCmd
(Address addr, int length) Constructs a new command for creating strings.CreateStringCmd
(Address addr, int length, boolean unicode) Constructs a new command for creating strings.CreateStringCmd
(Address addr, int length, boolean unicode, DataUtilities.ClearDataMode clearMode) Constructs a new command for creating strings.CreateStringCmd
(Address addr, AbstractStringDataType stringDataType, int length, DataUtilities.ClearDataMode clearMode) -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Constructor Details
-
CreateStringCmd
public CreateStringCmd(Address addr, AbstractStringDataType stringDataType, int length, DataUtilities.ClearDataMode clearMode) -
CreateStringCmd
public CreateStringCmd(Address addr, int length, boolean unicode, DataUtilities.ClearDataMode clearMode) Constructs a new command for creating strings. -
CreateStringCmd
Constructs a new command for creating strings. -
CreateStringCmd
Constructs a new command for creating strings. -
CreateStringCmd
Constructs a new command for creating strings.
-
-
Method Details
-
applyTo
Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:Command
Returns the name of this command.
-