Class Buffer

java.lang.Object
io.netty.internal.tcnative.Buffer

public final class Buffer extends Object
  • Constructor Details

    • Buffer

      private Buffer()
  • Method Details

    • address

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

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