init() — netty Function Reference
Architecture documentation for the init() function in NativeDatagramPacketArray.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ff253642_2eb0_17f7_3ecc_98192434783f["init()"] 9f6481a1_7f1c_9f54_7a7a_c374e172d810["NativeDatagramPacket"] ff253642_2eb0_17f7_3ecc_98192434783f -->|defined in| 9f6481a1_7f1c_9f54_7a7a_c374e172d810 3f127df8_c158_c9df_275e_c99e90486d95["add0()"] 3f127df8_c158_c9df_275e_c99e90486d95 -->|calls| ff253642_2eb0_17f7_3ecc_98192434783f style ff253642_2eb0_17f7_3ecc_98192434783f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/NativeDatagramPacketArray.java lines 185–210
private void init(long memoryAddress, int count, int segmentSize, InetSocketAddress recipient) {
this.memoryAddress = memoryAddress;
this.count = count;
this.segmentSize = segmentSize;
this.senderScopeId = 0;
this.senderPort = -1;
this.senderAddrLen = 0;
if (recipient == null) {
this.recipientScopeId = 0;
this.recipientPort = 0;
this.recipientAddrLen = 0;
} else {
InetAddress address = recipient.getAddress();
if (address instanceof Inet6Address) {
System.arraycopy(address.getAddress(), 0, recipientAddr, 0, recipientAddr.length);
recipientScopeId = ((Inet6Address) address).getScopeId();
} else {
copyIpv4MappedIpv6Address(address.getAddress(), recipientAddr);
recipientScopeId = 0;
}
recipientAddrLen = recipientAddr.length;
recipientPort = recipient.getPort();
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does init() do?
init() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/NativeDatagramPacketArray.java.
Where is init() defined?
init() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/NativeDatagramPacketArray.java at line 185.
What calls init()?
init() is called by 1 function(s): add0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free