aboutsummaryrefslogtreecommitdiff
path: root/c/data.cpp
diff options
context:
space:
mode:
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);
}