Home / Function/ notEqualsBufferOverflow() — netty Function Reference

notEqualsBufferOverflow() — netty Function Reference

Architecture documentation for the notEqualsBufferOverflow() function in ByteBufUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5bfdd8a4_5a0d_1ab6_cde8_89c35cd461f4["notEqualsBufferOverflow()"]
  1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"]
  5bfdd8a4_5a0d_1ab6_cde8_89c35cd461f4 -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7
  style 5bfdd8a4_5a0d_1ab6_cde8_89c35cd461f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 218–231

    @Test
    public void notEqualsBufferOverflow() {
        byte[] b1 = new byte[8];
        byte[] b2 = new byte[16];
        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 - 1);
        assertFalse(ByteBufUtil.equals(Unpooled.wrappedBuffer(b1), iB1, Unpooled.wrappedBuffer(b2), iB2,
                Math.max(b1.length, b2.length) * 2));
    }

Domain

Subdomains

Frequently Asked Questions

What does notEqualsBufferOverflow() do?
notEqualsBufferOverflow() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is notEqualsBufferOverflow() defined?
notEqualsBufferOverflow() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 218.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free