Function winter_utils::uninit_vector[][src]

pub unsafe fn uninit_vector<T>(length: usize) -> Vec<T>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Returns a vector of the specified length with un-initialized memory.

This is usually faster than requesting a vector with initialized memory and is useful when we overwrite all contents of the vector immediately after memory allocation.

Safety

Using values from the returned vector before initializing them will lead to undefined behavior.