testPrependLength() — netty Function Reference
Architecture documentation for the testPrependLength() function in LengthFieldPrependerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD da94bacb_c338_869b_98f5_9fbf8fbb8e0e["testPrependLength()"] 08a86b56_30dc_8ade_d1cb_23b1a52cba79["LengthFieldPrependerTest"] da94bacb_c338_869b_98f5_9fbf8fbb8e0e -->|defined in| 08a86b56_30dc_8ade_d1cb_23b1a52cba79 style da94bacb_c338_869b_98f5_9fbf8fbb8e0e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java lines 43–55
@Test
public void testPrependLength() throws Exception {
final EmbeddedChannel ch = new EmbeddedChannel(new LengthFieldPrepender(4));
ch.writeOutbound(msg);
ByteBuf buf = ch.readOutbound();
assertEquals(4, buf.readableBytes());
assertEquals(msg.readableBytes(), buf.readInt());
buf.release();
buf = ch.readOutbound();
assertSame(buf, msg);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testPrependLength() do?
testPrependLength() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java.
Where is testPrependLength() defined?
testPrependLength() is defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free