* <!-- description --> * @brief Sets "num" bytes in the memory pointed to by "ptr" to "val". * If the provided parameters are valid, returns 0, otherwise * returns LOADER_FAILURE. * * <!-- inputs/outputs --> * @param ptr a pointer to the memory to set * @param val the value to set each byte to * @param num the number of bytes in "ptr" to set to "val". */
| 222 | * @param num the number of bytes in "ptr" to set to "val". |
| 223 | */ |
| 224 | void |
| 225 | platform_memset(void *const ptr, uint8_t const val, uint64_t const num) NOEXCEPT |
| 226 | { |
| 227 | platform_expects(NULLPTR != ptr); |
| 228 | RtlFillMemory(ptr, num, val); |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * <!-- description --> |
nothing calls this directly
no test coverage detected