This function sets all bytes in a memory region to a specified value. More...
Macros | |
| #define | MCUXCLMEMORY_FP_MEMORY_SET(pTarget, val, byteLen) |
| Helper macro to call mcuxClMemory_set with flow protection. | |
| #define | MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF(pTarget, val, byteLen, buffLen) |
| Helper macro to call mcuxClMemory_set with flow protection with buffer. | |
Functions | |
| void | mcuxClMemory_set (uint8_t *pDst, uint8_t val, size_t length, size_t bufLength) |
| Sets all bytes of a memory buffer to a specified value. | |
This function sets all bytes in a memory region to a specified value.
| #define MCUXCLMEMORY_FP_MEMORY_SET | ( | pTarget, | |
| val, | |||
| byteLen ) |
Helper macro to call mcuxClMemory_set with flow protection.
| #define MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF | ( | pTarget, | |
| val, | |||
| byteLen, | |||
| buffLen ) |
Helper macro to call mcuxClMemory_set with flow protection with buffer.
| void mcuxClMemory_set | ( | uint8_t * | pDst, |
| uint8_t | val, | ||
| size_t | length, | ||
| size_t | bufLength ) |
Sets all bytes of a memory buffer to a specified value.
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 set. |
| [in] | val | byte value to be set. |
| [in] | length | size (in bytes) to be set. |
| [in] | bufLength | buffer size (if bufLength < length, only bufLength bytes are set). |