Photon Fusion
2.1.1
A type-safe wrapper around raw memory. More...
Static Public Member Functions | |
| static UniquePtr | MakeUniquePtr< T > (ref T *ptr) |
| Take ownership of ptr . Pointer ptr is nullified. | |
| static UniquePtr< T > | MakeUniquePtrT< T > (ref T *ptr) |
| Take ownership of ptr . Pointer ptr is nullified. | |
| static UniquePtr | MoveUniquePtr (ref UniquePtr ptr) |
| Transfers ptr to a new instance. ptr is set to default after this operation. | |
| static UniquePtr< T > | MoveUniquePtr< T > (ref UniquePtr< T > ptr) |
| Transfers ptr to a new instance. ptr is set to default after this operation. | |
| static bool | ReleaseUniquePtr< T > (ref UniquePtr ptr, out T *result) |
| Converts ptr to a raw pointer. The caller takes control of result lifetime. | |
| static bool | ReleaseUniquePtr< T > (ref UniquePtr< T > ptr, out T *result) |
| Converts ptr to a raw pointer. The caller takes control of result lifetime. | |
A type-safe wrapper around raw memory.
| ptr | |
| typeId |