Package ghidra.pcode.exec
Class AbstractBytesPcodeExecutorStatePiece.StateMemBuffer
java.lang.Object
ghidra.pcode.exec.AbstractBytesPcodeExecutorStatePiece.StateMemBuffer
- All Implemented Interfaces:
MemBuffer
,MemBufferMixin
- Enclosing class:
AbstractBytesPcodeExecutorStatePiece<S extends BytesPcodeExecutorStateSpace<?>>
protected class AbstractBytesPcodeExecutorStatePiece.StateMemBuffer
extends Object
implements MemBufferMixin
A memory buffer bound to a given space in this state
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Address
protected final PcodeExecutorStatePiece.Reason
protected final BytesPcodeExecutorStateSpace
<?> -
Constructor Summary
ConstructorDescriptionStateMemBuffer
(Address address, BytesPcodeExecutorStateSpace<?> source, PcodeExecutorStatePiece.Reason reason) Construct a buffer bound to the given space, at the given address -
Method Summary
Modifier and TypeMethodDescriptionGet the Address which corresponds to the offset 0.int
getBytes
(ByteBuffer buffer, int addressOffset) Get the Memory object actually used by the MemBuffer.boolean
Returns true if the underlying bytes are in big-endian order, false if they are little endian.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.program.model.mem.MemBuffer
getInputStream, getInputStream, getUnsignedByte, getUnsignedInt, getUnsignedShort, getVarLengthInt, getVarLengthUnsignedInt, isInitializedMemory
Methods inherited from interface ghidra.program.model.mem.MemBufferMixin
getBigInteger, getByte, getBytes, getBytesInFull, getInt, getLong, getShort
-
Field Details
-
address
-
source
-
reason
-
-
Constructor Details
-
StateMemBuffer
public StateMemBuffer(Address address, BytesPcodeExecutorStateSpace<?> source, PcodeExecutorStatePiece.Reason reason) Construct a buffer bound to the given space, at the given address- Parameters:
address
- the addresssource
- the spacereason
- the reason this buffer reads from the state, as inPcodeExecutorStatePiece.getVar(Varnode, Reason)
-
-
Method Details
-
getAddress
Description copied from interface:MemBuffer
Get the Address which corresponds to the offset 0.- Specified by:
getAddress
in interfaceMemBuffer
- Returns:
- the current address of offset 0.
-
getMemory
Description copied from interface:MemBuffer
Get the Memory object actually used by the MemBuffer. -
isBigEndian
public boolean isBigEndian()Description copied from interface:MemBuffer
Returns true if the underlying bytes are in big-endian order, false if they are little endian.- Specified by:
isBigEndian
in interfaceMemBuffer
- Returns:
- true if the underlying bytes are in big-endian order, false if they are little endian.
-
getBytes
- Specified by:
getBytes
in interfaceMemBufferMixin
-