Guest User

Untitled

a guest
May 22nd, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2. let b = vec![0u32, 1, 2, 3];
  3. let mut a = Vec::with_capacity(b.len() * 4);
  4. for x in b.into_iter() {
  5. a.extend_from_slice(&x.to_ne_bytes())
  6. }
  7. }
RAW Paste Data