Home / Function/ paddingBytes() — netty Function Reference

paddingBytes() — netty Function Reference

Architecture documentation for the paddingBytes() function in DefaultHttp2FrameWriter.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6a049d1f_c405_e97a_f598_c0b1f527f8b4["paddingBytes()"]
  15f148d0_1b4a_244f_1956_157fbe75e59a["DefaultHttp2FrameWriter"]
  6a049d1f_c405_e97a_f598_c0b1f527f8b4 -->|defined in| 15f148d0_1b4a_244f_1956_157fbe75e59a
  fe7bfdb5_730f_310a_cec0_582ba7362f95["ChannelFuture()"]
  fe7bfdb5_730f_310a_cec0_582ba7362f95 -->|calls| 6a049d1f_c405_e97a_f598_c0b1f527f8b4
  style 6a049d1f_c405_e97a_f598_c0b1f527f8b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriter.java lines 606–610

    private static int paddingBytes(int padding) {
        // The padding parameter contains the 1 byte pad length field as well as the trailing padding bytes.
        // Subtract 1, so to only get the number of padding bytes that need to be appended to the end of a frame.
        return padding - 1;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does paddingBytes() do?
paddingBytes() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriter.java.
Where is paddingBytes() defined?
paddingBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriter.java at line 606.
What calls paddingBytes()?
paddingBytes() is called by 1 function(s): ChannelFuture.

Analyze Your Own Codebase

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

Try Supermodel Free