Interface DirectByteBufferAccess


public interface DirectByteBufferAccess
Service used to provide the native memory address of direct byte buffers.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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

      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