Open Enclave  0.5.x
bool oe_is_outside_enclave ( const void *  ptr,
size_t  size 

Check whether the given buffer is strictly outside the enclave.

Check whether the buffer given by the ptr and size parameters is strictly outside the enclave's memory. If so, return true. If any portion of the buffer lies within the enclave's memory, return false.

ptrThe pointer to buffer.
sizeThe size of buffer.
Return values
trueThe buffer is strictly outside the enclave.
falseAt least some part of the buffer is inside the enclave, or the arguments are invalid. For example, if ptr is null or size causes arithmetic operations to wrap.