ssCompareLast() — netty Function Reference
Architecture documentation for the ssCompareLast() function in Bzip2DivSufSort.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0f3081f4_c454_deea_e5ba_2db21526a3da["ssCompareLast()"] 5a60cb70_bf06_95bf_9c73_ed3a4dc24eba["Bzip2DivSufSort"] 0f3081f4_c454_deea_e5ba_2db21526a3da -->|defined in| 5a60cb70_bf06_95bf_9c73_ed3a4dc24eba 6d0196f0_489e_2841_7424_79f0d208f4c9["subStringSort()"] 6d0196f0_489e_2841_7424_79f0d208f4c9 -->|calls| 0f3081f4_c454_deea_e5ba_2db21526a3da style 0f3081f4_c454_deea_e5ba_2db21526a3da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2DivSufSort.java lines 86–117
private int ssCompareLast(int pa, int p1, int p2, int depth, int size) {
final int[] SA = this.SA;
final byte[] T = this.T;
int U1 = depth + SA[p1];
int U2 = depth + SA[p2];
int U1n = size;
int U2n = SA[p2 + 1] + 2;
while (U1 < U1n && U2 < U2n && T[U1] == T[U2]) {
++U1;
++U2;
}
if (U1 < U1n) {
return U2 < U2n ? (T[U1] & 0xff) - (T[U2] & 0xff) : 1;
}
if (U2 == U2n) {
return 1;
}
U1 %= size;
U1n = SA[pa] + 2;
while (U1 < U1n && U2 < U2n && T[U1] == T[U2]) {
++U1;
++U2;
}
return U1 < U1n ?
U2 < U2n ? (T[U1] & 0xff) - (T[U2] & 0xff) : 1
: U2 < U2n ? -1 : 0;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does ssCompareLast() do?
ssCompareLast() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2DivSufSort.java.
Where is ssCompareLast() defined?
ssCompareLast() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Bzip2DivSufSort.java at line 86.
What calls ssCompareLast()?
ssCompareLast() is called by 1 function(s): subStringSort.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free