MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UnsafeMemoryCopy

Function UnsafeMemoryCopy

Source/Engine/Core/Utilities.h:154–162  ·  view source on GitHub ↗

Copy memory region but ignoring address sanatizer checks for memory regions.

Source from the content-addressed store, hash-verified

152
153 // Copy memory region but ignoring address sanatizer checks for memory regions.
154 NO_SANITIZE_ADDRESS static void UnsafeMemoryCopy(void* dst, const void* src, uint64 size)
155 {
156#if BUILD_RELEASE
157 memcpy(dst, src, static_cast<size_t>(size));
158#else
159 for (uint64 i = 0; i < size; i++)
160 ((byte*)dst)[i] = ((byte*)src)[i];
161#endif
162 }
163}

Callers 1

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected