Function ext_php_rs::php::alloc::emalloc [−][src]
pub fn emalloc(layout: Layout) -> *mut u8
This is supported on crate feature
alloc
only.Expand description
Uses the PHP memory allocator to allocate request-bound memory.
Parameters
layout
- The layout of the requested memory.
Returns
A pointer to the memory allocated.