mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CMemory: add reference overload
Assign pointer to reference.
This commit is contained in:
parent
a27f1b7fc9
commit
de3d3b49a1
@ -48,6 +48,12 @@ public:
|
||||
return ptr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline void GetPtr(T*& outPtr) const
|
||||
{
|
||||
outPtr = reinterpret_cast<T*>(ptr);
|
||||
}
|
||||
|
||||
template<class T> inline T GetValue(void) const
|
||||
{
|
||||
return *reinterpret_cast<T*>(ptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user