diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-16 15:24:24 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-16 15:24:24 +0200 |
commit | ab621173afc918797a4ea68b5d6ceee7cc043f72 (patch) | |
tree | e347f9ff7b8139851e69a84b58717a93e957ab92 /c/data.cpp | |
parent | 1cb00589065fd05b8d7cf0030eed84c488e9634d (diff) | |
download | EpisodeBrowser-ab621173afc918797a4ea68b5d6ceee7cc043f72.tar.gz |
Add data migration test.
Diffstat (limited to 'c/data.cpp')
-rw-r--r-- | c/data.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,14 +52,14 @@ FileView::~FileView() CloseHandle(hf); } -void Write(unsigned char* buf, const ElvData& e) +void Write(unsigned char* buf, const ElvDataA& e) { memcpy(buf, reinterpret_cast<const unsigned char*>(&e), sizeof(e)); } -ElvData* Read(unsigned char* const buf) +ElvDataA* Read(unsigned char* const buf) { if (buf[0] != 'a') return nullptr; - return reinterpret_cast<ElvData*>(buf); + return reinterpret_cast<ElvDataA*>(buf); } |