Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate byteorder;
- use byteorder::{LittleEndian, ReadBytesExt};
- fn main() {
- let my_array = [0b00000000, 0b01010101, 0b00100100, 0b11011011];
- let result = (&my_array[..]).read_u32::<LittleEndian>();
- println!("{:?}", result);
- }
Add Comment
Please, Sign In to add comment