Home / Function/ testAllocateWithCapacity0() — netty Function Reference

testAllocateWithCapacity0() — netty Function Reference

Architecture documentation for the testAllocateWithCapacity0() function in PlatformDependentTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0912b2f4_cd2e_20a5_fb5c_051ca34ca2b3["testAllocateWithCapacity0()"]
  ff6bfe0a_3221_685f_da78_ee06b9ccc3c6["PlatformDependentTest"]
  0912b2f4_cd2e_20a5_fb5c_051ca34ca2b3 -->|defined in| ff6bfe0a_3221_685f_da78_ee06b9ccc3c6
  style 0912b2f4_cd2e_20a5_fb5c_051ca34ca2b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/PlatformDependentTest.java lines 155–162

    @Test
    public void testAllocateWithCapacity0() {
        assumeTrue(PlatformDependent.hasDirectBufferNoCleanerConstructor());
        ByteBuffer buffer = PlatformDependent.allocateDirectNoCleaner(0);
        assertNotEquals(0, PlatformDependent.directBufferAddress(buffer));
        assertEquals(0, buffer.capacity());
        PlatformDependent.freeDirectNoCleaner(buffer);
    }

Domain

Subdomains

Frequently Asked Questions

What does testAllocateWithCapacity0() do?
testAllocateWithCapacity0() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/PlatformDependentTest.java.
Where is testAllocateWithCapacity0() defined?
testAllocateWithCapacity0() is defined in common/src/test/java/io/netty/util/internal/PlatformDependentTest.java at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free