Package com.scurrilous.circe.impl
Interface DirectByteBufferAccess
public interface DirectByteBufferAccess
Service used to provide the native memory address of direct byte buffers.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetAddress(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
-