Home / Function/ decodeLast() — netty Function Reference

decodeLast() — netty Function Reference

Architecture documentation for the decodeLast() function in ByteToMessageDecoder.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  2780496c_9c50_8513_8319_9a728365e524["decodeLast()"]
  efe4959f_3296_dbb1_4a4b_76b9d7ccec55["ByteToMessageDecoder"]
  2780496c_9c50_8513_8319_9a728365e524 -->|defined in| efe4959f_3296_dbb1_4a4b_76b9d7ccec55
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa["channelInputClosed()"]
  1ab7897f_cdf1_0b3e_43e2_77270fef19fa -->|calls| 2780496c_9c50_8513_8319_9a728365e524
  a2b41b20_4228_5c5c_610d_6731a6923ad0["decode()"]
  2780496c_9c50_8513_8319_9a728365e524 -->|calls| a2b41b20_4228_5c5c_610d_6731a6923ad0
  ee472e33_1a7d_641f_3906_3ad2ada7997f["decodeRemovalReentryProtection()"]
  2780496c_9c50_8513_8319_9a728365e524 -->|calls| ee472e33_1a7d_641f_3906_3ad2ada7997f
  style 2780496c_9c50_8513_8319_9a728365e524 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java lines 566–572

    protected void decodeLast(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
        if (in.isReadable()) {
            // Only call decode() if there is something left in the buffer to decode.
            // See https://github.com/netty/netty/issues/4386
            decodeRemovalReentryProtection(ctx, in, out);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does decodeLast() do?
decodeLast() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java.
Where is decodeLast() defined?
decodeLast() is defined in codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java at line 566.
What does decodeLast() call?
decodeLast() calls 2 function(s): decode, decodeRemovalReentryProtection.
What calls decodeLast()?
decodeLast() is called by 1 function(s): channelInputClosed.

Analyze Your Own Codebase

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

Try Supermodel Free