Home / Function/ discardingTooLongFrame() — netty Function Reference

discardingTooLongFrame() — netty Function Reference

Architecture documentation for the discardingTooLongFrame() function in LengthFieldBasedFrameDecoder.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  eccb157b_d7cc_e4ef_8e1a_92c29ab6d4cd["discardingTooLongFrame()"]
  687df7d8_4057_fca4_6694_3143553abf69["LengthFieldBasedFrameDecoder"]
  eccb157b_d7cc_e4ef_8e1a_92c29ab6d4cd -->|defined in| 687df7d8_4057_fca4_6694_3143553abf69
  f122928e_f2b2_90a0_b78d_5ee053f14758["Object()"]
  f122928e_f2b2_90a0_b78d_5ee053f14758 -->|calls| eccb157b_d7cc_e4ef_8e1a_92c29ab6d4cd
  85c6af4f_525c_0286_9d46_f6cb70186ae3["failIfNecessary()"]
  eccb157b_d7cc_e4ef_8e1a_92c29ab6d4cd -->|calls| 85c6af4f_525c_0286_9d46_f6cb70186ae3
  style eccb157b_d7cc_e4ef_8e1a_92c29ab6d4cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java lines 339–347

    private void discardingTooLongFrame(ByteBuf in) {
        long bytesToDiscard = this.bytesToDiscard;
        int localBytesToDiscard = (int) Math.min(bytesToDiscard, in.readableBytes());
        in.skipBytes(localBytesToDiscard);
        bytesToDiscard -= localBytesToDiscard;
        this.bytesToDiscard = bytesToDiscard;

        failIfNecessary(false);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does discardingTooLongFrame() do?
discardingTooLongFrame() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java.
Where is discardingTooLongFrame() defined?
discardingTooLongFrame() is defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java at line 339.
What does discardingTooLongFrame() call?
discardingTooLongFrame() calls 1 function(s): failIfNecessary.
What calls discardingTooLongFrame()?
discardingTooLongFrame() is called by 1 function(s): Object.

Analyze Your Own Codebase

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

Try Supermodel Free