forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() — netty Function Reference
Architecture documentation for the forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() function in AbstractCompositeByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2ddc0b97_aa65_c17d_78d9_5d1d605c505a["forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents()"] 47bc0a20_e243_89ff_132b_99ac6b23835f["AbstractCompositeByteBufTest"] 2ddc0b97_aa65_c17d_78d9_5d1d605c505a -->|defined in| 47bc0a20_e243_89ff_132b_99ac6b23835f style 2ddc0b97_aa65_c17d_78d9_5d1d605c505a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java lines 1779–1809
@Test
public void forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() {
CompositeByteBuf buf = newCompositeBuffer();
buf.addComponent(true, newCompositeBuffer().addComponents(
true,
wrappedBuffer(new byte[] {1, 2, 3}),
wrappedBuffer(new byte[] {4, 5, 6})));
final byte[] arrayAsc = new byte[6];
final byte[] arrayDesc = new byte[6];
buf.forEachByte(new ByteProcessor() {
int index;
@Override
public boolean process(byte value) throws Exception {
arrayAsc[index++] = value;
return true;
}
});
buf.forEachByteDesc(new ByteProcessor() {
int index;
@Override
public boolean process(byte value) throws Exception {
arrayDesc[index++] = value;
return true;
}
});
assertArrayEquals(new byte[] {1, 2, 3, 4, 5, 6}, arrayAsc);
assertArrayEquals(new byte[] {6, 5, 4, 3, 2, 1}, arrayDesc);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() do?
forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java.
Where is forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() defined?
forEachByteOnNestedCompositeByteBufMustSeeEntireFlattenedContents() is defined in buffer/src/test/java/io/netty/buffer/AbstractCompositeByteBufTest.java at line 1779.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free