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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decodeHeader
(Decoder decoder) protected void
encodeHeader
(Encoder encoder) Encode basic attributes to stream.int
getRef()
getStart()
getStop()
protected void
Used (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:
getStart
in classPcodeBlock
- Returns:
- the first Address covered by this block
-
getStop
- Overrides:
getStop
in 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:PcodeBlock
Encode basic attributes to stream. Assume this block's element is already started.- Overrides:
encodeHeader
in classPcodeBlock
- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for errors writing to the underlying stream
-
decodeHeader
- Overrides:
decodeHeader
in classPcodeBlock
- Throws:
DecoderException
-