findNodesToRelocate() — netty Function Reference
Architecture documentation for the findNodesToRelocate() function in Bzip2HuffmanAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 536a1061_cf34_c364_3957_752998cccfb4["findNodesToRelocate()"] 3ede8457_e9d7_5e55_8fd7_02b725a73605["Bzip2HuffmanAllocator"] 536a1061_cf34_c364_3957_752998cccfb4 -->|defined in| 3ede8457_e9d7_5e55_8fd7_02b725a73605 2de6ad84_ece2_e1f6_0d2d_5992144ef04b["allocateHuffmanCodeLengths()"] 2de6ad84_ece2_e1f6_0d2d_5992144ef04b -->|calls| 536a1061_cf34_c364_3957_752998cccfb4 9ea0eddc_76b9_92b2_0ab9_81aa6582f3b6["first()"] 536a1061_cf34_c364_3957_752998cccfb4 -->|calls| 9ea0eddc_76b9_92b2_0ab9_81aa6582f3b6 style 536a1061_cf34_c364_3957_752998cccfb4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2HuffmanAllocator.java lines 88–94
private static int findNodesToRelocate(final int[] array, final int maximumLength) {
int currentNode = array.length - 2;
for (int currentDepth = 1; currentDepth < maximumLength - 1 && currentNode > 1; currentDepth++) {
currentNode = first(array, currentNode - 1, 0);
}
return currentNode;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does findNodesToRelocate() do?
findNodesToRelocate() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2HuffmanAllocator.java.
Where is findNodesToRelocate() defined?
findNodesToRelocate() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2HuffmanAllocator.java at line 88.
What does findNodesToRelocate() call?
findNodesToRelocate() calls 1 function(s): first.
What calls findNodesToRelocate()?
findNodesToRelocate() is called by 1 function(s): allocateHuffmanCodeLengths.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free