Skip to main content

relocate_class_bytes

Function relocate_class_bytes 

Source
pub fn relocate_class_bytes(
    bytes: &[u8],
    replacements: &[(&str, &str)],
) -> Result<Vec<u8>, String>
Expand description

Safely relocates internal class names and L...; descriptors inside a compiled .class by parsing the ConstantPool structure and rewriting CONSTANT_Utf8 entries cleanly.