Home / Function/ deallocate() — netty Function Reference

deallocate() — netty Function Reference

Architecture documentation for the deallocate() function in UnpooledDirectByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d3097611_4999_9d43_3d47_aeb17217fd66["deallocate()"]
  9d6a7cd0_08a5_9155_3c10_b8a8fd6480e9["UnpooledDirectByteBuf"]
  d3097611_4999_9d43_3d47_aeb17217fd66 -->|defined in| 9d6a7cd0_08a5_9155_3c10_b8a8fd6480e9
  ddfc072c_30c5_a321_aeaa_45191a292e14["freeDirect()"]
  d3097611_4999_9d43_3d47_aeb17217fd66 -->|calls| ddfc072c_30c5_a321_aeaa_45191a292e14
  style d3097611_4999_9d43_3d47_aeb17217fd66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java lines 754–771

    @Override
    protected void deallocate() {
        ByteBuffer buffer = this.buffer;
        if (buffer == null) {
            return;
        }

        this.buffer = null;

        if (!doNotFree) {
            if (cleanable != null) {
                cleanable.clean();
                cleanable = null;
            } else {
                freeDirect(buffer);
            }
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does deallocate() do?
deallocate() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java.
Where is deallocate() defined?
deallocate() is defined in buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java at line 754.
What does deallocate() call?
deallocate() calls 1 function(s): freeDirect.

Analyze Your Own Codebase

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

Try Supermodel Free