addr() — netty Function Reference
Architecture documentation for the addr() function in UnsafeDirectSwappedByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8ddd9c65_731d_cc06_2ca2_22037363d042["addr()"] f2671afe_7805_5e15_8a98_b2a46a7c2f94["UnsafeDirectSwappedByteBuf"] 8ddd9c65_731d_cc06_2ca2_22037363d042 -->|defined in| f2671afe_7805_5e15_8a98_b2a46a7c2f94 578c8c50_4bc4_3b56_3cce_509987da2420["_getLong()"] 578c8c50_4bc4_3b56_3cce_509987da2420 -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 3614900a_0ea6_ac58_251f_84176c7421c4["_getInt()"] 3614900a_0ea6_ac58_251f_84176c7421c4 -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 b505d4d0_6bdc_7d7b_cf29_4e912ecde1b2["_getShort()"] b505d4d0_6bdc_7d7b_cf29_4e912ecde1b2 -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 bc57c20e_e8a3_84cf_c272_c8810a8bf3db["_setShort()"] bc57c20e_e8a3_84cf_c272_c8810a8bf3db -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 2dbe48e4_c67a_f2e0_4b35_8851d1687ad1["_setInt()"] 2dbe48e4_c67a_f2e0_4b35_8851d1687ad1 -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 5b79372d_5904_b347_44f0_78d11820442e["_setLong()"] 5b79372d_5904_b347_44f0_78d11820442e -->|calls| 8ddd9c65_731d_cc06_2ca2_22037363d042 style 8ddd9c65_731d_cc06_2ca2_22037363d042 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/UnsafeDirectSwappedByteBuf.java lines 30–36
private static long addr(AbstractByteBuf wrapped, int index) {
// We need to call wrapped.memoryAddress() everytime and NOT cache it as it may change if the buffer expand.
// See:
// - https://github.com/netty/netty/issues/2587
// - https://github.com/netty/netty/issues/2580
return wrapped.memoryAddress() + index;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does addr() do?
addr() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnsafeDirectSwappedByteBuf.java.
Where is addr() defined?
addr() is defined in buffer/src/main/java/io/netty/buffer/UnsafeDirectSwappedByteBuf.java at line 30.
What calls addr()?
addr() is called by 6 function(s): _getInt, _getLong, _getShort, _setInt, _setLong, _setShort.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free