Package com.scurrilous.circe.impl
Class DirectByteBufferAccessLoader
java.lang.Object
com.scurrilous.circe.impl.DirectByteBufferAccessLoader
Provides access to a singleton
DirectByteBufferAccess implementation,
if one is available.-
Method Summary
Modifier and TypeMethodDescriptionstatic longgetAddress(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 Details
-
getAddress
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
-