0.1.25 upd
This commit is contained in:
parent
00b74def41
commit
16206894e8
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -90,7 +90,7 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.23"
|
version = "0.1.25"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "itunesdb"
|
name = "itunesdb"
|
||||||
version = "0.1.24"
|
version = "0.1.25"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["alterwain"]
|
authors = ["alterwain"]
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ pub mod deserializer {
|
|||||||
let mut bytes = Vec::new();
|
let mut bytes = Vec::new();
|
||||||
let str_end = u32::from_le_bytes(data[i+8..i+12].try_into().unwrap()) as usize;
|
let str_end = u32::from_le_bytes(data[i+8..i+12].try_into().unwrap()) as usize;
|
||||||
let mut h = i+20;
|
let mut h = i+20;
|
||||||
|
info!("h: {}, end: {}", h, i+str_end);
|
||||||
while h < i+str_end {
|
while h < i+str_end {
|
||||||
bytes.push(u16::from_le_bytes(data[h..h+2].try_into().unwrap()));
|
bytes.push(u16::from_le_bytes(data[h..h+2].try_into().unwrap()));
|
||||||
h+=2;
|
h+=2;
|
||||||
@ -77,7 +78,7 @@ pub mod deserializer {
|
|||||||
let g = String::from_utf16(&bytes).unwrap();
|
let g = String::from_utf16(&bytes).unwrap();
|
||||||
info!("str: {}", g);
|
info!("str: {}", g);
|
||||||
|
|
||||||
name.args.push((ds, String::new()));
|
name.args.push((ds, g));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user