diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 20:03:22 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 20:03:22 +0200 |
| commit | 3e85a8e6db1a9c9a7fcf7974a1a0307b2cb145bd (patch) | |
| tree | 16d611d9190bcf4939dd054909cb3a41a6d20fb7 /src/memops.cpp | |
| parent | 7aea21f2a30e0aa3bc75a579bd01ff9746470c05 (diff) | |
strops and memops refactor
Diffstat (limited to 'src/memops.cpp')
| -rw-r--r-- | src/memops.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/memops.cpp b/src/memops.cpp index a05644a..0e0889a 100644 --- a/src/memops.cpp +++ b/src/memops.cpp @@ -42,4 +42,9 @@ void* memops::copy(void* destination, const void* source, size_t num) void memops::zero(void* destination, size_t num) { memset(destination, 0, num); +} + +bool memops::equals(void* m1, void* m2, size_t size) +{ + return memcmp(m1, m2, size) == 0; }
\ No newline at end of file |
