Guest User

Untitled

a guest
Jun 25th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. extern crate byteorder;
  2.  
  3. use byteorder::{LittleEndian, ReadBytesExt};
  4.  
  5. fn main() {
  6. let my_array = [0b00000000, 0b01010101, 0b00100100, 0b11011011];
  7.  
  8. let result = (&my_array[..]).read_u32::<LittleEndian>();
  9.  
  10. println!("{:?}", result);
  11. }
Add Comment
Please, Sign In to add comment