Package ghidra.program.model.pcode
Class BlockCopy
java.lang.Object
ghidra.program.model.pcode.PcodeBlock
ghidra.program.model.pcode.BlockCopy
Placeholder for a basic block (BlockBasic) within a structured
control-flow graph. It originally mirrors the in and out edges of
the basic block, but edges may be modified during the structuring process.
This copy holds a reference to the actual basic block
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.program.model.pcode.PcodeBlock
PcodeBlock.BlockEdge -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeHeader(Decoder decoder) protected voidencodeHeader(Encoder encoder) Encode basic attributes to stream.intgetRef()getStart()getStop()protected voidUsed (by BlockGraph.transferObjectRef) to reset the internal Object and AddressMethods inherited from class ghidra.program.model.pcode.PcodeBlock
addInEdge, calcDepth, decode, decodeBody, decodeEdges, decodeNextInEdge, decodeNextInEdge, encode, encodeBody, encodeEdges, getFalseOut, getFrontLeaf, getIn, getIndex, getInRevIndex, getInSize, getOut, getOutRevIndex, getOutSize, getParent, getTrueOut, getType, nameToType, setIndex, toString, typeToName
-
Constructor Details
-
BlockCopy
public BlockCopy() -
BlockCopy
-
-
Method Details
-
getStart
- Overrides:
getStartin classPcodeBlock- Returns:
- the first Address covered by this block
-
getStop
- Overrides:
getStopin classPcodeBlock- Returns:
- the last Address covered by this block
-
getRef
- Returns:
- the underlying basic block Object
-
set
Used (by BlockGraph.transferObjectRef) to reset the internal Object and Address- Parameters:
r- is the internal Objectaddr- is the Address
-
getAltIndex
public int getAltIndex()- Returns:
- the alternative index, used as an id for the original basic block Object
-
encodeHeader
Description copied from class:PcodeBlockEncode basic attributes to stream. Assume this block's element is already started.- Overrides:
encodeHeaderin classPcodeBlock- Parameters:
encoder- is the stream encoder- Throws:
IOException- for errors writing to the underlying stream
-
decodeHeader
- Overrides:
decodeHeaderin classPcodeBlock- Throws:
DecoderException
-