Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

Architecture documentation for the ByteBuf() function in RetainedDuplicatedByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  13fa6770_3d78_5a1a_dc54_6649570c6623["ByteBuf()"]
  644d4b2a_57aa_c239_8a6e_7053a8a7987d["RetainedDuplicatedByteBufTest"]
  13fa6770_3d78_5a1a_dc54_6649570c6623 -->|defined in| 644d4b2a_57aa_c239_8a6e_7053a8a7987d
  style 13fa6770_3d78_5a1a_dc54_6649570c6623 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/RetainedDuplicatedByteBufTest.java lines 22–31

    @Override
    protected ByteBuf newBuffer(int length, int maxCapacity) {
        ByteBuf wrapped = Unpooled.buffer(length, maxCapacity);
        ByteBuf buffer = wrapped.retainedDuplicate();
        wrapped.release();

        assertEquals(wrapped.writerIndex(), buffer.writerIndex());
        assertEquals(wrapped.readerIndex(), buffer.readerIndex());
        return buffer;
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free