terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
RingBuffer.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Threading
;
3
4
namespace
InControl.Internal
5
{
6
// Token: 0x02000075 RID: 117
7
public
class
RingBuffer
<T>
8
{
9
// Token: 0x06000570 RID: 1392 RVA: 0x00010D7C File Offset: 0x0000EF7C
10
public
RingBuffer
(
int
size
)
11
{
12
this.size
=
size
;
13
}
14
15
// Token: 0x06000571 RID: 1393 RVA: 0x00010D98 File Offset: 0x0000EF98
16
public
void
Enqueue
(T
value
)
17
{
18
int
num = this.
size
;
19
int
num2
= this.
tail
;
20
object
obj
= this.
sync
;
21
this.tail
=
num2
;
22
this.sync
= num;
23
long
num3
= 0
L
;
24
if
(
num2
!= 0)
25
{
26
Monitor
.
Exit
(
this
);
27
}
28
if
(
num3
== 0
L
)
29
{
30
return
;
31
}
32
throw
new
OutOfMemoryException
();
33
}
34
35
// Token: 0x06000572 RID: 1394 RVA: 0x00010DFC File Offset: 0x0000EFFC
36
public
T
Dequeue
()
37
{
38
int
num = this.
size
;
39
object
obj
= this.
sync
;
40
int
num2
= this.
tail
;
41
this.sync
=
obj
;
42
long
num3
= 0
L
;
43
if
(obj !=
null
)
44
{
45
Monitor
.
Exit
(
this
);
46
}
47
if
(
num3
== 0
L
)
48
{
49
}
50
throw
new
OutOfMemoryException
();
51
}
52
53
// Token: 0x0400040C RID: 1036
54
private
readonly
int
size
;
55
56
// Token: 0x0400040D RID: 1037
57
private
readonly
T[]
data
;
58
59
// Token: 0x0400040E RID: 1038
60
private
int
head
;
61
62
// Token: 0x0400040F RID: 1039
63
private
int
tail
;
64
65
// Token: 0x04000410 RID: 1040
66
private
readonly
object
sync
;
67
}
68
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
InControl.Internal.RingBuffer.Dequeue
T Dequeue()
Definition
RingBuffer.cs:36
InControl.Internal.RingBuffer.size
readonly int size
Definition
RingBuffer.cs:54
InControl.Internal.RingBuffer.data
readonly T[] data
Definition
RingBuffer.cs:57
InControl.Internal.RingBuffer.sync
readonly object sync
Definition
RingBuffer.cs:66
InControl.Internal.RingBuffer.Enqueue
void Enqueue(T value)
Definition
RingBuffer.cs:16
InControl.Internal.RingBuffer.tail
int tail
Definition
RingBuffer.cs:63
InControl.Internal.RingBuffer.head
int head
Definition
RingBuffer.cs:60
InControl.Internal.RingBuffer.RingBuffer
RingBuffer(int size)
Definition
RingBuffer.cs:10
InControl.Internal.RingBuffer
Definition
RingBuffer.cs:8
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor
Definition
Monitor.cs:9
InControl.Internal
Definition
CodeWriter.cs:6
InControl.Key.L
@ L
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
source
InControl
Internal
RingBuffer.cs
Generated by
1.10.0