testForEachByteDesc() — netty Function Reference
Architecture documentation for the testForEachByteDesc() function in AbstractByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2df5ef38_a669_dfa8_4f3e_7a4fcdda4d64["testForEachByteDesc()"] 6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"] 2df5ef38_a669_dfa8_4f3e_7a4fcdda4d64 -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242 8a937a41_8149_af3c_cc53_a4bb2a5522fa["process()"] 2df5ef38_a669_dfa8_4f3e_7a4fcdda4d64 -->|calls| 8a937a41_8149_af3c_cc53_a4bb2a5522fa style 2df5ef38_a669_dfa8_4f3e_7a4fcdda4d64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 2665–2686
@Test
public void testForEachByteDesc() {
buffer.clear();
for (int i = 0; i < CAPACITY; i ++) {
buffer.writeByte(i + 1);
}
final AtomicInteger lastIndex = new AtomicInteger();
assertEquals(-1, buffer.forEachByteDesc(CAPACITY / 4, CAPACITY * 2 / 4, new ByteProcessor() {
int i = CAPACITY * 3 / 4 - 1;
@Override
public boolean process(byte value) throws Exception {
assertEquals((byte) (i + 1), value);
lastIndex.set(i);
i --;
return true;
}
}));
assertEquals(CAPACITY / 4, lastIndex.get());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testForEachByteDesc() do?
testForEachByteDesc() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java.
Where is testForEachByteDesc() defined?
testForEachByteDesc() is defined in buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java at line 2665.
What does testForEachByteDesc() call?
testForEachByteDesc() calls 1 function(s): process.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free