mz_timely_util::containers::alloc

Function alloc_aligned_zeroed

Source
pub(crate) fn alloc_aligned_zeroed<T: AnyBitPattern>(len: usize) -> Region<T>
Expand description

Allocate a region of memory with a capacity of at least len that is properly aligned and zeroed. The memory in Regions is always aligned to its content type.