Home / Function/ release() — netty Function Reference

release() — netty Function Reference

Architecture documentation for the release() function in EmbeddedChannelTest.java from the netty codebase.

Function java Buffer Search called by 4

Entity Profile

Dependency Diagram

graph TD
  17f7b672_524d_b9ed_a14b_29a7376a7ef2["release()"]
  300cabef_b042_697f_5623_37ce249f504d["EmbeddedChannelTest"]
  17f7b672_524d_b9ed_a14b_29a7376a7ef2 -->|defined in| 300cabef_b042_697f_5623_37ce249f504d
  0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6["testFinishAndReleaseAll()"]
  0e2ff1c0_4ae9_f2e2_8135_68bacefabbb6 -->|calls| 17f7b672_524d_b9ed_a14b_29a7376a7ef2
  8a40af8a_5895_8492_1ccd_9874d2f12c59["testReleaseInbound()"]
  8a40af8a_5895_8492_1ccd_9874d2f12c59 -->|calls| 17f7b672_524d_b9ed_a14b_29a7376a7ef2
  529f2f4d_9c5d_f58c_e2eb_69d943bd0471["testReleaseOutbound()"]
  529f2f4d_9c5d_f58c_e2eb_69d943bd0471 -->|calls| 17f7b672_524d_b9ed_a14b_29a7376a7ef2
  9f637746_d5ad_e229_0244_c01abe4b4e0d["testWriteOneInbound()"]
  9f637746_d5ad_e229_0244_c01abe4b4e0d -->|calls| 17f7b672_524d_b9ed_a14b_29a7376a7ef2
  style 17f7b672_524d_b9ed_a14b_29a7376a7ef2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java lines 822–828

    private static void release(ByteBuf... buffers) {
        for (ByteBuf buffer : buffers) {
            if (buffer.refCnt() > 0) {
                buffer.release();
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does release() do?
release() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java.
Where is release() defined?
release() is defined in transport/src/test/java/io/netty/channel/embedded/EmbeddedChannelTest.java at line 822.
What calls release()?
release() is called by 4 function(s): testFinishAndReleaseAll, testReleaseInbound, testReleaseOutbound, testWriteOneInbound.

Analyze Your Own Codebase

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

Try Supermodel Free