Home / Function/ readRawVarint40() — netty Function Reference

readRawVarint40() — netty Function Reference

Architecture documentation for the readRawVarint40() function in ProtobufVarint32FrameDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b8dac422_5bdd_baf1_49bd_e0bbf8d399fa["readRawVarint40()"]
  f7621757_c495_a067_dbd2_54254d637829["ProtobufVarint32FrameDecoder"]
  b8dac422_5bdd_baf1_49bd_e0bbf8d399fa -->|defined in| f7621757_c495_a067_dbd2_54254d637829
  bf8c8c02_e669_17c5_7fe4_cb9b825ddb69["readRawVarint32()"]
  bf8c8c02_e669_17c5_7fe4_cb9b825ddb69 -->|calls| b8dac422_5bdd_baf1_49bd_e0bbf8d399fa
  style b8dac422_5bdd_baf1_49bd_e0bbf8d399fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-protobuf/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32FrameDecoder.java lines 100–112

    private static int readRawVarint40(ByteBuf buffer, int wholeOrMore) {
        byte lastByte;
        if (buffer.readableBytes() == 4 || (lastByte = buffer.getByte(buffer.readerIndex() + 4)) < 0) {
            throw new CorruptedFrameException("malformed varint.");
        }
        buffer.skipBytes(5);
        // add it to wholeOrMore
        return wholeOrMore & 0x7F |
               (((wholeOrMore >> 8) & 0x7F) << 7) |
               (((wholeOrMore >> 16) & 0x7F) << 14) |
               (((wholeOrMore >> 24) & 0x7F) << 21) |
               (lastByte << 28);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free