hasReadableBits() — netty Function Reference
Architecture documentation for the hasReadableBits() function in Bzip2BitReader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 121b2114_76fd_98d4_b01e_03bb0846810e["hasReadableBits()"] f3de2c91_9e43_192d_7404_f34bb245b096["Bzip2BitReader"] 121b2114_76fd_98d4_b01e_03bb0846810e -->|defined in| f3de2c91_9e43_192d_7404_f34bb245b096 15e9b169_bf60_8183_a71f_29eaef85a9a6["hasReadableBytes()"] 15e9b169_bf60_8183_a71f_29eaef85a9a6 -->|calls| 121b2114_76fd_98d4_b01e_03bb0846810e style 121b2114_76fd_98d4_b01e_03bb0846810e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitReader.java lines 138–143
boolean hasReadableBits(int count) {
if (count < 0) {
throw new IllegalArgumentException("count: " + count + " (expected value greater than 0)");
}
return bitCount >= count || (in.readableBytes() << 3 & Integer.MAX_VALUE) >= count - bitCount;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does hasReadableBits() do?
hasReadableBits() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitReader.java.
Where is hasReadableBits() defined?
hasReadableBits() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BitReader.java at line 138.
What calls hasReadableBits()?
hasReadableBits() is called by 1 function(s): hasReadableBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free