Package ghidra.pcode.exec
Class BytesPcodeExecutorStatePiece
java.lang.Object
ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece<byte[],byte[],BytesPcodeExecutorStateSpace>
ghidra.pcode.exec.AbstractBytesPcodeExecutorStatePiece<BytesPcodeExecutorStateSpace>
ghidra.pcode.exec.BytesPcodeExecutorStatePiece
- All Implemented Interfaces:
PcodeExecutorStatePiece<byte[],byte[]>
public class BytesPcodeExecutorStatePiece
extends AbstractBytesPcodeExecutorStatePiece<BytesPcodeExecutorStateSpace>
A plain concrete state piece without any backing objects
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.pcode.exec.AbstractBytesPcodeExecutorStatePiece
AbstractBytesPcodeExecutorStatePiece.StateMemBufferNested classes/interfaces inherited from interface ghidra.pcode.exec.PcodeExecutorStatePiece
PcodeExecutorStatePiece.Reason -
Field Summary
Fields inherited from class ghidra.pcode.exec.AbstractBytesPcodeExecutorStatePiece
spaceMapFields inherited from class ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece
addressArithmetic, arithmetic, cb, language, uniqueSpace -
Constructor Summary
ConstructorsChangeConstructorDescriptionBytesPcodeExecutorStatePiece(Language language, PcodeStateCallbacks cb) Construct a state for the given language -
Method Summary
ChangeModifier and TypeMethodDescriptionCreate a deep copy of this stateNEWgetNextEntryInternal(AddressSpace space, long offset) Get the entry at a given offset (without issuing callbacks)protected BytesPcodeExecutorStateSpacenewSpace(AddressSpace space) Methods inherited from class ghidra.pcode.exec.AbstractBytesPcodeExecutorStatePiece
clear, getConcreteBuffer, getForSpace, getFromSpace, getRegisterValuesFromSpace, setInSpaceMethods inherited from class ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece
checkSize, forkMap, getAddressArithmetic, getArithmetic, getFromNullSpace, getLanguage, getRegisterValues, getUnique, getVar, getVar, getVarInternal, getVarInternal, getVarInternal, setUnique, setVar, setVar, setVarInternal, setVarInternal, setVarInternal, streamPiecesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.pcode.exec.PcodeExecutorStatePiece
checkRange, getNextEntryInternal, getVar, getVar, getVar, inspectBigInteger, inspectByte, inspectConcrete, inspectInt, inspectLong, inspectRegisterValue, inspectShort, quantizeOffset, setBigInteger, setByte, setConcrete, setInt, setLong, setRegisterValue, setRegisterValue, setShort, setVar, setVar, setVar
-
Constructor Details
-
BytesPcodeExecutorStatePiece
Construct a state for the given language- Parameters:
language- the language (used for its memory model)cb- callbacks to receive emulation events
-
-
Method Details
-
fork
Description copied from interface:PcodeExecutorStatePieceCreate a deep copy of this state- Parameters:
cb- callbacks to receive emulation events- Returns:
- the copy
-
newSpace
- Specified by:
newSpacein classAbstractBytesPcodeExecutorStatePiece<BytesPcodeExecutorStateSpace>
-
getNextEntryInternal NEW
Description copied from interface:PcodeExecutorStatePieceGet the entry at a given offset (without issuing callbacks)(Optional operation) For pieces where each value is effective over a range, it is common to use an internal map (vice a byte array). When serializing the state, or otherwise seeking a complete examination, it is useful to retrieve those internal entries. This returns the next entry at or after the given offset within the given space. NOTE the returned entry must be for the given space. If no such entry exists, return
null.- Parameters:
space- the address spaceoffset- the offset within the space- Returns:
- the entry or null
-