memoryAddress() — netty Function Reference
Architecture documentation for the memoryAddress() function in IoUring.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD abbab6fd_9666_10d0_d829_35d2828676f0["memoryAddress()"] d5cc81ed_1769_add2_2dd0_49927a1b119d["IoUring"] abbab6fd_9666_10d0_d829_35d2828676f0 -->|defined in| d5cc81ed_1769_add2_2dd0_49927a1b119d style abbab6fd_9666_10d0_d829_35d2828676f0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUring.java lines 365–374
static long memoryAddress(ByteBuf buffer) {
if (buffer.hasMemoryAddress()) {
return buffer.memoryAddress();
}
// Use internalNioBuffer to reduce object creation.
// It is important to add the position as the returned ByteBuffer might be shared by multiple ByteBuf
// instances and so has an address that starts before the start of the ByteBuf itself.
ByteBuffer byteBuffer = buffer.internalNioBuffer(0, buffer.capacity());
return Buffer.memoryAddress(byteBuffer) + byteBuffer.position();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does memoryAddress() do?
memoryAddress() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUring.java.
Where is memoryAddress() defined?
memoryAddress() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUring.java at line 365.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free