Home / Function/ writeRawVarint32() — netty Function Reference

writeRawVarint32() — netty Function Reference

Architecture documentation for the writeRawVarint32() function in ProtobufVarint32LengthFieldPrepender.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  36032e25_3b9d_d43b_2b28_b7289870c8d7["writeRawVarint32()"]
  c802204f_c6f7_7dc6_7b18_0b760262838a["ProtobufVarint32LengthFieldPrepender"]
  36032e25_3b9d_d43b_2b28_b7289870c8d7 -->|defined in| c802204f_c6f7_7dc6_7b18_0b760262838a
  ed001db2_9529_f359_c93b_c3e10aed6648["encode()"]
  ed001db2_9529_f359_c93b_c3e10aed6648 -->|calls| 36032e25_3b9d_d43b_2b28_b7289870c8d7
  style 36032e25_3b9d_d43b_2b28_b7289870c8d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-protobuf/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java lines 62–72

    static void writeRawVarint32(ByteBuf out, int value) {
        while (true) {
            if ((value & ~0x7F) == 0) {
                out.writeByte(value);
                return;
            } else {
                out.writeByte((value & 0x7F) | 0x80);
                value >>>= 7;
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeRawVarint32() do?
writeRawVarint32() is a function in the netty codebase, defined in codec-protobuf/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java.
Where is writeRawVarint32() defined?
writeRawVarint32() is defined in codec-protobuf/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java at line 62.
What calls writeRawVarint32()?
writeRawVarint32() is called by 1 function(s): encode.

Analyze Your Own Codebase

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

Try Supermodel Free