Class DirectByteBufferAccessLoader


  • public final class DirectByteBufferAccessLoader
    extends java.lang.Object
    Provides access to a singleton DirectByteBufferAccess implementation, if one is available.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long getAddress​(java.nio.ByteBuffer buffer)
      Returns the native memory address of the given direct byte buffer, or 0 if the buffer is not direct or if obtaining the address is not supported.
      • Methods inherited from class java.lang.Object

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

      • getAddress

        public static long getAddress​(java.nio.ByteBuffer buffer)
        Returns the native memory address of the given direct byte buffer, or 0 if the buffer is not direct or if obtaining the address is not supported.
        Parameters:
        buffer - the direct byte buffer for which to obtain the address
        Returns:
        the native memory address or 0