Package ghidra.app.cmd.data
Class CreateStringCmd
java.lang.Object
ghidra.app.cmd.data.CreateStringCmd
Command to create a String and optionally label it.
-
Constructor Summary
ConstructorDescriptionCreateStringCmd
(Address addr) Construct command for creating null-terminated ASCII string Data.CreateStringCmd
(Address addr, int length) Construct command for creating fixed-length ASCII string Data.CreateStringCmd
(Address addr, int length, boolean unicode) Construct command for creating fixed-length ASCII or Unicode string Data.CreateStringCmd
(Address addr, int length, boolean unicode, DataUtilities.ClearDataMode clearMode) Construct command for creating fixed-length ASCII or Unicode string DataCreateStringCmd
(Address addr, AbstractStringDataType stringDataType, int length, DataUtilities.ClearDataMode clearMode) Construct command for creating string Data -
Method Summary
-
Constructor Details
-
CreateStringCmd
public CreateStringCmd(Address addr, AbstractStringDataType stringDataType, int length, DataUtilities.ClearDataMode clearMode) Construct command for creating string Data- Parameters:
addr
- address where string should be created.stringDataType
- string datatypelength
- maximum string length (treatment is specific to specified datatype).clearMode
-DataUtilities.ClearDataMode
which indicates how existing Data conflicts should be handled.
-
CreateStringCmd
public CreateStringCmd(Address addr, int length, boolean unicode, DataUtilities.ClearDataMode clearMode) Construct command for creating fixed-length ASCII or Unicode string Data- Parameters:
addr
- address where string should be created.length
- byte-length of stringunicode
- if true Unicode string will be created, else ASCIIclearMode
-DataUtilities.ClearDataMode
which indicates how existing Data conflicts should be handled.
-
CreateStringCmd
Construct command for creating fixed-length ASCII or Unicode string Data. Current Data at addr will be cleared if it already exists.- Parameters:
addr
- address where string should be created.length
- byte-length of stringunicode
- if true Unicode string will be created, else ASCII
-
CreateStringCmd
Construct command for creating null-terminated ASCII string Data. Current Data at addr will be cleared if it already exists.- Parameters:
addr
- address where string should be created.
-
CreateStringCmd
Construct command for creating fixed-length ASCII string Data. Current Data at addr will be cleared if it already exists.- Parameters:
addr
- address where string should be created.length
- byte-length of string
-
-
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<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command.
-