aboutsummaryrefslogtreecommitdiff
path: root/c/data.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-16 15:24:24 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-16 15:24:24 +0200
commitab621173afc918797a4ea68b5d6ceee7cc043f72 (patch)
treee347f9ff7b8139851e69a84b58717a93e957ab92 /c/data.cpp
parent1cb00589065fd05b8d7cf0030eed84c488e9634d (diff)
downloadEpisodeBrowser-ab621173afc918797a4ea68b5d6ceee7cc043f72.tar.gz
Add data migration test.
Diffstat (limited to 'c/data.cpp')
-rw-r--r--c/data.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/data.cpp b/c/data.cpp
index fe348e7..60decc9 100644
--- a/c/data.cpp
+++ b/c/data.cpp
@@ -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);
}