Class Buffer


  • public final class Buffer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Buffer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long address​(java.nio.ByteBuffer buf)
      Returns the memory address of the ByteBuffer.
      static long size​(java.nio.ByteBuffer buf)
      Returns the allocated memory size of the ByteBuffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Buffer

        private Buffer()
    • Method Detail

      • address

        public static long address​(java.nio.ByteBuffer buf)
        Returns the memory address of the ByteBuffer.
        Parameters:
        buf - Previously allocated ByteBuffer.
        Returns:
        the memory address.
      • size

        public static long size​(java.nio.ByteBuffer buf)
        Returns the allocated memory size of the ByteBuffer.
        Parameters:
        buf - Previously allocated ByteBuffer.
        Returns:
        the allocated memory size