diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-10-25 16:26:18 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-10-25 16:26:18 +0100 |
commit | ece4f1ad6630f339ed02caa859851e66a96b5f33 (patch) | |
tree | a5fe63dc9f0f90926dce0cf6a16f4ca423e5d6e3 | |
parent | 738444bddcf49c09744519a44920dde9d1f29359 (diff) |
TBitArray: Changed struct to class
-rw-r--r-- | src/SBaseFileTable.cpp | 4 | ||||
-rw-r--r-- | src/StormLib.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index e94e61f..d78c3a8 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -59,8 +59,10 @@ static DWORD GetNecessaryBitCount(ULONGLONG MaxValue) //-----------------------------------------------------------------------------
// Implementation of the TBitArray struc
-struct TBitArray
+class TBitArray
{
+ public:
+
void GetBits(unsigned int nBitPosition, unsigned int nBitLength, void * pvBuffer, int nResultSize);
void SetBits(unsigned int nBitPosition, unsigned int nBitLength, void * pvBuffer, int nResultSize);
diff --git a/src/StormLib.h b/src/StormLib.h index 4ddfee3..3a52a65 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -480,7 +480,7 @@ typedef void (WINAPI * SFILE_ADDFILE_CALLBACK)(void * pvUserData, DWORD dwBytesW typedef void (WINAPI * SFILE_COMPACT_CALLBACK)(void * pvUserData, DWORD dwWorkType, ULONGLONG BytesProcessed, ULONGLONG TotalBytes); struct TFileStream; -struct TBitArray; +class TBitArray; //----------------------------------------------------------------------------- // Structures related to MPQ format |