testRemoveItselfWriteBuffer() — netty Function Reference
Architecture documentation for the testRemoveItselfWriteBuffer() function in ReplayingDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b51157eb_4049_977f_31ff_c552e1922dba["testRemoveItselfWriteBuffer()"] 342ea63b_1bca_5900_7b37_0cc8ddc3402d["ReplayingDecoderTest"] b51157eb_4049_977f_31ff_c552e1922dba -->|defined in| 342ea63b_1bca_5900_7b37_0cc8ddc3402d 0bda4795_4d98_a4e1_d850_763cc1379646["decode()"] b51157eb_4049_977f_31ff_c552e1922dba -->|calls| 0bda4795_4d98_a4e1_d850_763cc1379646 style b51157eb_4049_977f_31ff_c552e1922dba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java lines 188–211
@Test
public void testRemoveItselfWriteBuffer() {
final ByteBuf buf = Unpooled.buffer().writeBytes(new byte[] {'a', 'b', 'c'});
EmbeddedChannel channel = new EmbeddedChannel(new ReplayingDecoder() {
private boolean removed;
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
assertFalse(removed);
in.readByte();
ctx.pipeline().remove(this);
// This should not let it keep call decode
buf.writeByte('d');
removed = true;
}
});
channel.writeInbound(buf.copy());
ByteBuf b = channel.readInbound();
assertEquals(b, Unpooled.wrappedBuffer(new byte[] { 'b', 'c'}));
b.release();
buf.release();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testRemoveItselfWriteBuffer() do?
testRemoveItselfWriteBuffer() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java.
Where is testRemoveItselfWriteBuffer() defined?
testRemoveItselfWriteBuffer() is defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java at line 188.
What does testRemoveItselfWriteBuffer() call?
testRemoveItselfWriteBuffer() calls 1 function(s): decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free