Class MemoryUtils


  • @Internal
    public class MemoryUtils
    extends Object
    Utility class for memory operations.
    • Field Detail

      • UNSAFE

        public static final sun.misc.Unsafe UNSAFE
        The "unsafe", which can be used to perform native memory accesses.
      • NATIVE_BYTE_ORDER

        public static final ByteOrder NATIVE_BYTE_ORDER
        The native byte order of the platform on which the system currently runs.
    • Method Detail

      • getByteBufferAddress

        public static long getByteBufferAddress​(ByteBuffer buffer)
        Get native memory address wrapped by the given ByteBuffer.
        Parameters:
        buffer - ByteBuffer which wraps the native memory address to get
        Returns:
        native memory address wrapped by the given ByteBuffer