String() — netty Function Reference
Architecture documentation for the String() function in NativeLibraryLoader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 50a1da9f_331c_2384_d1cd_d997cf54f46f["String()"] e940cc67_3be6_5ff3_e560_4d68972dc13b["NativeLibraryLoader"] 50a1da9f_331c_2384_d1cd_d997cf54f46f -->|defined in| e940cc67_3be6_5ff3_e560_4d68972dc13b 718b0b6c_05e8_e851_bc3f_0a119eac5245["tryPatchShadedLibraryIdAndSign()"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|calls| 50a1da9f_331c_2384_d1cd_d997cf54f46f style 50a1da9f_331c_2384_d1cd_d997cf54f46f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java lines 143–155
private static String calculateMangledPackagePrefix() {
String maybeShaded = NativeLibraryLoader.class.getName();
// Use ! instead of . to avoid shading utilities from modifying the string
String expected = "io!netty!util!internal!NativeLibraryLoader".replace('!', '.');
if (!maybeShaded.endsWith(expected)) {
throw new UnsatisfiedLinkError(String.format(
"Could not find prefix added to %s to get %s. When shading, only adding a "
+ "package prefix is supported", expected, maybeShaded));
}
return maybeShaded.substring(0, maybeShaded.length() - expected.length())
.replace("_", "_1")
.replace('.', '_');
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java.
Where is String() defined?
String() is defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java at line 143.
What calls String()?
String() is called by 1 function(s): tryPatchShadedLibraryIdAndSign.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free