Home / Function/ pooledByteBuf() — netty Function Reference

pooledByteBuf() — netty Function Reference

Architecture documentation for the pooledByteBuf() function in AbstractPooledByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b8bc1e06_1910_c817_ce88_108d0c0e3922["pooledByteBuf()"]
  0134bc31_3b19_a967_d2aa_113b2ccd098c["AbstractPooledByteBufTest"]
  b8bc1e06_1910_c817_ce88_108d0c0e3922 -->|defined in| 0134bc31_3b19_a967_d2aa_113b2ccd098c
  171cd40c_02a0_7ed0_1483_5e748559f459["testMaxFastWritableBytes()"]
  171cd40c_02a0_7ed0_1483_5e748559f459 -->|calls| b8bc1e06_1910_c817_ce88_108d0c0e3922
  c457dc32_25aa_6c96_57d7_f725ca1dc1c8["testEnsureWritableDoesntGrowTooMuch()"]
  c457dc32_25aa_6c96_57d7_f725ca1dc1c8 -->|calls| b8bc1e06_1910_c817_ce88_108d0c0e3922
  style b8bc1e06_1910_c817_ce88_108d0c0e3922 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java lines 98–104

    private static PooledByteBuf<?> pooledByteBuf(ByteBuf buffer) {
        // might need to unwrap if swapped (LE) and/or leak-aware-wrapped
        while (!(buffer instanceof PooledByteBuf)) {
            buffer = buffer.unwrap();
        }
        return (PooledByteBuf<?>) buffer;
    }

Domain

Subdomains

Frequently Asked Questions

What does pooledByteBuf() do?
pooledByteBuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java.
Where is pooledByteBuf() defined?
pooledByteBuf() is defined in buffer/src/test/java/io/netty/buffer/AbstractPooledByteBufTest.java at line 98.
What calls pooledByteBuf()?
pooledByteBuf() is called by 2 function(s): testEnsureWritableDoesntGrowTooMuch, testMaxFastWritableBytes.

Analyze Your Own Codebase

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

Try Supermodel Free