Home / Function/ compress() — netty Function Reference

compress() — netty Function Reference

Architecture documentation for the compress() function in BrotliDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5b9f4bf0_624a_cfd9_dfd5_a17f547d3c9b["compress()"]
  63f55b46_4f95_0492_5bc8_569080fc26cd["BrotliDecoderTest"]
  5b9f4bf0_624a_cfd9_dfd5_a17f547d3c9b -->|defined in| 63f55b46_4f95_0492_5bc8_569080fc26cd
  25995d7b_b926_e532_50be_5c4469f5a587["setUp()"]
  25995d7b_b926_e532_50be_5c4469f5a587 -->|calls| 5b9f4bf0_624a_cfd9_dfd5_a17f547d3c9b
  style 5b9f4bf0_624a_cfd9_dfd5_a17f547d3c9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/BrotliDecoderTest.java lines 71–77

    private static byte[] compress(byte[] data) throws IOException {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        BrotliOutputStream brotliOs = new BrotliOutputStream(os);
        brotliOs.write(data);
        brotliOs.close();
        return os.toByteArray();
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free