testBytesToIpAddressWithOffset() — netty Function Reference
Architecture documentation for the testBytesToIpAddressWithOffset() function in NetUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 87c2b511_70a8_efd2_00c6_2a2f690c700f["testBytesToIpAddressWithOffset()"] 545234a8_c93e_9bed_bd0e_6c5542a33149["NetUtilTest"] 87c2b511_70a8_efd2_00c6_2a2f690c700f -->|defined in| 545234a8_c93e_9bed_bd0e_6c5542a33149 b6d20c2f_9eea_f08f_ed23_91c42a8910d2["copyWithOffset()"] 87c2b511_70a8_efd2_00c6_2a2f690c700f -->|calls| b6d20c2f_9eea_f08f_ed23_91c42a8910d2 style 87c2b511_70a8_efd2_00c6_2a2f690c700f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/NetUtilTest.java lines 714–728
@Test
public void testBytesToIpAddressWithOffset() {
for (Entry<String, String> e : validIpV4Hosts.entrySet()) {
byte[] bytes = copyWithOffset(createByteArrayFromIpAddressString(e.getKey()));
assertEquals(e.getKey(), bytesToIpAddress(bytes, 1, bytes.length - 2));
byte[] bytes2 = copyWithOffset(createByteArrayFromIpAddressString(e.getKey()));
assertEquals(e.getKey(), bytesToIpAddress(bytes2, 1, bytes2.length - 2));
}
for (Entry<byte[], String> testEntry : ipv6ToAddressStrings.entrySet()) {
byte[] bytes = copyWithOffset(testEntry.getKey());
assertEquals(testEntry.getValue(), bytesToIpAddress(bytes, 1, bytes.length - 2));
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testBytesToIpAddressWithOffset() do?
testBytesToIpAddressWithOffset() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/NetUtilTest.java.
Where is testBytesToIpAddressWithOffset() defined?
testBytesToIpAddressWithOffset() is defined in common/src/test/java/io/netty/util/NetUtilTest.java at line 714.
What does testBytesToIpAddressWithOffset() call?
testBytesToIpAddressWithOffset() calls 1 function(s): copyWithOffset.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free