MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / platform_memset

Function platform_memset

loader/windows/src/platform.c:224–229  ·  view source on GitHub ↗

* <!-- 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". */

Source from the content-addressed store, hash-verified

222 * @param num the number of bytes in "ptr" to set to "val".
223 */
224void
225platform_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 -->

Callers

nothing calls this directly

Calls 1

platform_expectsFunction · 0.70

Tested by

no test coverage detected