0.1.27 upd

This commit is contained in:
Michael Wain 2025-02-15 21:50:55 +03:00
parent e40c6442ac
commit 3b1712c55b
3 changed files with 5 additions and 6 deletions

2
Cargo.lock generated
View File

@ -90,7 +90,7 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
[[package]] [[package]]
name = "itunesdb" name = "itunesdb"
version = "0.1.25" version = "0.1.27"
dependencies = [ dependencies = [
"bincode", "bincode",
"env_logger", "env_logger",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "itunesdb" name = "itunesdb"
version = "0.1.26" version = "0.1.27"
edition = "2021" edition = "2021"
authors = ["alterwain"] authors = ["alterwain"]

View File

@ -68,10 +68,9 @@ pub mod deserializer {
.unwrap() { .unwrap() {
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+12..i+16].try_into().unwrap()) as usize;
let mut h = i+20; let mut h = i+24;
info!("h: {}, end: {}", h, str_end); while h < i+24+str_end {
while h < i+20+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;
} }