testPrependLengthInLittleEndian() — netty Function Reference
Architecture documentation for the testPrependLengthInLittleEndian() function in LengthFieldPrependerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 696c6ed0_379c_33e2_5b0b_067894dd2578["testPrependLengthInLittleEndian()"] 08a86b56_30dc_8ade_d1cb_23b1a52cba79["LengthFieldPrependerTest"] 696c6ed0_379c_33e2_5b0b_067894dd2578 -->|defined in| 08a86b56_30dc_8ade_d1cb_23b1a52cba79 style 696c6ed0_379c_33e2_5b0b_067894dd2578 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java lines 96–114
@Test
public void testPrependLengthInLittleEndian() throws Exception {
final EmbeddedChannel ch = new EmbeddedChannel(new LengthFieldPrepender(ByteOrder.LITTLE_ENDIAN, 4, 0, false));
ch.writeOutbound(msg);
ByteBuf buf = ch.readOutbound();
assertEquals(4, buf.readableBytes());
byte[] writtenBytes = new byte[buf.readableBytes()];
buf.getBytes(0, writtenBytes);
assertEquals(1, writtenBytes[0]);
assertEquals(0, writtenBytes[1]);
assertEquals(0, writtenBytes[2]);
assertEquals(0, writtenBytes[3]);
buf.release();
buf = ch.readOutbound();
assertSame(buf, msg);
buf.release();
assertFalse(ch.finish(), "The channel must have been completely read");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testPrependLengthInLittleEndian() do?
testPrependLengthInLittleEndian() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java.
Where is testPrependLengthInLittleEndian() defined?
testPrependLengthInLittleEndian() is defined in codec-base/src/test/java/io/netty/handler/codec/frame/LengthFieldPrependerTest.java at line 96.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free