Function collections::vec::raw::from_bufDeprecated [-]  [+] [src]

pub unsafe fn from_buf<T>(ptr: *const T, elts: uint) -> Vec<T>

Constructs a vector from an unsafe pointer to a buffer.

The elements of the buffer are copied into the vector without cloning, as if ptr::read() were called on them.