Buffer (Apache Tomcat 11.0.5 API Documentation)
Description: declaration: package: org.apache.tomcat.jni, class: Buffer

# Class Buffer

java.lang.Object
org.apache.tomcat.jni.Buffer

public class Buffer extends Object
Provides utilities related to the use of directly allocated `ByteBuffer` instances with native code.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Buffer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static long`
  `address(ByteBuffer buf)`
  Returns the memory address of the ByteBuffer.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Buffer

    public 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