Home / Function/ testHasMemoryAddressWithSingleBuffer() — netty Function Reference

testHasMemoryAddressWithSingleBuffer() — netty Function Reference

Architecture documentation for the testHasMemoryAddressWithSingleBuffer() function in FixedCompositeByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  dfe87fb7_06be_c114_16a4_9d5c14eb2556["testHasMemoryAddressWithSingleBuffer()"]
  0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"]
  dfe87fb7_06be_c114_16a4_9d5c14eb2556 -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016
  style dfe87fb7_06be_c114_16a4_9d5c14eb2556 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 447–458

    @Test
    public void testHasMemoryAddressWithSingleBuffer() {
        ByteBuf buf1 = directBuffer(10);
        if (!buf1.hasMemoryAddress()) {
            buf1.release();
            return;
        }
        ByteBuf buf = newBuffer(buf1);
        assertTrue(buf.hasMemoryAddress());
        assertEquals(buf1.memoryAddress(), buf.memoryAddress());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free