Package io.netty.internal.tcnative
Class Buffer
- java.lang.Object
-
- io.netty.internal.tcnative.Buffer
-
public final class Buffer extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBuffer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longaddress(java.nio.ByteBuffer buf)Returns the memory address of the ByteBuffer.static longsize(java.nio.ByteBuffer buf)Returns the allocated memory size of the ByteBuffer.
-
-
-
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
-
-