SHARE
TWEET

Untitled

a guest May 22nd, 2019 85 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top