This function clears a memory region. More...
Macros | |
| #define | MCUXCLMEMORY_FP_MEMORY_CLEAR(pTarget, byteLen) |
| Helper macro to call mcuxClMemory_clear with flow protection. | |
| #define | MCUXCLMEMORY_FP_MEMORY_CLEAR_WITH_BUFF(pTarget, byteLen, buffLen) |
| Helper macro to call mcuxClMemory_clear with flow protection with buffer. | |
Functions | |
| void | mcuxClMemory_clear (uint8_t *pDst, size_t length, size_t bufLength) |
| Overwrites a memory buffer with null bytes. | |
This function clears a memory region.
| #define MCUXCLMEMORY_FP_MEMORY_CLEAR | ( | pTarget, | |
| byteLen ) |
Helper macro to call mcuxClMemory_clear with flow protection.
| #define MCUXCLMEMORY_FP_MEMORY_CLEAR_WITH_BUFF | ( | pTarget, | |
| byteLen, | |||
| buffLen ) |
Helper macro to call mcuxClMemory_clear with flow protection with buffer.
| void mcuxClMemory_clear | ( | uint8_t * | pDst, |
| size_t | length, | ||
| size_t | bufLength ) |
Overwrites a memory buffer with null bytes.
If the destination buffer is too small, i.e. if bufLength < length, (length-bufLength) is added to the Flow Protection token (see Flow Protection API).
| [out] | pDst | Pointer to the buffer to be cleared. |
| [in] | length | size (in bytes) to be cleared. |
| [in] | bufLength | buffer size (if bufLength < length, only bufLength bytes are cleared). |