Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
TraceLoggingEventHandleTable.cs
Go to the documentation of this file.
1
using
System.Threading
;
2
3
namespace
System.Diagnostics.Tracing
;
4
5
internal
sealed
class
TraceLoggingEventHandleTable
6
{
7
private
IntPtr
[]
m_innerTable
;
8
9
internal
IntPtr
this
[
int
eventID]
10
{
11
get
12
{
13
IntPtr
result =
IntPtr
.
Zero
;
14
IntPtr
[]
array
=
Volatile
.
Read
(ref
m_innerTable
);
15
if
(eventID >= 0 && eventID <
array
.Length)
16
{
17
result =
array
[eventID];
18
}
19
return
result;
20
}
21
}
9
internal
IntPtr
this
[
int
eventID] {
…
};
22
23
internal
TraceLoggingEventHandleTable
()
24
{
25
m_innerTable
=
new
IntPtr
[10];
26
}
23
internal
TraceLoggingEventHandleTable
() {
…
}
27
28
internal
void
SetEventHandle
(
int
eventID,
IntPtr
eventHandle)
29
{
30
if
(eventID >=
m_innerTable
.Length)
31
{
32
int
num = m_innerTable.Length * 2;
33
if
(num <= eventID)
34
{
35
num = eventID + 1;
36
}
37
IntPtr
[]
array
=
new
IntPtr
[num];
38
Array
.
Copy
(
m_innerTable
,
array
,
m_innerTable
.Length);
39
Volatile
.
Write
(ref
m_innerTable
,
array
);
40
}
41
m_innerTable
[eventID] = eventHandle;
42
}
28
internal
void
SetEventHandle
(
int
eventID,
IntPtr
eventHandle) {
…
}
43
}
5
internal
sealed
class
TraceLoggingEventHandleTable
{
…
};
System.Array.Copy
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition
Array.cs:624
System.Array
Definition
Array.cs:16
System.Diagnostics.Tracing.TraceLoggingEventHandleTable.SetEventHandle
void SetEventHandle(int eventID, IntPtr eventHandle)
Definition
TraceLoggingEventHandleTable.cs:28
System.Diagnostics.Tracing.TraceLoggingEventHandleTable.TraceLoggingEventHandleTable
TraceLoggingEventHandleTable()
Definition
TraceLoggingEventHandleTable.cs:23
System.Diagnostics.Tracing.TraceLoggingEventHandleTable.m_innerTable
IntPtr[] m_innerTable
Definition
TraceLoggingEventHandleTable.cs:7
System.Diagnostics.Tracing.TraceLoggingEventHandleTable
Definition
TraceLoggingEventHandleTable.cs:6
System.Threading.Volatile.Read
static bool Read(ref bool location)
Definition
Volatile.cs:67
System.Threading.Volatile.Write
static void Write(ref bool location, bool value)
Definition
Volatile.cs:74
System.Threading.Volatile
Definition
Volatile.cs:9
System.Diagnostics.Tracing
Definition
ActivityTracker.cs:4
System.Threading
Definition
TaskToApm.cs:3
System.ExceptionArgument.array
@ array
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
source
System.Private.CoreLib
System.Diagnostics.Tracing
TraceLoggingEventHandleTable.cs
Generated by
1.10.0