writeSymbolMap() — netty Function Reference
Architecture documentation for the writeSymbolMap() function in Bzip2BlockCompressor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ddf1fea8_2bb0_574e_9ec5_c760c5648da3["writeSymbolMap()"] 14ecc34c_1aa7_b25b_4492_69c298ece54c["Bzip2BlockCompressor"] ddf1fea8_2bb0_574e_9ec5_c760c5648da3 -->|defined in| 14ecc34c_1aa7_b25b_4492_69c298ece54c 7cbb1b2c_aece_4497_adec_be1cc44c8782["close()"] 7cbb1b2c_aece_4497_adec_be1cc44c8782 -->|calls| ddf1fea8_2bb0_574e_9ec5_c760c5648da3 style ddf1fea8_2bb0_574e_9ec5_c760c5648da3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockCompressor.java lines 108–134
private void writeSymbolMap(ByteBuf out) {
Bzip2BitWriter writer = this.writer;
final boolean[] blockValuesPresent = this.blockValuesPresent;
final boolean[] condensedInUse = new boolean[16];
for (int i = 0; i < condensedInUse.length; i++) {
for (int j = 0, k = i << 4; j < HUFFMAN_SYMBOL_RANGE_SIZE; j++, k++) {
if (blockValuesPresent[k]) {
condensedInUse[i] = true;
break;
}
}
}
for (boolean isCondensedInUse : condensedInUse) {
writer.writeBoolean(out, isCondensedInUse);
}
for (int i = 0; i < condensedInUse.length; i++) {
if (condensedInUse[i]) {
for (int j = 0, k = i << 4; j < HUFFMAN_SYMBOL_RANGE_SIZE; j++, k++) {
writer.writeBoolean(out, blockValuesPresent[k]);
}
}
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does writeSymbolMap() do?
writeSymbolMap() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockCompressor.java.
Where is writeSymbolMap() defined?
writeSymbolMap() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2BlockCompressor.java at line 108.
What calls writeSymbolMap()?
writeSymbolMap() is called by 1 function(s): close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free