Guest User

Untitled

a guest
Jun 25th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. extern crate byteorder;
  2.  
  3. use std::io::Cursor;
  4.  
  5. use byteorder::{LittleEndian, ReadBytesExt};
  6.  
  7. fn main() {
  8. let my_array = [00000000,01010101,00100100,11011011];
  9. let mut cursor = Cursor::new(my_array);
  10.  
  11. let result = cursor.read_u32::<LittleEndian>();
  12.  
  13. println!("{:?}", result);
  14. }
Add Comment
Please, Sign In to add comment