checkReadableBytes0() — netty Function Reference
Architecture documentation for the checkReadableBytes0() function in AbstractByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fdb92d3a_efeb_0954_b7a5_d19c3e9994d9["checkReadableBytes0()"] bbab270f_457a_3319_83a8_0a0540484666["AbstractByteBuf"] fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 -->|defined in| bbab270f_457a_3319_83a8_0a0540484666 a443f367_3de6_0946_265e_2b23c47f4125["readByte()"] a443f367_3de6_0946_265e_2b23c47f4125 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 f44258a5_0689_18db_96a8_c00942c3b518["readShort()"] f44258a5_0689_18db_96a8_c00942c3b518 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 9c6f3f58_01cd_806b_4e6f_33613916e130["readShortLE()"] 9c6f3f58_01cd_806b_4e6f_33613916e130 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 74b09db0_3715_bba2_2249_b425a7fe33a8["readUnsignedMedium()"] 74b09db0_3715_bba2_2249_b425a7fe33a8 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 9a9c49dd_cee2_a3e8_6acf_7557c6084ebe["readUnsignedMediumLE()"] 9a9c49dd_cee2_a3e8_6acf_7557c6084ebe -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 07813c85_77fc_6f9a_55ab_fc38fb0ad7e8["readInt()"] 07813c85_77fc_6f9a_55ab_fc38fb0ad7e8 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 f85ed06d_5548_698e_c476_431c09b8bcc4["readIntLE()"] f85ed06d_5548_698e_c476_431c09b8bcc4 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 ea84019e_9c01_fcf1_f52e_7b5be6e4d9b4["readLong()"] ea84019e_9c01_fcf1_f52e_7b5be6e4d9b4 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 6515b56b_d030_66d9_9420_c101f29e8b17["readLongLE()"] 6515b56b_d030_66d9_9420_c101f29e8b17 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 e37b4a97_c05b_76c9_b413_348510ecb1f3["checkReadableBytes()"] e37b4a97_c05b_76c9_b413_348510ecb1f3 -->|calls| fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 6d7a760c_9235_3c42_7498_04dce6863295["ensureAccessible()"] fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 -->|calls| 6d7a760c_9235_3c42_7498_04dce6863295 e34ed3b7_d7f4_5f98_9b6d_87d59cdaec5a["readerIndex()"] fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 -->|calls| e34ed3b7_d7f4_5f98_9b6d_87d59cdaec5a 67993e0c_3b33_e884_495b_6ad7509b65c8["writerIndex()"] fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 -->|calls| 67993e0c_3b33_e884_495b_6ad7509b65c8 style fdb92d3a_efeb_0954_b7a5_d19c3e9994d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java lines 1465–1472
private void checkReadableBytes0(int minimumReadableBytes) {
ensureAccessible();
if (checkBounds && readerIndex > writerIndex - minimumReadableBytes) {
throw new IndexOutOfBoundsException(String.format(
"readerIndex(%d) + length(%d) exceeds writerIndex(%d): %s",
readerIndex, minimumReadableBytes, writerIndex, this));
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does checkReadableBytes0() do?
checkReadableBytes0() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java.
Where is checkReadableBytes0() defined?
checkReadableBytes0() is defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java at line 1465.
What does checkReadableBytes0() call?
checkReadableBytes0() calls 3 function(s): ensureAccessible, readerIndex, writerIndex.
What calls checkReadableBytes0()?
checkReadableBytes0() is called by 10 function(s): checkReadableBytes, readByte, readInt, readIntLE, readLong, readLongLE, readShort, readShortLE, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free