Home / Function/ close0() — netty Function Reference

close0() — netty Function Reference

Architecture documentation for the close0() function in QuicheQuicChannel.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ef78a46c_0b4c_0b54_3625_f06b545c1fde["close0()"]
  3c534d05_bb5b_c991_5e03_7ec94e739cf7["QuicheQuicChannel"]
  ef78a46c_0b4c_0b54_3625_f06b545c1fde -->|defined in| 3c534d05_bb5b_c991_5e03_7ec94e739cf7
  9c8504a2_6302_42bd_e301_9e5e7272ba11["ChannelFuture()"]
  9c8504a2_6302_42bd_e301_9e5e7272ba11 -->|calls| ef78a46c_0b4c_0b54_3625_f06b545c1fde
  49a7a159_9313_a1e5_de47_c0142bce46e3["CloseData()"]
  ef78a46c_0b4c_0b54_3625_f06b545c1fde -->|calls| 49a7a159_9313_a1e5_de47_c0142bce46e3
  style ef78a46c_0b4c_0b54_3625_f06b545c1fde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java lines 480–495

    private void close0(boolean applicationClose, int error, ByteBuf reason, ChannelPromise promise) {
        if (closeData == null) {
            if (!reason.hasMemoryAddress()) {
                // Copy to direct buffer as that's what we need.
                ByteBuf copy = alloc().directBuffer(reason.readableBytes()).writeBytes(reason);
                reason.release();
                reason = copy;
            }
            closeData = new CloseData(applicationClose, error, reason);
            promise.addListener(closeData);
        } else {
            // We already have a close scheduled that uses a close data. Lets release the buffer early.
            reason.release();
        }
        close(promise);
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does close0() do?
close0() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java.
Where is close0() defined?
close0() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java at line 480.
What does close0() call?
close0() calls 1 function(s): CloseData.
What calls close0()?
close0() is called by 1 function(s): ChannelFuture.

Analyze Your Own Codebase

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

Try Supermodel Free