Home / Function/ readableBytes() — netty Function Reference

readableBytes() — netty Function Reference

Architecture documentation for the readableBytes() function in ReplayingDecoderByteBuf.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  e4233d71_936a_6057_f7b9_cae2750ba680["readableBytes()"]
  2f1efe3a_641f_b308_f73f_447128c0e44e["ReplayingDecoderByteBuf"]
  e4233d71_936a_6057_f7b9_cae2750ba680 -->|defined in| 2f1efe3a_641f_b308_f73f_447128c0e44e
  c9a299b2_b43c_ccbb_07a9_5770316dcfcc["checkReadableBytes()"]
  c9a299b2_b43c_ccbb_07a9_5770316dcfcc -->|calls| e4233d71_936a_6057_f7b9_cae2750ba680
  b678207a_c885_fa39_edef_b509ce966e53["readerIndex()"]
  e4233d71_936a_6057_f7b9_cae2750ba680 -->|calls| b678207a_c885_fa39_edef_b509ce966e53
  style e4233d71_936a_6057_f7b9_cae2750ba680 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java lines 498–505

    @Override
    public int readableBytes() {
        if (terminated) {
            return buffer.readableBytes();
        } else {
            return Integer.MAX_VALUE - buffer.readerIndex();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does readableBytes() do?
readableBytes() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java.
Where is readableBytes() defined?
readableBytes() is defined in codec-base/src/main/java/io/netty/handler/codec/ReplayingDecoderByteBuf.java at line 498.
What does readableBytes() call?
readableBytes() calls 1 function(s): readerIndex.
What calls readableBytes()?
readableBytes() is called by 1 function(s): checkReadableBytes.

Analyze Your Own Codebase

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

Try Supermodel Free