类 Buffer
- java.lang.Object
-
- io.netty.internal.tcnative.Buffer
-
public final class Buffer extends Object
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static longaddress(ByteBuffer buf)Returns the memory address of the ByteBuffer.static longsize(ByteBuffer buf)Returns the allocated memory size of the ByteBuffer.
-
-
-
方法详细资料
-
address
public static long address(ByteBuffer buf)
Returns the memory address of the ByteBuffer.- 参数:
buf- Previously allocated ByteBuffer.- 返回:
- the memory address.
-
size
public static long size(ByteBuffer buf)
Returns the allocated memory size of the ByteBuffer.- 参数:
buf- Previously allocated ByteBuffer.- 返回:
- the allocated memory size
-
-