testDiscardSomeReadBytes() — netty Function Reference
Architecture documentation for the testDiscardSomeReadBytes() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD de428941_ab1e_7b0b_34ba_bacdb71cdc18["testDiscardSomeReadBytes()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] de428941_ab1e_7b0b_34ba_bacdb71cdc18 -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f style de428941_ab1e_7b0b_34ba_bacdb71cdc18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1046–1063
@Test
public void testDiscardSomeReadBytes() {
CompositeByteBuf cbuf = compositeBuffer();
int len = 8 * 4;
for (int i = 0; i < len; i += 4) {
ByteBuf buf = buffer().writeInt(i);
cbuf.capacity(cbuf.writerIndex()).addComponent(buf).writerIndex(i + 4);
}
cbuf.writeByte(1);
byte[] me = new byte[len];
cbuf.readBytes(me);
cbuf.readByte();
cbuf.discardSomeReadBytes();
cbuf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDiscardSomeReadBytes() do?
testDiscardSomeReadBytes() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is testDiscardSomeReadBytes() defined?
testDiscardSomeReadBytes() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1046.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free