Home / Function/ writeVariableLengthInt() — netty Function Reference

writeVariableLengthInt() — netty Function Reference

Architecture documentation for the writeVariableLengthInt() function in MqttEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3def4f1c_67d0_f2da_6583_29577090a0e8["writeVariableLengthInt()"]
  13c11c97_f8b9_b829_dd75_63846e7fcd55["MqttEncoder"]
  3def4f1c_67d0_f2da_6583_29577090a0e8 -->|defined in| 13c11c97_f8b9_b829_dd75_63846e7fcd55
  a7b9925d_5111_9e2c_2e13_04e1c42819fc["ByteBuf()"]
  a7b9925d_5111_9e2c_2e13_04e1c42819fc -->|calls| 3def4f1c_67d0_f2da_6583_29577090a0e8
  style 3def4f1c_67d0_f2da_6583_29577090a0e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttEncoder.java lines 714–723

    private static void writeVariableLengthInt(ByteBuf buf, int num) {
        do {
            int digit = num & 0x7F;
            num >>>= 7;
            if (num > 0) {
                digit |= 0x80;
            }
            buf.writeByte(digit);
        } while (num > 0);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeVariableLengthInt() do?
writeVariableLengthInt() is a function in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttEncoder.java.
Where is writeVariableLengthInt() defined?
writeVariableLengthInt() is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttEncoder.java at line 714.
What calls writeVariableLengthInt()?
writeVariableLengthInt() is called by 1 function(s): ByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free