read() — netty Function Reference
Architecture documentation for the read() function in Bzip2BlockDecompressor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fab9e775_efed_58a1_4371_9a4cc6690133["read()"] 5e864d32_96fc_3bee_77e4_3eeb1e9d6e8d["Bzip2BlockDecompressor"] fab9e775_efed_58a1_4371_9a4cc6690133 -->|defined in| 5e864d32_96fc_3bee_77e4_3eeb1e9d6e8d d2ed781b_719e_980f_4eff_c05fa72e51bb["decodeNextBWTByte()"] fab9e775_efed_58a1_4371_9a4cc6690133 -->|calls| d2ed781b_719e_980f_4eff_c05fa72e51bb style fab9e775_efed_58a1_4371_9a4cc6690133 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockDecompressor.java lines 281–310
public int read() {
while (rleRepeat < 1) {
if (bwtBytesDecoded == bwtBlockLength) {
return -1;
}
int nextByte = decodeNextBWTByte();
if (nextByte != rleLastDecodedByte) {
// New byte, restart accumulation
rleLastDecodedByte = nextByte;
rleRepeat = 1;
rleAccumulator = 1;
crc.updateCRC(nextByte);
} else {
if (++rleAccumulator == 4) {
// Accumulation complete, start repetition
int rleRepeat = decodeNextBWTByte() + 1;
this.rleRepeat = rleRepeat;
rleAccumulator = 0;
crc.updateCRC(nextByte, rleRepeat);
} else {
rleRepeat = 1;
crc.updateCRC(nextByte);
}
}
}
rleRepeat--;
return rleLastDecodedByte;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does read() do?
read() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockDecompressor.java.
Where is read() defined?
read() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockDecompressor.java at line 281.
What does read() call?
read() calls 1 function(s): decodeNextBWTByte.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free