Record Class PcodeEmulationCallbacks.Wrapper<T>
- Type Parameters:
T- the emulator's domain- Record Components:
thread- the thread to include in forwarded callbackscb- the emulator callbacks to receive forwarded calls
- All Implemented Interfaces:
PcodeStateCallbacks
- Enclosing interface:
PcodeEmulationCallbacks<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.pcode.exec.PcodeStateCallbacks
PcodeStateCallbacks.NoPcodeStateCallbacks -
Field Summary
Fields inherited from interface ghidra.pcode.exec.PcodeStateCallbacks
NONE -
Constructor Summary
ConstructorsConstructorDescriptionWrapper(PcodeThread<T> thread, PcodeEmulationCallbacks<T> cb) Creates an instance of aWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncb()Returns the value of thecbrecord component.<A,U> void dataWritten(PcodeExecutorStatePiece<A, U> piece, Address address, int length, U value) Data was written into the given state piece (concrete addressing).<A,U> void dataWritten(PcodeExecutorStatePiece<A, U> piece, AddressSpace space, A offset, int length, U value) Data was written into the given state piece (abstract addressing.)final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<A,U> AddressSetView readUninitialized(PcodeExecutorStatePiece<A, U> piece, AddressSetView set) The executor is preparing to read from uninitialized portions of the given state piece (concrete addressing).<A,U> int readUninitialized(PcodeExecutorStatePiece<A, U> piece, AddressSpace space, A offset, int length) The executor is preparing to read from uninitialized portions of the given state piece (abstract addressing).thread()Returns the value of thethreadrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.pcode.exec.PcodeStateCallbacks
delegateDataWritten, delegateDataWritten, delegateReadUninitialized, delegateReadUninitialized
-
Constructor Details
-
Method Details
-
dataWritten
public <A,U> void dataWritten(PcodeExecutorStatePiece<A, U> piece, Address address, int length, U value) Description copied from interface:PcodeStateCallbacksData was written into the given state piece (concrete addressing).- Specified by:
dataWrittenin interfacePcodeStateCallbacks- Type Parameters:
A- the piece's address domainU- the piece's value domain- Parameters:
piece- the state pieceaddress- the address of the operandlength- the size of the operandvalue- the value written
-
dataWritten
public <A,U> void dataWritten(PcodeExecutorStatePiece<A, U> piece, AddressSpace space, A offset, int length, U value) Description copied from interface:PcodeStateCallbacksData was written into the given state piece (abstract addressing.)- Specified by:
dataWrittenin interfacePcodeStateCallbacks- Type Parameters:
A- the piece's address domainU- the piece's value domain- Parameters:
piece- the state piecespace- the address space of the operandoffset- the offset of the operandlength- the size of the operandvalue- the value written
-
readUninitialized
public <A,U> int readUninitialized(PcodeExecutorStatePiece<A, U> piece, AddressSpace space, A offset, int length) Description copied from interface:PcodeStateCallbacksThe executor is preparing to read from uninitialized portions of the given state piece (abstract addressing).This callback provides an opportunity for something to initialize the required portion lazily. In most cases, this should either return 0 indicating the requested portion remains uninitialized, or the full
lengthindicating the full requested portion is now initialized. If, for some reason, the requested portion could only be partially initialized, this can return a smaller length. Partial initializations are only recognized from the starting offset. Other parts could be initialized; however, there is no mechanism for communicating that result to the executor.- Specified by:
readUninitializedin interfacePcodeStateCallbacks- Type Parameters:
A- the piece's address domainU- the piece's value domain- Parameters:
piece- the state piecespace- the address space of the operandoffset- the offset of the operandlength- the size of the operand- Returns:
- the length of the operand just initialized, typically 0 or
length
-
readUninitialized
public <A,U> AddressSetView readUninitialized(PcodeExecutorStatePiece<A, U> piece, AddressSetView set) Description copied from interface:PcodeStateCallbacksThe executor is preparing to read from uninitialized portions of the given state piece (concrete addressing).This callback provides an opportunity for something to initialize the required portion lazily. This method must return the address set that remains uninitialized. If no part of the required portion was initialized, this should return
setidentically, so that the caller can quickly recognize that nothing has changed. Otherwise, this should copyset, remove those parts it was able to initialize, and return the copy. DO NOT modify the givenset.- Specified by:
readUninitializedin interfacePcodeStateCallbacks- Type Parameters:
A- the piece's address domainU- the piece's value domain- Parameters:
piece- the state pieceset- the uninitialized portion required- Returns:
- the addresses in
setthat remain uninitialized
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
thread
Returns the value of thethreadrecord component.- Returns:
- the value of the
threadrecord component
-
cb
Returns the value of thecbrecord component.- Returns:
- the value of the
cbrecord component
-