Class BytesPcodeExecutorStatePiece

All Implemented Interfaces:
PcodeExecutorStatePiece<byte[],byte[]>

public class BytesPcodeExecutorStatePiece extends AbstractBytesPcodeExecutorStatePiece<BytesPcodeExecutorStateSpace>
A plain concrete state piece without any backing objects
  • Constructor Details

    • BytesPcodeExecutorStatePiece

      public BytesPcodeExecutorStatePiece(Language language, PcodeStateCallbacks cb)
      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: PcodeExecutorStatePiece
      Create a deep copy of this state
      Parameters:
      cb - callbacks to receive emulation events
      Returns:
      the copy
    • newSpace

      protected BytesPcodeExecutorStateSpace newSpace(AddressSpace space)
      Specified by:
      newSpace in class AbstractBytesPcodeExecutorStatePiece<BytesPcodeExecutorStateSpace>
    • getNextEntryInternal NEW

      public Map.Entry<Long,byte[]> getNextEntryInternal(AddressSpace space, long offset)
      Description copied from interface: PcodeExecutorStatePiece
      Get 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 space
      offset - the offset within the space
      Returns:
      the entry or null