Add RstlExtras

Former-commit-id: b2a9c6a8f3
This commit is contained in:
2023-01-12 14:46:08 -08:00
parent fd5f4fa193
commit f5a0721ec0
22 changed files with 187 additions and 63 deletions

View File

@@ -8,6 +8,7 @@ class CRefData {
public:
CRefData(const void* ptr) : x0_ptr(ptr), x4_refCount(1) {}
CRefData(const void* ptr, int refCount) : x0_ptr(ptr), x4_refCount(refCount) {}
~CRefData() {}
void* GetPtr() const { return const_cast< void* >(x0_ptr); }
int GetRefCount() const { return x4_refCount; }