Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

Architecture documentation for the ByteBuf() function in Http2ServerUpgradeCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b2043bca_3d96_32b4_57f2_34c736dab89a["ByteBuf()"]
  c35ffca0_c07b_0afb_4806_c07fa100b346["Http2ServerUpgradeCodec"]
  b2043bca_3d96_32b4_57f2_34c736dab89a -->|defined in| c35ffca0_c07b_0afb_4806_c07fa100b346
  style b2043bca_3d96_32b4_57f2_34c736dab89a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ServerUpgradeCodec.java lines 204–210

    private static ByteBuf createSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload) {
        ByteBuf frame = ctx.alloc().buffer(FRAME_HEADER_LENGTH + payload.readableBytes());
        writeFrameHeader(frame, payload.readableBytes(), SETTINGS, new Http2Flags(), 0);
        frame.writeBytes(payload);
        payload.release();
        return frame;
    }

Domain

Subdomains

Frequently Asked Questions

What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ServerUpgradeCodec.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ServerUpgradeCodec.java at line 204.

Analyze Your Own Codebase

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

Try Supermodel Free