Class DirectByteBufferAccessLoader

java.lang.Object
com.scurrilous.circe.impl.DirectByteBufferAccessLoader

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

    • getAddress

      public static long getAddress(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