Home / Function/ testDecompressionOfBatchedFlow() — netty Function Reference

testDecompressionOfBatchedFlow() — netty Function Reference

Architecture documentation for the testDecompressionOfBatchedFlow() function in AbstractDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9a307e55_9d85_9611_81bd_aef9251f6f57["testDecompressionOfBatchedFlow()"]
  25e203a2_01b9_37bc_50d7_94995af16578["AbstractDecoderTest"]
  9a307e55_9d85_9611_81bd_aef9251f6f57 -->|defined in| 25e203a2_01b9_37bc_50d7_94995af16578
  44560637_672b_b3de_28bb_1dda4766bb4d["testDecompressionOfBatchedFlowOfData()"]
  44560637_672b_b3de_28bb_1dda4766bb4d -->|calls| 9a307e55_9d85_9611_81bd_aef9251f6f57
  style 9a307e55_9d85_9611_81bd_aef9251f6f57 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java lines 110–127

    protected void testDecompressionOfBatchedFlow(final ByteBuf expected, final ByteBuf data) throws Exception {
        final int compressedLength = data.readableBytes();
        int written = 0, length = rand.nextInt(100);
        while (written + length < compressedLength) {
            ByteBuf compressedBuf = data.retainedSlice(written, length);
            channel.writeInbound(compressedBuf);
            written += length;
            length = rand.nextInt(100);
        }
        ByteBuf compressedBuf = data.slice(written, compressedLength - written);
        assertTrue(channel.writeInbound(compressedBuf.retain()));

        ByteBuf decompressedBuf = readDecompressed(channel);
        assertEquals(expected, decompressedBuf);

        decompressedBuf.release();
        data.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testDecompressionOfBatchedFlow() do?
testDecompressionOfBatchedFlow() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java.
Where is testDecompressionOfBatchedFlow() defined?
testDecompressionOfBatchedFlow() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java at line 110.
What calls testDecompressionOfBatchedFlow()?
testDecompressionOfBatchedFlow() is called by 1 function(s): testDecompressionOfBatchedFlowOfData.

Analyze Your Own Codebase

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

Try Supermodel Free