unsafe fn into_vec(pointer: *const u8, size: usize) -> Vec<u8> {
    let mut storage: Vec<u8> = vec![0; size];
    let slice = slice::from_raw_parts(pointer, size);
    storage.as_mut_slice().copy_from_slice(slice);
    storage
}
/// Copy a raw pointer into an owned `Vec<u8>`. `size` should be the size of the value in
/// bytes.
Copy a raw pointer into an owned `Vec`. `size` should be the size of the value in
bytes.
Copy a raw pointer into an owned ` Vec ` . ` size ` should be the size of the value in bytes .
unsafe fn into_vec(pointer: *const u8, size: usize) -> Vec<u8> {
    let mut storage: Vec<u8> = vec![0; size];
    let slice = slice::from_raw_parts(pointer, size);
    storage.as_mut_slice().copy_from_slice(slice);
    storage
}
unsafe fn into_vec ( pointer : * const u8 , size : usize ) -> Vec < u8 > { let mut storage : Vec < u8 > = vec ! [ 0 size ] ; let slice = slice :: from_raw_parts ( pointer , size ) ; storage . as_mut_slice ( ) . copy_from_slice ( slice ) ; storage }
Copy a raw pointer into an owned `Vec<u8>`.
Copy a raw pointer into an owned ` Vec<u8 > ` .
pointer
*const u8
size
usize