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
RNGCryptoServiceProvider.cs
Go to the documentation of this file.
1using System;
3using System.Text;
5
7{
8 // Token: 0x02000315 RID: 789
10 {
11 // Token: 0x06001AC7 RID: 6855 RVA: 0x00039CC8 File Offset: 0x00037EC8
13 {
14 }
15
16 // Token: 0x06001AC8 RID: 6856 RVA: 0x00039CD8 File Offset: 0x00037ED8
18 {
19 long num = 0L;
20 this._handle = num;
21 this.Check();
22 }
23
24 // Token: 0x06001AC9 RID: 6857 RVA: 0x00039CFC File Offset: 0x00037EFC
26 {
27 if (rgb != null)
28 {
29 return;
30 }
32 this.Check();
33 }
34
35 // Token: 0x06001ACA RID: 6858 RVA: 0x00039D20 File Offset: 0x00037F20
37 {
38 long num = 0L;
39 this._handle = num;
40 this.Check();
41 }
42
43 // Token: 0x06001ACB RID: 6859 RVA: 0x00039D44 File Offset: 0x00037F44
44 public RNGCryptoServiceProvider(string str)
45 {
46 if (str == null)
47 {
48 return;
49 }
51 if (utf != null)
52 {
53 CodePageDataItem dataItem = utf.dataItem;
54 return;
55 }
56 long num = 0L;
57 this._handle = num;
58 this.Check();
59 }
60
61 // Token: 0x06001ACC RID: 6860 RVA: 0x00039D80 File Offset: 0x00037F80
62 private void Check()
63 {
64 IntPtr handle = this._handle;
65 }
66
67 // Token: 0x06001ACD RID: 6861 RVA: 0x0000207A File Offset: 0x0000027A
68 private static bool RngOpen()
69 {
70 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
71 }
72
73 // Token: 0x06001ACE RID: 6862 RVA: 0x0000207A File Offset: 0x0000027A
74 private unsafe static IntPtr RngInitialize(byte* seed, IntPtr seed_length)
75 {
76 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
77 }
78
79 // Token: 0x06001ACF RID: 6863 RVA: 0x0000207A File Offset: 0x0000027A
80 private unsafe static IntPtr RngGetBytes(IntPtr handle, byte* data, IntPtr data_length)
81 {
82 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
83 }
84
85 // Token: 0x06001AD0 RID: 6864 RVA: 0x00039DA0 File Offset: 0x00037FA0
86 private static void RngClose(IntPtr handle)
87 {
88 }
89
90 // Token: 0x06001AD1 RID: 6865 RVA: 0x00039DB0 File Offset: 0x00037FB0
91 public override void GetBytes(byte[] data)
92 {
93 int num = 1;
94 if (data != null)
95 {
96 if (num == 0)
97 {
98 }
99 IntPtr handle = this._handle;
100 long num2 = 0L;
101 this._handle = handle;
102 int num3 = 9;
103 if (num2 == 0L)
104 {
105 if (num3 != 0)
106 {
107 return;
108 }
109 this.Check();
110 return;
111 }
112 }
113 throw new OutOfMemoryException();
114 }
115
116 // Token: 0x06001AD2 RID: 6866 RVA: 0x00039E18 File Offset: 0x00038018
117 internal unsafe void GetBytes(byte* data, IntPtr data_length)
118 {
119 if (!true)
120 {
121 }
122 if (true)
123 {
124 if (!true)
125 {
126 }
127 IntPtr handle = this._handle;
128 long num = 0L;
129 this._handle = handle;
130 if (num != 0L)
131 {
132 throw new OutOfMemoryException();
133 }
134 if (3 != 0)
135 {
136 return;
137 }
138 }
139 else
140 {
141 IntPtr handle2 = this._handle;
143 }
144 this.Check();
145 }
146
147 // Token: 0x06001AD3 RID: 6867 RVA: 0x00039E7C File Offset: 0x0003807C
148 public override void GetNonZeroBytes(byte[] data)
149 {
150 while (data == null)
151 {
152 }
153 IntPtr handle = this._handle;
154 this._handle = handle;
155 this.Check();
156 }
157
158 // Token: 0x06001AD4 RID: 6868 RVA: 0x00039EA4 File Offset: 0x000380A4
159 protected override void Finalize()
160 {
161 IntPtr handle = this._handle;
162 IntPtr handle2 = this._handle;
163 base.Finalize();
164 }
165
166 // Token: 0x06001AD5 RID: 6869 RVA: 0x00039EEC File Offset: 0x000380EC
167 protected override void Dispose(bool disposing)
168 {
169 base.Dispose(disposing);
170 }
171
172 // Token: 0x04000DA8 RID: 3496
173 private static object _lock;
174
175 // Token: 0x04000DA9 RID: 3497
177 }
178}
class f__AnonymousType0<< Count > j__TPar
static unsafe IntPtr RngInitialize(byte *seed, IntPtr seed_length)
static unsafe IntPtr RngGetBytes(IntPtr handle, byte *data, IntPtr data_length)
unsafe void GetBytes(byte *data, IntPtr data_length)
static Encoding UTF8
Definition Encoding.cs:828