Home / Function/ testMultipleConcatenatedGzipMessagesDecompressedIndividually() — netty Function Reference

testMultipleConcatenatedGzipMessagesDecompressedIndividually() — netty Function Reference

Architecture documentation for the testMultipleConcatenatedGzipMessagesDecompressedIndividually() function in JdkZlibTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  26b40226_b34f_527f_f91d_30fcfefa62fb["testMultipleConcatenatedGzipMessagesDecompressedIndividually()"]
  4c83b538_e9fd_3b12_c32e_629bfd12e1ce["JdkZlibTest"]
  26b40226_b34f_527f_f91d_30fcfefa62fb -->|defined in| 4c83b538_e9fd_3b12_c32e_629bfd12e1ce
  8a2fc833_0ed7_4b71_f101_760d9fbd7d8d["gzipCompress()"]
  26b40226_b34f_527f_f91d_30fcfefa62fb -->|calls| 8a2fc833_0ed7_4b71_f101_760d9fbd7d8d
  style 26b40226_b34f_527f_f91d_30fcfefa62fb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java lines 305–328

    @Test
    public void testMultipleConcatenatedGzipMessagesDecompressedIndividually() throws Exception {
        String first = "first message";
        String second = "second message";

        byte[] c1 = gzipCompress(first.getBytes(CharsetUtil.UTF_8));
        byte[] c2 = gzipCompress(second.getBytes(CharsetUtil.UTF_8));
        byte[] combined = new byte[c1.length + c2.length];
        System.arraycopy(c1, 0, combined, 0, c1.length);
        System.arraycopy(c2, 0, combined, c1.length, c2.length);

        EmbeddedChannel decoder = new EmbeddedChannel(new JdkZlibDecoder(true, 0));
        assertTrue(decoder.writeInbound(Unpooled.wrappedBuffer(combined)));

        ByteBuf m1 = decoder.readInbound();
        ByteBuf m2 = decoder.readInbound();

        assertEquals(first, m1.toString(CharsetUtil.UTF_8));
        assertEquals(second, m2.toString(CharsetUtil.UTF_8));

        m1.release();
        m2.release();
        decoder.finish();
    }

Domain

Subdomains

Frequently Asked Questions

What does testMultipleConcatenatedGzipMessagesDecompressedIndividually() do?
testMultipleConcatenatedGzipMessagesDecompressedIndividually() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java.
Where is testMultipleConcatenatedGzipMessagesDecompressedIndividually() defined?
testMultipleConcatenatedGzipMessagesDecompressedIndividually() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/JdkZlibTest.java at line 305.
What does testMultipleConcatenatedGzipMessagesDecompressedIndividually() call?
testMultipleConcatenatedGzipMessagesDecompressedIndividually() calls 1 function(s): gzipCompress.

Analyze Your Own Codebase

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

Try Supermodel Free