testReadOnlyBuffer() — netty Function Reference
Architecture documentation for the testReadOnlyBuffer() function in ByteToMessageDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 90dce904_8279_671e_9cd4_a212751e3b18["testReadOnlyBuffer()"] b1c999fe_35fb_8b70_a958_296cffb0616a["ByteToMessageDecoderTest"] 90dce904_8279_671e_9cd4_a212751e3b18 -->|defined in| b1c999fe_35fb_8b70_a958_296cffb0616a 5082856a_b229_862d_0072_81f9b24f56a3["EmbeddedChannel()"] 90dce904_8279_671e_9cd4_a212751e3b18 -->|calls| 5082856a_b229_862d_0072_81f9b24f56a3 style 90dce904_8279_671e_9cd4_a212751e3b18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java lines 311–321
@Test
public void testReadOnlyBuffer() {
EmbeddedChannel channel = new EmbeddedChannel(new ByteToMessageDecoder() {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
}
});
assertFalse(channel.writeInbound(Unpooled.buffer(8).writeByte(1).asReadOnly()));
assertFalse(channel.writeInbound(Unpooled.wrappedBuffer(new byte[] { (byte) 2 })));
assertFalse(channel.finish());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testReadOnlyBuffer() do?
testReadOnlyBuffer() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java.
Where is testReadOnlyBuffer() defined?
testReadOnlyBuffer() is defined in codec-base/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java at line 311.
What does testReadOnlyBuffer() call?
testReadOnlyBuffer() calls 1 function(s): EmbeddedChannel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free