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
FieldsModifier and TypeFieldDescriptionprotected final Addressprotected final PcodeExecutorStatePiece.Reasonprotected BytesPcodeExecutorStateSpace -
Constructor Summary
ConstructorsConstructorDescriptionStateMemBuffer(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.intgetBytes(ByteBuffer buffer, int addressOffset) Get the Memory object actually used by the MemBuffer.booleanReturns true if the underlying bytes are in big-endian order, false if they are little endian.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MemBuffer
getInputStream, getInputStream, getUnsignedByte, getUnsignedInt, getUnsignedShort, getVarLengthInt, getVarLengthUnsignedInt, isInitializedMemoryMethods inherited from interface 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 space (null will cause readUninit and re-fetch on read attempts)reason- the reason this buffer reads from the state, as inPcodeExecutorStatePiece.getVar(Varnode, Reason)
-
-
Method Details
-
getAddress
Description copied from interface:MemBufferGet the Address which corresponds to the offset 0.- Specified by:
getAddressin interfaceMemBuffer- Returns:
- the current address of offset 0.
-
getMemory
-
isBigEndian
public boolean isBigEndian()Description copied from interface:MemBufferReturns true if the underlying bytes are in big-endian order, false if they are little endian.- Specified by:
isBigEndianin interfaceMemBuffer- Returns:
- true if the underlying bytes are in big-endian order, false if they are little endian.
-
getBytes
- Specified by:
getBytesin interfaceMemBufferMixin
-