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.
1using System;
3
4namespace 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 {
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;
22 this.sync = num;
23 long num3 = 0L;
24 if (num2 != 0)
25 {
26 Monitor.Exit(this);
27 }
28 if (num3 == 0L)
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 = 0L;
43 if (obj != null)
44 {
45 Monitor.Exit(this);
46 }
47 if (num3 == 0L)
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}
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47