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 Details

    • 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

      Create a cloned copy of this MutableMemBuffer
      Returns:
      new cloned instance of this buffer object