Package ghidra.program.model.mem
Interface MutableMemBuffer
-
- All Superinterfaces:
MemBuffer
- All Known Implementing Classes:
DumbMemBufferImpl
,MemoryBufferImpl
public interface MutableMemBuffer extends MemBuffer
The MutableMemBuffer interface facilitates repositioning of a MemBuffer object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
advance(int displacement)
Advance the Address pointer.MutableMemBuffer
clone()
Create a cloned copy of this MutableMemBuffervoid
setPosition(Address addr)
Sets the Address to which offset of 0 points to.-
Methods inherited from interface ghidra.program.model.mem.MemBuffer
getAddress, getBigInteger, getByte, getBytes, getInt, getLong, getMemory, getShort, getUnsignedByte, getUnsignedInt, getUnsignedShort, getVarLengthInt, getVarLengthUnsignedInt, isBigEndian, isInitializedMemory
-
-
-
-
Method Detail
-
advance
void advance(int displacement) throws AddressOverflowException
Advance the Address pointer.- Parameters:
displacement
- the amount to adjust the pointer by.- Throws:
AddressOverflowException
- if displacement would cause the buffer position to wrap.
-
setPosition
void setPosition(Address addr)
Sets the Address to which offset of 0 points to.- Parameters:
addr
- the new base Address.
-
clone
MutableMemBuffer clone()
Create a cloned copy of this MutableMemBuffer- Returns:
- new cloned instance of this buffer object
-
-