Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate byteorder;
- use std::io::Cursor;
- use byteorder::{LittleEndian, ReadBytesExt};
- fn main() {
- let my_array = [00000000,01010101,00100100,11011011];
- let mut cursor = Cursor::new(my_array);
- let result = cursor.read_u32::<LittleEndian>();
- println!("{:?}", result);
- }
Add Comment
Please, Sign In to add comment