Home / Function/ testMultipleFramesEncodedAndDecodedInOneBuffer() — netty Function Reference

testMultipleFramesEncodedAndDecodedInOneBuffer() — netty Function Reference

Architecture documentation for the testMultipleFramesEncodedAndDecodedInOneBuffer() function in Http3FrameCodecTest.java from the netty codebase.

Function java Buffer Allocators calls 4 called by 2

Entity Profile

Dependency Diagram

graph TD
  c1acdaea_e062_6e53_756e_a742d2c1c9fd["testMultipleFramesEncodedAndDecodedInOneBuffer()"]
  5690f307_9248_ec29_2c84_6839dbcdc179["Http3FrameCodecTest"]
  c1acdaea_e062_6e53_756e_a742d2c1c9fd -->|defined in| 5690f307_9248_ec29_2c84_6839dbcdc179
  8d92fc4d_19dc_274e_7469_246987438bdd["testMultipleFramesEncodedAndDecodedInOneBufferHeaders()"]
  8d92fc4d_19dc_274e_7469_246987438bdd -->|calls| c1acdaea_e062_6e53_756e_a742d2c1c9fd
  5268cf84_74e9_421f_ed56_888fdba74b60["testMultipleFramesEncodedAndDecodedInOneBufferPushPromise()"]
  5268cf84_74e9_421f_ed56_888fdba74b60 -->|calls| c1acdaea_e062_6e53_756e_a742d2c1c9fd
  768e8780_19c7_e492_d5be_e5992d17f119["frameContainsHeaders()"]
  c1acdaea_e062_6e53_756e_a742d2c1c9fd -->|calls| 768e8780_19c7_e492_d5be_e5992d17f119
  d8b29c00_b452_b1d2_834d_684d951e40d4["isWriteBuffered()"]
  c1acdaea_e062_6e53_756e_a742d2c1c9fd -->|calls| d8b29c00_b452_b1d2_834d_684d951e40d4
  a9a3ec95_664a_9197_46a1_611a3016bc21["setQpackStreams()"]
  c1acdaea_e062_6e53_756e_a742d2c1c9fd -->|calls| a9a3ec95_664a_9197_46a1_611a3016bc21
  99ca5948_ce48_6e22_b4e6_2c3849001cd0["relayQPACKEncoderInstructions()"]
  c1acdaea_e062_6e53_756e_a742d2c1c9fd -->|calls| 99ca5948_ce48_6e22_b4e6_2c3849001cd0
  style c1acdaea_e062_6e53_756e_a742d2c1c9fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameCodecTest.java lines 712–748

    private void testMultipleFramesEncodedAndDecodedInOneBuffer(
            int maxBlockedStreams, boolean delayQpackStreams, Http3Frame first, Http3Frame second) throws Exception {
        final boolean hasHeaderFrame = frameContainsHeaders(first) || frameContainsHeaders(second);
        final boolean writeBuffered = isWriteBuffered(delayQpackStreams, hasHeaderFrame);

        assertEquals(!writeBuffered, codecChannel.writeOutbound(retainAndDuplicate(first)));
        assertEquals(!writeBuffered, codecChannel.writeOutbound(retainAndDuplicate(second)));

        if (writeBuffered) {
            setQpackStreams();
            codecChannel.checkException();
        }

        ByteBuf mergedBuffer = Unpooled.buffer();
        for (;;) {
            ByteBuf buffer = codecChannel.readOutbound();
            if (buffer == null) {
                break;
            }
            mergedBuffer.writeBytes(buffer);
            buffer.release();
        }

        if (maxBlockedStreams > 0 && hasHeaderFrame) {
            assertFalse(codecChannel.writeInbound(mergedBuffer));
        } else {
            assertTrue(codecChannel.writeInbound(mergedBuffer));
        }
        relayQPACKEncoderInstructions();

        Http3Frame readFrame = codecChannel.readInbound();
        Http3TestUtils.assertFrameEquals(first, readFrame);
        readFrame = codecChannel.readInbound();
        Http3TestUtils.assertFrameEquals(second, readFrame);

        assertFalse(codecChannel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testMultipleFramesEncodedAndDecodedInOneBuffer() do?
testMultipleFramesEncodedAndDecodedInOneBuffer() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameCodecTest.java.
Where is testMultipleFramesEncodedAndDecodedInOneBuffer() defined?
testMultipleFramesEncodedAndDecodedInOneBuffer() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameCodecTest.java at line 712.
What does testMultipleFramesEncodedAndDecodedInOneBuffer() call?
testMultipleFramesEncodedAndDecodedInOneBuffer() calls 4 function(s): frameContainsHeaders, isWriteBuffered, relayQPACKEncoderInstructions, setQpackStreams.
What calls testMultipleFramesEncodedAndDecodedInOneBuffer()?
testMultipleFramesEncodedAndDecodedInOneBuffer() is called by 2 function(s): testMultipleFramesEncodedAndDecodedInOneBufferHeaders, testMultipleFramesEncodedAndDecodedInOneBufferPushPromise.

Analyze Your Own Codebase

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

Try Supermodel Free