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

Function platform_memcpy

loader/windows/src/platform.c:241–248  ·  view source on GitHub ↗

* <!-- description --> * @brief Copies "num" bytes from "src" to "dst". If "src" or "dst" are * NULLPTR, returns LOADER_FAILURE, otherwise returns 0. * * <!-- inputs/outputs --> * @param dst a pointer to the memory to copy to * @param src a pointer to the memory to copy from * @param num the number of bytes to copy */

Source from the content-addressed store, hash-verified

239 * @param num the number of bytes to copy
240 */
241void
242platform_memcpy(void *const dst, void const *const src, uint64_t const num) NOEXCEPT
243{
244 platform_expects(NULLPTR != dst);
245 platform_expects(NULLPTR != src);
246
247 RtlCopyMemory(dst, src, num);
248}
249
250/**
251 * <!-- description -->

Callers

nothing calls this directly

Calls 1

platform_expectsFunction · 0.70

Tested by

no test coverage detected