testdecompressNestedCompressionPointer() — netty Function Reference
Architecture documentation for the testdecompressNestedCompressionPointer() function in DefaultDnsRecordDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD be0ce679_536c_ac51_53a9_3b428e8fb0e0["testdecompressNestedCompressionPointer()"] 818a470d_46ea_7cd1_0f64_8b71e08f0a90["DefaultDnsRecordDecoderTest"] be0ce679_536c_ac51_53a9_3b428e8fb0e0 -->|defined in| 818a470d_46ea_7cd1_0f64_8b71e08f0a90 style be0ce679_536c_ac51_53a9_3b428e8fb0e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-dns/src/test/java/io/netty/handler/codec/dns/DefaultDnsRecordDecoderTest.java lines 113–134
@Test
public void testdecompressNestedCompressionPointer() {
byte[] nestedCompressionPointer = {
6, 'g', 'i', 't', 'h', 'u', 'b', 2, 'i', 'o', 0, // github.io
5, 'n', 'e', 't', 't', 'y', (byte) 0xC0, 0, // netty.github.io
(byte) 0xC0, 11, // netty.github.io
};
ByteBuf buffer = Unpooled.wrappedBuffer(nestedCompressionPointer);
ByteBuf uncompressed = null;
try {
uncompressed = DnsCodecUtil.decompressDomainName(buffer.duplicate().setIndex(19, 21));
assertEquals(0, ByteBufUtil.compare(
Unpooled.wrappedBuffer(new byte[] {
5, 'n', 'e', 't', 't', 'y', 6, 'g', 'i', 't', 'h', 'u', 'b', 2, 'i', 'o', 0
}), uncompressed));
} finally {
buffer.release();
if (uncompressed != null) {
uncompressed.release();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testdecompressNestedCompressionPointer() do?
testdecompressNestedCompressionPointer() is a function in the netty codebase, defined in codec-dns/src/test/java/io/netty/handler/codec/dns/DefaultDnsRecordDecoderTest.java.
Where is testdecompressNestedCompressionPointer() defined?
testdecompressNestedCompressionPointer() is defined in codec-dns/src/test/java/io/netty/handler/codec/dns/DefaultDnsRecordDecoderTest.java at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free