Home / Function/ decodeULE128() — netty Function Reference

decodeULE128() — netty Function Reference

Architecture documentation for the decodeULE128() function in HpackDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d295d5e9_5003_76d8_2213_aa4c1a3817e0["decodeULE128()"]
  929eb7d3_94e9_fa41_fd78_c76a9b499b89["HpackDecoder"]
  d295d5e9_5003_76d8_2213_aa4c1a3817e0 -->|defined in| 929eb7d3_94e9_fa41_fd78_c76a9b499b89
  337bdce6_5a9c_2e66_9239_9ac5320a87fe["decodeDynamicTableSizeUpdates()"]
  337bdce6_5a9c_2e66_9239_9ac5320a87fe -->|calls| d295d5e9_5003_76d8_2213_aa4c1a3817e0
  f902eae9_e223_3289_c748_bbdc7d188389["decode()"]
  f902eae9_e223_3289_c748_bbdc7d188389 -->|calls| d295d5e9_5003_76d8_2213_aa4c1a3817e0
  style d295d5e9_5003_76d8_2213_aa4c1a3817e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java lines 468–481

    static int decodeULE128(ByteBuf in, int result) throws Http2Exception {
        final int readerIndex = in.readerIndex();
        final long v = decodeULE128(in, (long) result);
        if (v > Integer.MAX_VALUE) {
            // the maximum value that can be represented by a signed 32 bit number is:
            // [0x1,0x7f] + 0x7f + (0x7f << 7) + (0x7f << 14) + (0x7f << 21) + (0x6 << 28)
            // OR
            // 0x0 + 0x7f + (0x7f << 7) + (0x7f << 14) + (0x7f << 21) + (0x7 << 28)
            // we should reset the readerIndex if we overflowed the int type.
            in.readerIndex(readerIndex);
            throw DECODE_ULE_128_TO_INT_DECOMPRESSION_EXCEPTION;
        }
        return (int) v;
    }

Domain

Subdomains

Frequently Asked Questions

What does decodeULE128() do?
decodeULE128() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java.
Where is decodeULE128() defined?
decodeULE128() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java at line 468.
What calls decodeULE128()?
decodeULE128() is called by 2 function(s): decode, decodeDynamicTableSizeUpdates.

Analyze Your Own Codebase

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

Try Supermodel Free