Package ghidra.app.util
Class ByteCopier
java.lang.Object
ghidra.app.util.ByteCopier
Base class that can copy bytes into a Transferable object, and paste
bytes into a program.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic DataFlavor
static final ClipboardType
static DataFlavor
static final ClipboardType
static DataFlavor
static final ClipboardType
protected ProgramLocation
protected Program
protected ProgramSelection
protected static final List
<ClipboardType> static DataFlavor
static final ClipboardType
static DataFlavor
static final ClipboardType
protected PluginTool
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Transferable
copyBytes
(ClipboardType copyType, TaskMonitor monitor) protected Transferable
copyBytes
(AddressSetView addresses, boolean includeSpaces, TaskMonitor monitor) protected String
copyBytesAsString
(AddressSetView addresses, boolean includeSpaces, TaskMonitor monitor) protected String
copyBytesAsString
(AddressSetView addresses, String delimiter, TaskMonitor monitor) static Transferable
Create a Transferable from the given text.protected AddressSetView
protected boolean
pasteBytes
(Transferable pasteData) protected boolean
pasteByteString
(String string)
-
Field Details
-
BYTE_STRING_FLAVOR
-
BYTE_STRING_NO_SPACES_FLAVOR
-
PYTHON_BYTE_STRING_FLAVOR
-
PYTHON_LIST_FLAVOR
-
CPP_BYTE_ARRAY_FLAVOR
-
EMPTY_LIST
-
BYTE_STRING_TYPE
-
BYTE_STRING_NO_SPACE_TYPE
-
PYTHON_BYTE_STRING_TYPE
-
PYTHON_LIST_TYPE
-
CPP_BYTE_ARRAY_TYPE
-
tool
-
currentProgram
-
currentSelection
-
currentLocation
-
-
Constructor Details
-
ByteCopier
protected ByteCopier()
-
-
Method Details
-
getSelectedAddresses
-
copyBytes
protected Transferable copyBytes(AddressSetView addresses, boolean includeSpaces, TaskMonitor monitor) -
copyBytesAsString
protected String copyBytesAsString(AddressSetView addresses, boolean includeSpaces, TaskMonitor monitor) -
copyBytesAsString
-
copyBytes
-
pasteBytes
-
pasteByteString
-
createStringTransferable
Create a Transferable from the given text.- Parameters:
text
- text used to create a Transferable- Returns:
- a Transferable
-