HandleClose, HandleCreate, HandleDuplicate; HandleDereference inline; empty HandleInitialize/HandleDestroy (folded). CHandleObject in Base/Handle.h with its real layout (vtable, m_refcount at +4), which moves TEXTBLOCK::m_string and FONTHASHOBJ's fields by 4. HOBJECT in Base/Types.h. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
39 lines
765 B
C++
39 lines
765 B
C++
#ifndef ENGINE_SOURCE_BASE_HANDLE_H
|
|
#define ENGINE_SOURCE_BASE_HANDLE_H
|
|
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/Types.h"
|
|
|
|
class CHandleObject {
|
|
public:
|
|
/* 0004 */ int32_t m_refcount;
|
|
|
|
virtual ~CHandleObject();
|
|
virtual const char* GetObjectName();
|
|
|
|
CHandleObject();
|
|
};
|
|
|
|
void HandleClose(HOBJECT handle);
|
|
HOBJECT HandleCreate(CHandleObject* ptr, const char* handleName);
|
|
CHandleObject* HandleDereference(HOBJECT handle);
|
|
void HandleDestroy();
|
|
HOBJECT HandleDuplicate(HOBJECT handle);
|
|
void HandleInitialize();
|
|
|
|
// INLINED
|
|
inline CHandleObject::CHandleObject() {
|
|
this->m_refcount = 0;
|
|
}
|
|
|
|
// INLINED
|
|
inline CHandleObject::~CHandleObject() {
|
|
}
|
|
|
|
// INLINED
|
|
inline const char* CHandleObject::GetObjectName() {
|
|
return nullptr;
|
|
}
|
|
|
|
#endif
|