Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

Architecture documentation for the setup() function in QpackDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  26498b22_5caf_40c2_1f0f_1adf07905522["setup()"]
  306cb9ff_c699_c029_57de_27fe788cc819["QpackDecoderTest"]
  26498b22_5caf_40c2_1f0f_1adf07905522 -->|defined in| 306cb9ff_c699_c029_57de_27fe788cc819
  0d41f851_2b4a_4925_0218_9800a45c4576["requiredInsertCountAsInserted()"]
  0d41f851_2b4a_4925_0218_9800a45c4576 -->|calls| 26498b22_5caf_40c2_1f0f_1adf07905522
  edfb543f_9971_0ce8_9bd6_9ed83e4b5a07["requiredInsertCountLessThanInserted()"]
  edfb543f_9971_0ce8_9bd6_9ed83e4b5a07 -->|calls| 26498b22_5caf_40c2_1f0f_1adf07905522
  fbd33333_5aa0_c1b7_010b_80b802018ee1["requiredInsertCountBehindMax()"]
  fbd33333_5aa0_c1b7_010b_80b802018ee1 -->|calls| 26498b22_5caf_40c2_1f0f_1adf07905522
  6973559d_619b_85fb_3e6a_3ea043f41865["getWithRelativeIndex()"]
  6973559d_619b_85fb_3e6a_3ea043f41865 -->|calls| 26498b22_5caf_40c2_1f0f_1adf07905522
  7e5aa6e0_4594_4d29_9af7_d13e12bbdd5c["getWithPostBaseRelativeIndex()"]
  7e5aa6e0_4594_4d29_9af7_d13e12bbdd5c -->|calls| 26498b22_5caf_40c2_1f0f_1adf07905522
  style 26498b22_5caf_40c2_1f0f_1adf07905522 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/QpackDecoderTest.java lines 117–130

    private void setup(long capacity) throws QpackException {
        long maxTableCapacity = MAX_UNSIGNED_INT;
        inserted = 0;
        this.maxEntries = toIntExact(QpackUtil.maxEntries(maxTableCapacity));
        final DefaultHttp3SettingsFrame settings = new DefaultHttp3SettingsFrame();
        settings.put(HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY, maxTableCapacity);
        table = new QpackDecoderDynamicTable();
        EmbeddedQuicChannel parent = new EmbeddedQuicChannel(true);
        attributes = new QpackAttributes(parent, false);
        decoderStream = new EmbeddedQuicStreamChannel();
        attributes.decoderStream(decoderStream);
        decoder = new QpackDecoder(maxTableCapacity, 0, table, ackEachInsert());
        decoder.setDynamicTableCapacity(capacity);
    }

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/QpackDecoderTest.java.
Where is setup() defined?
setup() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/QpackDecoderTest.java at line 117.
What calls setup()?
setup() is called by 5 function(s): getWithPostBaseRelativeIndex, getWithRelativeIndex, requiredInsertCountAsInserted, requiredInsertCountBehindMax, requiredInsertCountLessThanInserted.

Analyze Your Own Codebase

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

Try Supermodel Free