Home / Function/ wrapperOverhead() — netty Function Reference

wrapperOverhead() — netty Function Reference

Architecture documentation for the wrapperOverhead() function in ZlibUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  acf59180_35c8_5cbf_2be9_20538d5b8a07["wrapperOverhead()"]
  0f9a5fa7_af39_95f6_598f_87e762351966["ZlibUtil"]
  acf59180_35c8_5cbf_2be9_20538d5b8a07 -->|defined in| 0f9a5fa7_af39_95f6_598f_87e762351966
  style acf59180_35c8_5cbf_2be9_20538d5b8a07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibUtil.java lines 58–70

    static int wrapperOverhead(ZlibWrapper wrapper) {
        switch (wrapper) {
        case NONE:
            return 0;
        case ZLIB:
        case ZLIB_OR_NONE:
            return 2;
        case GZIP:
            return 10;
        default:
            throw new Error("Unexpected wrapper type: " + wrapper);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does wrapperOverhead() do?
wrapperOverhead() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibUtil.java.
Where is wrapperOverhead() defined?
wrapperOverhead() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibUtil.java at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free