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