Class Address


  • public final class Address
    extends java.lang.Object
    An address to some off-heap memory.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long address()  
      static Address createAddress​(long address, long bytes)  
      void free()
      Free the underlying memory.
      void reset​(long address, long bytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createAddress

        public static Address createAddress​(long address,
                                            long bytes)
      • reset

        public void reset​(long address,
                          long bytes)
      • free

        public void free()
        Free the underlying memory.

        The memory must not have been already freed.

        Throws:
        java.lang.IllegalStateException - if the memory has already been freed.
      • address

        public long address()
        Returns:
        a valid (non zero) address.
        Throws:
        java.lang.IllegalStateException - if the address is NULL.