writeEmptyDataWithPadding() — netty Function Reference
Architecture documentation for the writeEmptyDataWithPadding() function in DefaultHttp2FrameWriterTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b3b99abf_02d6_3dad_d7f4_65b4ff432db8["writeEmptyDataWithPadding()"] 602c48d7_d78b_d8f3_745e_26d2ab6ce0f2["DefaultHttp2FrameWriterTest"] b3b99abf_02d6_3dad_d7f4_65b4ff432db8 -->|defined in| 602c48d7_d78b_d8f3_745e_26d2ab6ce0f2 style b3b99abf_02d6_3dad_d7f4_65b4ff432db8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java lines 163–181
@Test
public void writeEmptyDataWithPadding() {
int streamId = 1;
ByteBuf payloadByteBuf = Unpooled.buffer();
frameWriter.writeData(ctx, streamId, payloadByteBuf, 2, true, promise);
assertEquals(0, payloadByteBuf.refCnt());
byte[] expectedFrameBytes = {
(byte) 0x00, (byte) 0x00, (byte) 0x02, // payload length
(byte) 0x00, // payload type
(byte) 0x09, // flags
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01, // stream id
(byte) 0x01, (byte) 0x00, // padding
};
expectedOutbound = Unpooled.copiedBuffer(expectedFrameBytes);
assertEquals(expectedOutbound, outbound);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does writeEmptyDataWithPadding() do?
writeEmptyDataWithPadding() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java.
Where is writeEmptyDataWithPadding() defined?
writeEmptyDataWithPadding() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java at line 163.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free