Function ext_php_rs::alloc::emalloc[][src]

pub fn emalloc(layout: Layout) -> *mut u8
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.