Open Enclave  0.13.0

◆ oe_host_malloc()

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().

Parameters
[in]sizeThe number of bytes to be allocated.
Returns
The allocated memory or NULL if unable to allocate the memory.