Home / Function/ failOnFrameLengthLessThanInitialBytesToStrip() — netty Function Reference

failOnFrameLengthLessThanInitialBytesToStrip() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  53ffab28_8315_e224_a761_791b1d83f641["failOnFrameLengthLessThanInitialBytesToStrip()"]
  687df7d8_4057_fca4_6694_3143553abf69["LengthFieldBasedFrameDecoder"]
  53ffab28_8315_e224_a761_791b1d83f641 -->|defined in| 687df7d8_4057_fca4_6694_3143553abf69
  f122928e_f2b2_90a0_b78d_5ee053f14758["Object()"]
  f122928e_f2b2_90a0_b78d_5ee053f14758 -->|calls| 53ffab28_8315_e224_a761_791b1d83f641
  style 53ffab28_8315_e224_a761_791b1d83f641 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java lines 380–387

    private static void failOnFrameLengthLessThanInitialBytesToStrip(ByteBuf in,
                                                                     long frameLength,
                                                                     int initialBytesToStrip) {
        in.skipBytes((int) frameLength);
        throw new CorruptedFrameException(
           "Adjusted frame length (" + frameLength + ") is less " +
              "than initialBytesToStrip: " + initialBytesToStrip);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does failOnFrameLengthLessThanInitialBytesToStrip() do?
failOnFrameLengthLessThanInitialBytesToStrip() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java.
Where is failOnFrameLengthLessThanInitialBytesToStrip() defined?
failOnFrameLengthLessThanInitialBytesToStrip() is defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java at line 380.
What calls failOnFrameLengthLessThanInitialBytesToStrip()?
failOnFrameLengthLessThanInitialBytesToStrip() 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