Home / Function/ failOnNegativeLengthField() — netty Function Reference

failOnNegativeLengthField() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java lines 349–353

    private static void failOnNegativeLengthField(ByteBuf in, long frameLength, int lengthFieldEndOffset) {
        in.skipBytes(lengthFieldEndOffset);
        throw new CorruptedFrameException(
           "negative pre-adjustment length field: " + frameLength);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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