diff options
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); } |