Home / Function/ notEqualsBufferUnderflow() — netty Function Reference

notEqualsBufferUnderflow() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 233–250

    @Test
    public void notEqualsBufferUnderflow() {
        final byte[] b1 = new byte[8];
        final 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);
        assertThrows(IllegalArgumentException.class, new Executable() {
            @Override
            public void execute() {
                ByteBufUtil.equals(Unpooled.wrappedBuffer(b1), iB1, Unpooled.wrappedBuffer(b2), iB2, -1);
            }
        });
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free