Home / Function/ encodeTlv() — netty Function Reference

encodeTlv() — netty Function Reference

Architecture documentation for the encodeTlv() function in HAProxyMessageEncoder.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  eec6303c_23cc_e133_feca_dbd4a64d9228["encodeTlv()"]
  b42a18dd_ae6a_f2e4_51f0_5f6605567255["HAProxyMessageEncoder"]
  eec6303c_23cc_e133_feca_dbd4a64d9228 -->|defined in| b42a18dd_ae6a_f2e4_51f0_5f6605567255
  c3cfdec7_54a2_8856_e2fc_229fff7a1dc8["encodeTlvs()"]
  c3cfdec7_54a2_8856_e2fc_229fff7a1dc8 -->|calls| eec6303c_23cc_e133_feca_dbd4a64d9228
  c3cfdec7_54a2_8856_e2fc_229fff7a1dc8["encodeTlvs()"]
  eec6303c_23cc_e133_feca_dbd4a64d9228 -->|calls| c3cfdec7_54a2_8856_e2fc_229fff7a1dc8
  style eec6303c_23cc_e133_feca_dbd4a64d9228 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java lines 113–128

    private static void encodeTlv(HAProxyTLV haProxyTLV, ByteBuf out) {
        if (haProxyTLV instanceof HAProxySSLTLV) {
            HAProxySSLTLV ssltlv = (HAProxySSLTLV) haProxyTLV;
            out.writeByte(haProxyTLV.typeByteValue());
            out.writeShort(ssltlv.contentNumBytes());
            out.writeByte(ssltlv.client());
            out.writeInt(ssltlv.verify());
            encodeTlvs(ssltlv.encapsulatedTLVs(), out);
        } else {
            out.writeByte(haProxyTLV.typeByteValue());
            ByteBuf value = haProxyTLV.content();
            int readableBytes = value.readableBytes();
            out.writeShort(readableBytes);
            out.writeBytes(value.readSlice(readableBytes));
        }
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does encodeTlv() do?
encodeTlv() is a function in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java.
Where is encodeTlv() defined?
encodeTlv() is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageEncoder.java at line 113.
What does encodeTlv() call?
encodeTlv() calls 1 function(s): encodeTlvs.
What calls encodeTlv()?
encodeTlv() is called by 1 function(s): encodeTlvs.

Analyze Your Own Codebase

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

Try Supermodel Free