Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ObjectHandleOnStack.cs
Go to the documentation of this file.
1
using
Internal.Runtime.CompilerServices
;
2
3
namespace
System.Runtime.CompilerServices
;
4
5
internal
ref struct
ObjectHandleOnStack
6
{
7
private
unsafe
void
*
_ptr
;
8
9
private
unsafe
ObjectHandleOnStack
(
void
* pObject)
10
{
11
_ptr
= pObject;
12
}
13
14
internal
unsafe
static
ObjectHandleOnStack
Create<T>
(ref T o) where
T
:
class
15
{
16
return
new
ObjectHandleOnStack
(
Unsafe
.AsPointer(ref o));
17
}
18
}
System.Runtime.CompilerServices.Unsafe
Definition
Unsafe.cs:6
Internal.Runtime.CompilerServices
Definition
Unsafe.cs:6
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.ConsoleKey.T
@ T
System.Runtime.CompilerServices.ObjectHandleOnStack.Create< T >
static unsafe ObjectHandleOnStack Create< T >(ref T o)
Definition
ObjectHandleOnStack.cs:14
System.Runtime.CompilerServices.ObjectHandleOnStack._ptr
unsafe void * _ptr
Definition
ObjectHandleOnStack.cs:7
System.Runtime.CompilerServices.ObjectHandleOnStack.ObjectHandleOnStack
unsafe ObjectHandleOnStack(void *pObject)
Definition
ObjectHandleOnStack.cs:9
System.Runtime.CompilerServices.ObjectHandleOnStack
Definition
ObjectHandleOnStack.cs:6
source
System.Private.CoreLib
System.Runtime.CompilerServices
ObjectHandleOnStack.cs
Generated by
1.10.0