Allocates an object of the specified type.
unsafe fn allocate<T>(pool: &mut <Self as Allocator>::Pool) -> Result<*mut T, Errno>
| Name | Description |
|---|---|
| pool | The pool from which to draw memory. |
Returns a pointer to an allocated object.
If T has size 0, a call to this function behaves like a call to empty_ptr.