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
CrcCalculatorStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace Ionic.Crc
6{
7 // Token: 0x0200005D RID: 93
9 {
10 // Token: 0x0600040B RID: 1035 RVA: 0x0000F688 File Offset: 0x0000D888
12 {
13 }
14
15 // Token: 0x0600040C RID: 1036 RVA: 0x0000F698 File Offset: 0x0000D898
16 public CrcCalculatorStream(Stream stream, bool leaveOpen)
17 {
18 if (!true)
19 {
20 }
21 }
22
23 // Token: 0x0600040D RID: 1037 RVA: 0x0000F6A8 File Offset: 0x0000D8A8
24 public CrcCalculatorStream(Stream stream, long length)
25 {
26 }
27
28 // Token: 0x0600040E RID: 1038 RVA: 0x0000F6B8 File Offset: 0x0000D8B8
29 public CrcCalculatorStream(Stream stream, long length, bool leaveOpen)
30 {
31 }
32
33 // Token: 0x0600040F RID: 1039 RVA: 0x0000F6C8 File Offset: 0x0000D8C8
34 public CrcCalculatorStream(Stream stream, long length, bool leaveOpen, CRC32 crc32)
35 {
36 }
37
38 // Token: 0x06000410 RID: 1040 RVA: 0x0000F6D8 File Offset: 0x0000D8D8
39 private CrcCalculatorStream(bool leaveOpen, long length, Stream stream, CRC32 crc32)
40 {
42 if (!true)
43 {
44 }
45 base..ctor();
46 this._innerStream = stream;
47 if (crc32 == null)
48 {
49 }
51 this._leaveOpen = leaveOpen;
52 }
53
54 // Token: 0x170000F7 RID: 247
55 // (get) Token: 0x06000411 RID: 1041 RVA: 0x0000F710 File Offset: 0x0000D910
57 {
58 get
59 {
60 return this._Crc32._TotalBytesRead;
61 }
62 }
63
64 // Token: 0x170000F8 RID: 248
65 // (get) Token: 0x06000412 RID: 1042 RVA: 0x0000F728 File Offset: 0x0000D928
66 public int Crc
67 {
68 get
69 {
70 /*
71An exception occurred when decompiling this method (06000412)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Crc.CrcCalculatorStream::get_Crc()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:uint32(var_0_0B, ldfld:uint32(CRC32::_register, ldfld:CRC32(CrcCalculatorStream::_Crc32, ldloc:CrcCalculatorStream(this))))
79}
80
81 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
82 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
83 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
84 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
85 --- End of inner exception stack trace ---
86 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
87 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
88*/;
89 }
90 }
91
92 // Token: 0x170000F9 RID: 249
93 // (get) Token: 0x06000413 RID: 1043 RVA: 0x0000F740 File Offset: 0x0000D940
94 // (set) Token: 0x06000414 RID: 1044 RVA: 0x0000F754 File Offset: 0x0000D954
95 public bool LeaveOpen
96 {
97 get
98 {
99 return this._leaveOpen;
100 }
101 set
102 {
103 }
104 }
105
106 // Token: 0x06000415 RID: 1045 RVA: 0x0000F764 File Offset: 0x0000D964
107 public override int Read(byte[] buffer, int offset, int count)
108 {
109 /*
110An exception occurred when decompiling this method (06000415)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Crc.CrcCalculatorStream::Read(System.Byte[],System.Int32,System.Int32)
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:int64(var_0_06, ldfld:int64(CrcCalculatorStream::_lengthLimit, ldloc:CrcCalculatorStream(this)))
118 stloc:CRC32(var_1_0D, ldfld:CRC32(CrcCalculatorStream::_Crc32, ldloc:CrcCalculatorStream(this)))
119 stloc:int64(var_2_14, ldfld:int64(CrcCalculatorStream::_lengthLimit, ldloc:CrcCalculatorStream(this)))
120 stloc:int64(var_3_1B, ldfld:int64(CRC32::_TotalBytesRead, ldloc:CRC32(var_1_0D)))
121 stloc:Stream(var_4_22, ldfld:Stream(CrcCalculatorStream::_innerStream, ldloc:CrcCalculatorStream(this)))
122 stloc:CRC32(var_5_2A, ldfld:CRC32(CrcCalculatorStream::_Crc32, ldloc:CrcCalculatorStream(this)))
123}
124
125 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
126 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
127 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
128 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
129 --- End of inner exception stack trace ---
130 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
131 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
132*/;
133 }
134
135 // Token: 0x06000416 RID: 1046 RVA: 0x0000F7A0 File Offset: 0x0000D9A0
136 public override void Write(byte[] buffer, int offset, int count)
137 {
138 this._Crc32.SlurpBlock(buffer, offset, count);
139 Stream innerStream = this._innerStream;
140 }
141
142 // Token: 0x170000FA RID: 250
143 // (get) Token: 0x06000417 RID: 1047 RVA: 0x0000F7C4 File Offset: 0x0000D9C4
144 public override bool CanRead
145 {
146 get
147 {
148 /*
149An exception occurred when decompiling this method (06000417)
150
151ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Crc.CrcCalculatorStream::get_CanRead()
152
153 ---> System.Exception: Basic block has to end with unconditional control flow.
154{
155 Block_0:
156 stloc:Stream(var_0_06, ldfld:Stream(CrcCalculatorStream::_innerStream, ldloc:CrcCalculatorStream(this)))
157}
158
159 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
160 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
161 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
162 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
163 --- End of inner exception stack trace ---
164 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
165 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
166*/;
167 }
168 }
169
170 // Token: 0x170000FB RID: 251
171 // (get) Token: 0x06000418 RID: 1048 RVA: 0x0000F7D8 File Offset: 0x0000D9D8
172 public override bool CanSeek
173 {
174 get
175 {
176 }
177 }
178
179 // Token: 0x170000FC RID: 252
180 // (get) Token: 0x06000419 RID: 1049 RVA: 0x0000F7E8 File Offset: 0x0000D9E8
181 public override bool CanWrite
182 {
183 get
184 {
185 /*
186An exception occurred when decompiling this method (06000419)
187
188ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Crc.CrcCalculatorStream::get_CanWrite()
189
190 ---> System.Exception: Basic block has to end with unconditional control flow.
191{
192 Block_0:
193 stloc:Stream(var_0_06, ldfld:Stream(CrcCalculatorStream::_innerStream, ldloc:CrcCalculatorStream(this)))
194}
195
196 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
197 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
198 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
199 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
200 --- End of inner exception stack trace ---
201 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
202 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
203*/;
204 }
205 }
206
207 // Token: 0x0600041A RID: 1050 RVA: 0x0000F7FC File Offset: 0x0000D9FC
208 public override void Flush()
209 {
210 Stream innerStream = this._innerStream;
211 }
212
213 // Token: 0x170000FD RID: 253
214 // (get) Token: 0x0600041B RID: 1051 RVA: 0x0000F810 File Offset: 0x0000DA10
215 public override long Length
216 {
217 get
218 {
219 long lengthLimit = this._lengthLimit;
220 Stream innerStream = this._innerStream;
221 return this._lengthLimit;
222 }
223 }
224
225 // Token: 0x170000FE RID: 254
226 // (get) Token: 0x0600041C RID: 1052 RVA: 0x0000F834 File Offset: 0x0000DA34
227 // (set) Token: 0x0600041D RID: 1053 RVA: 0x00002122 File Offset: 0x00000322
228 public override long Position
229 {
230 get
231 {
232 return this._Crc32._TotalBytesRead;
233 }
234 set
235 {
236 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
237 }
238 }
239
240 // Token: 0x0600041E RID: 1054 RVA: 0x00002122 File Offset: 0x00000322
241 public override long Seek(long offset, SeekOrigin origin)
242 {
243 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
244 }
245
246 // Token: 0x0600041F RID: 1055 RVA: 0x00002122 File Offset: 0x00000322
247 public override void SetLength(long value)
248 {
249 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
250 }
251
252 // Token: 0x06000420 RID: 1056 RVA: 0x0000F84C File Offset: 0x0000DA4C
254 {
255 }
256
257 // Token: 0x06000421 RID: 1057 RVA: 0x0000F85C File Offset: 0x0000DA5C
258 public override void Close()
259 {
260 base.Close();
261 if (this._leaveOpen)
262 {
263 return;
264 }
265 Stream innerStream = this._innerStream;
266 }
267
268 // Token: 0x06000422 RID: 1058 RVA: 0x0000F880 File Offset: 0x0000DA80
269 // Note: this type is marked as 'beforefieldinit'.
271 {
272 }
273
274 // Token: 0x04000321 RID: 801
275 private static readonly long UnsetLengthLimit;
276
277 // Token: 0x04000322 RID: 802
279
280 // Token: 0x04000323 RID: 803
281 private CRC32 _Crc32;
282
283 // Token: 0x04000324 RID: 804
284 private long _lengthLimit;
285
286 // Token: 0x04000325 RID: 805
287 private bool _leaveOpen;
288 }
289}
class f__AnonymousType0<< Count > j__TPar
long _TotalBytesRead
Definition CRC32.cs:268
void SlurpBlock(byte[] block, int offset, int count)
Definition CRC32.cs:133
override long Seek(long offset, SeekOrigin origin)
CrcCalculatorStream(Stream stream, long length, bool leaveOpen, CRC32 crc32)
override int Read(byte[] buffer, int offset, int count)
override void SetLength(long value)
CrcCalculatorStream(Stream stream, long length)
CrcCalculatorStream(Stream stream, long length, bool leaveOpen)
static readonly long UnsetLengthLimit
CrcCalculatorStream(Stream stream, bool leaveOpen)
CrcCalculatorStream(bool leaveOpen, long length, Stream stream, CRC32 crc32)
override void Write(byte[] buffer, int offset, int count)