commit e625b3a58466c8aa0f20f0c59cde6ecd015f7f38
parent e800f1c961247191647953c45a18fbe63529edce
Author: Christian Ermann <christianermann@gmail.com>
Date: Fri, 29 Jul 2022 19:44:32 -0700
Added copyMemory function
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/memory.h b/include/memory.h
@@ -15,4 +15,5 @@ void *s_alloc(u64 size, memory_tag tag);
void s_free(void *mem, u64 size, memory_tag tag);
void s_zeroMemory(void *mem, u64 size);
+void s_copyMemory(void *dst, void *src, u64 size);
diff --git a/src/memory.c b/src/memory.c
@@ -46,3 +46,8 @@ void s_zeroMemory(void *mem, u64 size)
memset(mem, 0, size);
}
+void s_copyMemory(void *dst, void *src, u64 size)
+{
+ memcpy(dst, src, size);
+}
+