ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in SpdyFrameEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 66ecd6b5_f338_e9f6_b877_3642965fc8ca["ByteBuf()"] ee9013a6_cb33_52cd_0839_a802c106e9ca["SpdyFrameEncoder"] 66ecd6b5_f338_e9f6_b877_3642965fc8ca -->|defined in| ee9013a6_cb33_52cd_0839_a802c106e9ca f272d902_147c_9a7b_9fb5_c55ca04c8b70["writeControlFrameHeader()"] 66ecd6b5_f338_e9f6_b877_3642965fc8ca -->|calls| f272d902_147c_9a7b_9fb5_c55ca04c8b70 style 66ecd6b5_f338_e9f6_b877_3642965fc8ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameEncoder.java lines 48–57
public ByteBuf encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data) {
byte flags = last ? SPDY_DATA_FLAG_FIN : 0;
int length = data.readableBytes();
ByteBuf frame = allocator.ioBuffer(SPDY_HEADER_SIZE + length).order(ByteOrder.BIG_ENDIAN);
frame.writeInt(streamId & 0x7FFFFFFF);
frame.writeByte(flags);
frame.writeMedium(length);
frame.writeBytes(data, data.readerIndex(), length);
return frame;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameEncoder.java.
Where is ByteBuf() defined?
ByteBuf() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameEncoder.java at line 48.
What does ByteBuf() call?
ByteBuf() calls 1 function(s): writeControlFrameHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free