Copy memory region but ignoring address sanatizer checks for memory regions.
| 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 | } |
no test coverage detected