Port CDataRecycler following the 12340 binary (Link takes two arguments). Move every non-template function body out of the Base headers into their .cpp files, give TRefCnt its own RefCount.cpp, and record the rule in CODING_RULES.md. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
44 lines
918 B
C++
44 lines
918 B
C++
#ifndef ENGINE_SOURCE_BASE_RCSTRING_H
|
|
#define ENGINE_SOURCE_BASE_RCSTRING_H
|
|
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/RefCount.h"
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
|
|
class RCString : public TRefCnt {
|
|
public:
|
|
/* 0008 */ const char* m_str;
|
|
|
|
RCString();
|
|
virtual ~RCString();
|
|
void Copy(const RCString& source);
|
|
void Copy(const char* str);
|
|
};
|
|
|
|
class CStringMemory : public TSGrowableArray<void*> {
|
|
public:
|
|
/* 0010 */ char* unk_0010;
|
|
/* 0014 */ char* unk_0014;
|
|
|
|
CStringMemory();
|
|
~CStringMemory();
|
|
void AllocateBlock(uint32_t size);
|
|
char* New(const char* str);
|
|
};
|
|
|
|
class CStringManager {
|
|
public:
|
|
/* 0000 */ char* unk_0000[521];
|
|
/* 0824 */ CStringMemory unk_0824;
|
|
|
|
static CStringManager* s_stringManager;
|
|
|
|
static void DestroyManager();
|
|
static CStringManager* Get();
|
|
|
|
CStringManager();
|
|
const char* Add(const char* str);
|
|
};
|
|
|
|
#endif
|