diff --git a/src/tests/system/kernel/file_corruption/CheckSum.h b/src/tests/system/kernel/file_corruption/CheckSum.h index 7c1000d3e0..8fefe7769d 100644 --- a/src/tests/system/kernel/file_corruption/CheckSum.h +++ b/src/tests/system/kernel/file_corruption/CheckSum.h @@ -12,6 +12,10 @@ struct CheckSum { + const uint8* Data() const + { + return fData; + } bool IsZero() const { @@ -29,6 +33,12 @@ struct CheckSum { return *this; } + CheckSum& operator=(const void* buffer) + { + memcpy(fData, buffer, sizeof(fData)); + return *this; + } + bool operator==(const void* buffer) const { return memcmp(fData, buffer, sizeof(fData)) == 0;