Function collections::vec::raw::from_buf[src]

pub unsafe fn from_buf<T>(ptr: *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.