Home / Function/ encodeAAAA() — netty Function Reference

encodeAAAA() — netty Function Reference

Architecture documentation for the encodeAAAA() function in TestDnsServer.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  3d7e226c_17fa_6c68_7d1d_52a3348a5132["encodeAAAA()"]
  46c35087_32cd_5c67_6e42_ca3ad96d5f51["TestDnsProtocolUdpCodecFactory"]
  3d7e226c_17fa_6c68_7d1d_52a3348a5132 -->|defined in| 46c35087_32cd_5c67_6e42_ca3ad96d5f51
  56f26f02_7b3e_ca8c_d994_426f7876088b["ProtocolEncoder()"]
  56f26f02_7b3e_ca8c_d994_426f7876088b -->|calls| 3d7e226c_17fa_6c68_7d1d_52a3348a5132
  style 3d7e226c_17fa_6c68_7d1d_52a3348a5132 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java lines 187–202

        private void encodeAAAA(List<ResourceRecord> records, IoBuffer out) {
            for (ResourceRecord record : records) {
                // This is a hack to allow to also test for AAAA resolution as DnsMessageEncoder
                // does not support it and it is hard to extend, because the interesting methods
                // are private...
                // In case of RecordType.AAAA we need to encode the RecordType by ourselves.
                if (record.getRecordType() == RecordType.AAAA) {
                    try {
                        recordEncoder.put(out, record);
                    } catch (IOException e) {
                        // Should never happen
                        throw new IllegalStateException(e);
                    }
                }
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does encodeAAAA() do?
encodeAAAA() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java.
Where is encodeAAAA() defined?
encodeAAAA() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java at line 187.
What calls encodeAAAA()?
encodeAAAA() is called by 1 function(s): ProtocolEncoder.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free