Open Enclave  0.15.0

◆ oe_host_calloc()

void* oe_host_calloc ( size_t  nmemb,
size_t  size 
)

Allocate zero-filled bytes from the host's heap.

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

Parameters
[in]nmembThe number of elements to be allocated and zero-filled.
[in]sizeThe size of each element.
Returns
The allocated memory or NULL if unable to allocate the memory.