Home / Function/ testNotSharedMemory() — netty Function Reference

testNotSharedMemory() — netty Function Reference

Architecture documentation for the testNotSharedMemory() function in AsciiStringMemoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c5c30946_e8d9_7ad2_5e9e_3cec1a93aec7["testNotSharedMemory()"]
  cfaf93a3_50a8_27c3_9fa0_2c606fea9e15["AsciiStringMemoryTest"]
  c5c30946_e8d9_7ad2_5e9e_3cec1a93aec7 -->|defined in| cfaf93a3_50a8_27c3_9fa0_2c606fea9e15
  style c5c30946_e8d9_7ad2_5e9e_3cec1a93aec7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/AsciiStringMemoryTest.java lines 67–78

    @Test
    public void testNotSharedMemory() {
        AsciiString aAsciiString1 = new AsciiString(a, aOffset, length, true);
        ++a[aOffset];
        assertNotEquals(aAsciiString, aAsciiString1);
        int i = aOffset;
        assertNotEquals(a[i], aAsciiString1.byteAt(i - aOffset));
        ++i;
        for (; i < length; ++i) {
            assertEquals(a[i], aAsciiString1.byteAt(i - aOffset));
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testNotSharedMemory() do?
testNotSharedMemory() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/AsciiStringMemoryTest.java.
Where is testNotSharedMemory() defined?
testNotSharedMemory() is defined in common/src/test/java/io/netty/util/AsciiStringMemoryTest.java at line 67.

Analyze Your Own Codebase

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

Try Supermodel Free