print in main, doc and add text jap

This commit is contained in:
2025-04-09 15:32:33 +02:00
parent 5e02564ad0
commit e40a4b04a7
3 changed files with 529 additions and 6 deletions

View File

@@ -132,6 +132,8 @@ fn string_translate(file: &mut File) -> String {
let chars_bin = read_n_bytes(file, len_chars);
let chars_str = String::from_utf8(chars_bin).unwrap();
let root = read_tree(&tree_str, &chars_str.chars().collect());
//let map = tree_to_map(&mut root, true);
//eprintln!("map = {:?}", map);
let _ = file.read_exact(&mut buffer);
let len_body = u32::from_be_bytes(buffer);
translate_bin_char(file, root, len_body)