Open Enclave  0.12.0

◆ oe_is_within_enclave()

bool oe_is_within_enclave ( const void *  ptr,
size_t  size 

Check whether the given buffer is strictly within the enclave.

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

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