Port CBitArray (Mac 4.0.1 names and field names from asserts) and add the client operator delete[] that 12340 inlines everywhere. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
20 lines
409 B
C++
20 lines
409 B
C++
#ifndef ENGINE_SOURCE_BASE_BITARRAY_H
|
|
#define ENGINE_SOURCE_BASE_BITARRAY_H
|
|
|
|
#include <cstdint>
|
|
|
|
class CBitArray {
|
|
public:
|
|
/* 0000 */ char* m_array;
|
|
/* 0004 */ uint32_t m_size;
|
|
/* 0008 */ bool unk_0008;
|
|
|
|
CBitArray();
|
|
~CBitArray();
|
|
int32_t Get(uint32_t bitIdx) const;
|
|
void Set(uint32_t bitIdx, bool value);
|
|
void SetRawData(char* data, uint32_t size, bool owned);
|
|
};
|
|
|
|
#endif
|