MCUX CLNS MCUX Crypto Library Normal Secure |

Functions
mcuxClMemory_Set
mcuxClMemory

This function sets all bytes in a memory region to a specified value. More...

## Functions

mcuxClMemory_Status_Protected_t | mcuxClMemory_set (uint8_t *dst, uint8_t val, size_t len, size_t buflen)
| Sets all bytes of a memory buffer to a specified value. More...

## Detailed Description

This function sets all bytes in a memory region to a specified value.

## Function Documentation

## ◆ mcuxClMemory_set()

mcuxClMemory_Status_Protected_t mcuxClMemory_set | ( | uint8_t * | dst,
|  | uint8_t | val,
|  | size_t | len,
|  | size_t | buflen
| ) |  |

Sets all bytes of a memory buffer to a specified value.

Parameters

  [out] | dst | pointer to the buffer to be set.
  [in] | val | byte value to be set.
  [in] | len | size (in bytes) to be set.
  [in] | buflen | buffer size (if buflen < len, only buflen bytes are set).

Returns
  A flow-protected value (see Flow Protection API), indicating the number of bytes not copied (nonzero if the destination buffer is too small)

Examples
  tls_master_key_session_keys.c.