Home / Function/ checkReadableBounds() — netty Function Reference

checkReadableBounds() — netty Function Reference

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

Function java Buffer Telemetry calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  fbf9b69d_9f7a_bc47_1fd1_fd87c4f361e5["checkReadableBounds()"]
  bbab270f_457a_3319_83a8_0a0540484666["AbstractByteBuf"]
  fbf9b69d_9f7a_bc47_1fd1_fd87c4f361e5 -->|defined in| bbab270f_457a_3319_83a8_0a0540484666
  e9e1f861_5813_ec75_8a61_6b29c497ac9f["ByteBuf()"]
  e9e1f861_5813_ec75_8a61_6b29c497ac9f -->|calls| fbf9b69d_9f7a_bc47_1fd1_fd87c4f361e5
  209199c1_b9f8_1504_cd35_cd206a0bedd8["readableBytes()"]
  fbf9b69d_9f7a_bc47_1fd1_fd87c4f361e5 -->|calls| 209199c1_b9f8_1504_cd35_cd206a0bedd8
  style fbf9b69d_9f7a_bc47_1fd1_fd87c4f361e5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java lines 647–652

    private static void checkReadableBounds(final ByteBuf src, final int length) {
        if (length > src.readableBytes()) {
            throw new IndexOutOfBoundsException(String.format(
                    "length(%d) exceeds src.readableBytes(%d) where src is: %s", length, src.readableBytes(), src));
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free