From 242f9c88c0a31742f2b50e9ad54cec21095480f1 Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Thu, 7 Mar 2024 12:12:27 +0700 Subject: Memory operations: copy and set --- include/MemoryOperations.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/MemoryOperations.h (limited to 'include/MemoryOperations.h') diff --git a/include/MemoryOperations.h b/include/MemoryOperations.h new file mode 100644 index 0000000..046ca1d --- /dev/null +++ b/include/MemoryOperations.h @@ -0,0 +1,16 @@ +#ifndef MEMORYOPERATIONS_H +#define MEMORYOPERATIONS_H + +#include + + +class MemoryOperations +{ + public: + // Return number of copy bytes + static uint32 copy(void *source, void *destination, uint32 sizeBytes); + // Return number of set bytes + static uint32 set(void *field, uint8 value, uint32 sizeBytes); +}; + +#endif -- cgit v1.2.3