Package ghidra.program.model.mem
Interface MutableMemBuffer
- All Superinterfaces:
MemBuffer
- All Known Implementing Classes:
DumbMemBufferImpl
,MemoryBufferImpl
The MutableMemBuffer interface facilitates repositioning of a MemBuffer object.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(int displacement) Advance the Address pointer.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, getInputStream, getInputStream, getInt, getLong, getMemory, getShort, getUnsignedByte, getUnsignedInt, getUnsignedShort, getVarLengthInt, getVarLengthUnsignedInt, isBigEndian, isInitializedMemory
-
Method Details
-
advance
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
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
-