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
CachedBuffer.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3
5{
6 // Token: 0x0200061B RID: 1563
7 public class CachedBuffer
8 {
9 // Token: 0x17000689 RID: 1673
10 // (get) Token: 0x060035C1 RID: 13761 RVA: 0x00211948 File Offset: 0x0020FB48
11 public int Length
12 {
13 get
14 {
15 /*
16An exception occurred when decompiling this method (060035C1)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.DataStructures.CachedBuffer::get_Length()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 stloc:uint8[](var_0_06, ldfld:uint8[](CachedBuffer::Data, ldloc:CachedBuffer(this)))
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35 }
36
37 // Token: 0x1700068A RID: 1674
38 // (get) Token: 0x060035C2 RID: 13762 RVA: 0x0021195C File Offset: 0x0020FB5C
39 public bool IsActive
40 {
41 get
42 {
43 return this._isActive;
44 }
45 }
46
47 // Token: 0x060035C3 RID: 13763 RVA: 0x00211970 File Offset: 0x0020FB70
48 public CachedBuffer(byte[] data)
49 {
50 this.Data = data;
52 }
53
54 // Token: 0x060035C4 RID: 13764 RVA: 0x00211998 File Offset: 0x0020FB98
56 {
58 this._isActive = true;
59 return this;
60 }
61
62 // Token: 0x060035C5 RID: 13765 RVA: 0x002119B4 File Offset: 0x0020FBB4
63 public void Recycle()
64 {
65 if (true)
66 {
67 return;
68 }
69 }
70
71 // Token: 0x0400769A RID: 30362
72 public readonly byte[] Data;
73
74 // Token: 0x0400769B RID: 30363
76
77 // Token: 0x0400769C RID: 30364
79
80 // Token: 0x0400769D RID: 30365
82
83 // Token: 0x0400769E RID: 30366
84 private bool _isActive = true;
85 }
86}
class f__AnonymousType0<< Count > j__TPar
readonly MemoryStream _memoryStream