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.
- Parameters
-
ptr | The pointer pointer to buffer. |
size | The size of buffer |
- Return values
-
true | The buffer is strictly within the enclave. |
false | At 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. |