Batch #1128 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_00113 CGGHash::GetSize: byte-identical - fn_00114 CGGHash::GetError: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Utility/GGHash.cpp
35 lines
597 B
C++
35 lines
597 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_GGHASH_H
|
|
#define RAGNAROK_SOURCE_UTILITY_GGHASH_H
|
|
|
|
#include <cstdlib>
|
|
#include <windows.h>
|
|
|
|
class CGGHash {
|
|
public:
|
|
CGGHash();
|
|
virtual ~CGGHash();
|
|
|
|
DWORD GetSize() const;
|
|
DWORD GetError() const;
|
|
|
|
protected:
|
|
// INLINED
|
|
void Clear() {
|
|
this->m_error = 0;
|
|
this->m_size = 0;
|
|
if (this->m_data) {
|
|
std::free(this->m_data);
|
|
this->m_data = nullptr;
|
|
}
|
|
}
|
|
|
|
/* 0004 */ DWORD m_error;
|
|
/* 0008 */ DWORD m_size;
|
|
/* 000C */ BYTE* m_data;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CGGHash) == 16);
|
|
#endif
|
|
|
|
#endif
|