Home / Function/ tryDecodeAndCatchBufLeaks() — netty Function Reference

tryDecodeAndCatchBufLeaks() — netty Function Reference

Architecture documentation for the tryDecodeAndCatchBufLeaks() function in AbstractDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2ac54eea_0fa9_3146_f1ed_0bbea9bd70ac["tryDecodeAndCatchBufLeaks()"]
  25e203a2_01b9_37bc_50d7_94995af16578["AbstractDecoderTest"]
  2ac54eea_0fa9_3146_f1ed_0bbea9bd70ac -->|defined in| 25e203a2_01b9_37bc_50d7_94995af16578
  style 2ac54eea_0fa9_3146_f1ed_0bbea9bd70ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java lines 138–151

    protected static void tryDecodeAndCatchBufLeaks(final EmbeddedChannel channel, final ByteBuf data) {
        try {
            channel.writeInbound(data);
        } finally {
            for (;;) {
                ByteBuf inflated = channel.readInbound();
                if (inflated == null) {
                    break;
                }
                inflated.release();
            }
            channel.finish();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does tryDecodeAndCatchBufLeaks() do?
tryDecodeAndCatchBufLeaks() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java.
Where is tryDecodeAndCatchBufLeaks() defined?
tryDecodeAndCatchBufLeaks() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractDecoderTest.java at line 138.

Analyze Your Own Codebase

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

Try Supermodel Free