notEqualsBufferSubsections() — netty Function Reference
Architecture documentation for the notEqualsBufferSubsections() function in ByteBufUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9c382e0b_955d_1535_b5bf_edc98ee27513["notEqualsBufferSubsections()"] 1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"] 9c382e0b_955d_1535_b5bf_edc98ee27513 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7 89bb59cb_8b6e_121f_1587_25bd20e90f2a["random()"] 9c382e0b_955d_1535_b5bf_edc98ee27513 -->|calls| 89bb59cb_8b6e_121f_1587_25bd20e90f2a style 9c382e0b_955d_1535_b5bf_edc98ee27513 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 200–216
@Test
public void notEqualsBufferSubsections() {
byte[] b1 = new byte[50];
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);
// Randomly pick an index in the range that will be compared and make the value at that index differ between
// the 2 arrays.
int diffIndex = random(rand, iB1, iB1 + length - 1);
++b1[diffIndex];
assertFalse(ByteBufUtil.equals(Unpooled.wrappedBuffer(b1), iB1, Unpooled.wrappedBuffer(b2), iB2, length));
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does notEqualsBufferSubsections() do?
notEqualsBufferSubsections() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is notEqualsBufferSubsections() defined?
notEqualsBufferSubsections() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 200.
What does notEqualsBufferSubsections() call?
notEqualsBufferSubsections() calls 1 function(s): random.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free