use byteorder::{LittleEndian, ReadBytesExt};
fn main() {
let data: Vec<u8> = vec![0x01, 0x02, 0x03, 0x04];
let mut cursor = std::io::Cursor::new(data);
let result = cursor.read_i32::<LittleEndian>().unwrap();
println!("Read i32 value: {}", result);
}