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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadvance(int displacement)Advance the Address pointer.MutableMemBufferclone()Create a cloned copy of this MutableMemBuffervoidsetPosition(Address addr)Sets the Address to which offset of 0 points to.- 
Methods inherited from interface ghidra.program.model.mem.MemBuffergetAddress, getBigInteger, getByte, getBytes, getInt, getLong, getMemory, getShort, getUnsignedByte, getUnsignedInt, getUnsignedShort, getVarLengthInt, getVarLengthUnsignedInt, isBigEndian, isInitializedMemory
 
- 
 
- 
- 
- 
Method Detail- 
advancevoid advance(int displacement) throws AddressOverflowExceptionAdvance the Address pointer.- Parameters:
- displacement- the amount to adjust the pointer by.
- Throws:
- AddressOverflowException- if displacement would cause the buffer position to wrap.
 
 - 
setPositionvoid setPosition(Address addr) Sets the Address to which offset of 0 points to.- Parameters:
- addr- the new base Address.
 
 - 
cloneMutableMemBuffer clone() Create a cloned copy of this MutableMemBuffer- Returns:
- new cloned instance of this buffer object
 
 
- 
 
-