Home / Function/ testMaxFastWritableBytes() — netty Function Reference

testMaxFastWritableBytes() — netty Function Reference

Architecture documentation for the testMaxFastWritableBytes() function in AbstractByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2fe8cb29_dc87_bc6a_f183_e24e14825836["testMaxFastWritableBytes()"]
  6540f2d1_cdad_6705_dd1d_9a24e2e53242["AbstractByteBufTest"]
  2fe8cb29_dc87_bc6a_f183_e24e14825836 -->|defined in| 6540f2d1_cdad_6705_dd1d_9a24e2e53242
  style 2fe8cb29_dc87_bc6a_f183_e24e14825836 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractByteBufTest.java lines 6226–6236

    @Test
    public void testMaxFastWritableBytes() {
        ByteBuf buffer = newBuffer(150, 500).writerIndex(100);
        assertEquals(50, buffer.writableBytes());
        assertEquals(150, buffer.capacity());
        assertEquals(500, buffer.maxCapacity());
        assertEquals(400, buffer.maxWritableBytes());
        // Default implementation has fast writable == writable
        assertEquals(50, buffer.maxFastWritableBytes());
        buffer.release();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free