pub fn AllocatePoolVec<T>(&self, mt: MemoryType, capacity: usize) -> PoolVec<T> {
		let mut ptr = ::core::ptr::null_mut();
		// NOTE: AllocatePool returns 8-byte aligned data
		assert!(::core::mem::align_of::<T>() <= 8);
		// SAFE: Allocation cannot cause unsafety
		unsafe { (self.AllocatePool)(mt, capacity * ::core::mem::size_of::<T>(), &mut ptr) };
		unsafe { PoolVec::from_ptr(self, ptr as *mut T, capacity, 0) }
	}
/// Allocate a `Vec`-alike from the firmware's general use pool
Allocate a `Vec`-alike from the firmware's general use pool
Allocate a ` Vec ` - alike from the firmware ' s general use pool
pub fn AllocatePoolVec<T>(&self, mt: MemoryType, capacity: usize) -> PoolVec<T> {
		let mut ptr = ::core::ptr::null_mut();
		// NOTE: AllocatePool returns 8-byte aligned data
		assert!(::core::mem::align_of::<T>() <= 8);
		// SAFE: Allocation cannot cause unsafety
		unsafe { (self.AllocatePool)(mt, capacity * ::core::mem::size_of::<T>(), &mut ptr) };
		unsafe { PoolVec::from_ptr(self, ptr as *mut T, capacity, 0) }
	}
pub fn AllocatePoolVec < T > ( & self , mt : MemoryType , capacity : usize ) -> PoolVec < T > { let mut ptr = :: core :: ptr :: null_mut ( ) ; // NOTE: AllocatePool returns 8-byte aligned data assert ! ( core mem align_of T ( ) 8 ) ; // SAFE: Allocation cannot cause unsafety unsafe { ( self . AllocatePool ) ( mt , capacity * :: core :: mem :: size_of :: < T > ( ) , & mut ptr ) } ; unsafe { PoolVec :: from_ptr ( self , ptr as * mut T , capacity , 0 ) } }
Allocate a `Vec`-alike from the firmware's general use pool
Allocate a ` Vec ` - alike from the firmware ' s general use pool
&self
mt
MemoryType
capacity
usize