equalsBufferSubsections() — netty Function Reference
Architecture documentation for the equalsBufferSubsections() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 089960a6_5ea1_7a61_e2cc_4f28f14dcceb["equalsBufferSubsections()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 089960a6_5ea1_7a61_e2cc_4f28f14dcceb -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 style 089960a6_5ea1_7a61_e2cc_4f28f14dcceb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 182–194
@Test
public void equalsBufferSubsections() {
byte[] b1 = new byte[128];
byte[] b2 = new byte[256];
Random rand = new Random();
rand.nextBytes(b1);
rand.nextBytes(b2);
final int iB1 = b1.length / 2;
final int iB2 = iB1 + b1.length;
final int length = b1.length - iB1;
System.arraycopy(b1, iB1, b2, iB2, length);
assertTrue(ByteBufUtil.equals(Unpooled.wrappedBuffer(b1), iB1, Unpooled.wrappedBuffer(b2), iB2, length));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does equalsBufferSubsections() do?
equalsBufferSubsections() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is equalsBufferSubsections() defined?
equalsBufferSubsections() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 182.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free