Package com.scurrilous.circe.impl
Class DirectByteBufferAccessLoader
- java.lang.Object
-
- com.scurrilous.circe.impl.DirectByteBufferAccessLoader
-
public final class DirectByteBufferAccessLoader extends java.lang.Object
Provides access to a singletonDirectByteBufferAccess
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.
-
-
-
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
-
-