Package io.netty.internal.tcnative
Class Buffer
java.lang.Object
io.netty.internal.tcnative.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
address
(ByteBuffer buf) Returns the memory address of the ByteBuffer.static long
size
(ByteBuffer buf) Returns the allocated memory size of the ByteBuffer.
-
Constructor Details
-
Buffer
private Buffer()
-
-
Method Details
-
address
Returns the memory address of the ByteBuffer.- Parameters:
buf
- Previously allocated ByteBuffer.- Returns:
- the memory address.
-
size
Returns the allocated memory size of the ByteBuffer.- Parameters:
buf
- Previously allocated ByteBuffer.- Returns:
- the allocated memory size
-