Open Enclave
void* oe_host_malloc ( size_t  size)

Allocate bytes from the host's heap.

This function allocates size bytes from the host's heap and returns the address of the allocated memory. The implementation performs an OCALL to the host, which calls malloc(). To free the memory, it must be passed to oe_host_free().

sizeThe number of bytes to be allocated.
The allocated memory or NULL if unable to allocate the memory.