Home / Function/ isOutOfBoundsTrustedCapacity() — netty Function Reference

isOutOfBoundsTrustedCapacity() — netty Function Reference

Architecture documentation for the isOutOfBoundsTrustedCapacity() function in AbstractByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5384b26c_d8bb_3d4d_9783_b90d1d7b6655["isOutOfBoundsTrustedCapacity()"]
  bbab270f_457a_3319_83a8_0a0540484666["AbstractByteBuf"]
  5384b26c_d8bb_3d4d_9783_b90d1d7b6655 -->|defined in| bbab270f_457a_3319_83a8_0a0540484666
  9d910c24_147f_215e_8873_ba90d9d6f027["checkRangeBoundsTrustedCapacity()"]
  9d910c24_147f_215e_8873_ba90d9d6f027 -->|calls| 5384b26c_d8bb_3d4d_9783_b90d1d7b6655
  style 5384b26c_d8bb_3d4d_9783_b90d1d7b6655 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java lines 1404–1407

    private static boolean isOutOfBoundsTrustedCapacity(int index, int fieldLength, int capacity) {
        // keep these as branches since would make it easier to be constant-folded
        return index < 0 || fieldLength < 0 || index + fieldLength < 0 || index + fieldLength > capacity;
    }

Domain

Subdomains

Frequently Asked Questions

What does isOutOfBoundsTrustedCapacity() do?
isOutOfBoundsTrustedCapacity() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java.
Where is isOutOfBoundsTrustedCapacity() defined?
isOutOfBoundsTrustedCapacity() is defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java at line 1404.
What calls isOutOfBoundsTrustedCapacity()?
isOutOfBoundsTrustedCapacity() is called by 1 function(s): checkRangeBoundsTrustedCapacity.

Analyze Your Own Codebase

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

Try Supermodel Free