Home / Function/ calculateOutputBufferLength() — netty Function Reference

calculateOutputBufferLength() — netty Function Reference

Architecture documentation for the calculateOutputBufferLength() function in FastLz.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5a33eabf_cd2e_fc95_1f11_4368e1e56046["calculateOutputBufferLength()"]
  98671d94_5a6d_343c_6d73_292cd19cfd19["FastLz"]
  5a33eabf_cd2e_fc95_1f11_4368e1e56046 -->|defined in| 98671d94_5a6d_343c_6d73_292cd19cfd19
  style 5a33eabf_cd2e_fc95_1f11_4368e1e56046 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/FastLz.java lines 84–87

    static int calculateOutputBufferLength(int inputLength) {
        final int outputLength = (int) (inputLength * 1.06);
        return Math.max(outputLength, 66);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free