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

◆ AddRunToOutputBlock()

bool Ionic.BZip2.BZip2Compressor.AddRunToOutputBlock ( bool final)
inlineprivate

Definition at line 132 of file BZip2Compressor.cs.

133 {
134 /*
135An exception occurred when decompiling this method (060002B4)
136
137ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.BZip2.BZip2Compressor::AddRunToOutputBlock(System.Boolean)
138
139 ---> System.Exception: Basic block has to end with unconditional control flow.
140{
141 Block_0:
142 stloc:int32(var_0_06, ldfld:int32(BZip2Compressor::runs, ldloc:BZip2Compressor(this)))
143 stloc:int32(var_1_0D, ldfld:int32(BZip2Compressor::last, ldloc:BZip2Compressor(this)))
144 stfld:int32(BZip2Compressor::runs, ldloc:BZip2Compressor(this), ldloc:int32(var_0_06))
145 stloc:CompressionState(var_2_1B, ldfld:CompressionState(BZip2Compressor::cstate, ldloc:BZip2Compressor(this)))
146 stloc:int32(var_3_22, ldfld:int32(BZip2Compressor::currentByte, ldloc:BZip2Compressor(this)))
147 stloc:int32(var_4_24, ldc.i4:int32(1))
148 stloc:bool[](var_5_2C, ldfld:bool[](CompressionState::inUse, ldloc:CompressionState(var_2_1B)))
149 stloc:uint8[](var_6_34, ldfld:uint8[](CompressionState::block, ldloc:CompressionState(var_2_1B)))
150 stfld:int32[](CompressionState::mtfFreq, ldloc:CompressionState(var_2_1B), ldloc:int32[exp:int32[]](var_4_24))
151 stloc:int32(var_7_44, ldfld:int32(BZip2Compressor::runLength, ldloc:BZip2Compressor(this)))
152 call:void(CRC32::UpdateCRC, ldfld:CRC32(BZip2Compressor::crc, ldloc:BZip2Compressor(this)), ldloc:int32[exp:uint8](var_3_22), ldloc:int32(var_7_44))
153 stfld:int32[](CompressionState::mtfFreq, ldloc:CompressionState(var_2_1B), ldloc:int32[exp:int32[]](var_3_22))
154 stfld:bool(bool::m_value, ldloc:bool[][exp:bool&](var_5_2C), ldloc:int32[exp:bool](var_3_22))
155 stfld:bool(bool::m_value, ldloc:bool[][exp:bool&](var_5_2C), ldloc:int32[exp:bool](var_3_22))
156 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_4_24), ldloc:int32(var_3_22))
157 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_4_24), ldloc:int32(var_3_22))
158 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_4_24), ldloc:int32(var_3_22))
159 stloc:CompressionState(var_8_89, ldfld:CompressionState(BZip2Compressor::cstate, ldloc:BZip2Compressor(this)))
160 stloc:int32(var_9_8C, ldc.i4:int32(1))
161 stloc:bool[](var_10_95, ldfld:bool[](CompressionState::inUse, ldloc:CompressionState(var_8_89)))
162 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_9_8C), ldloc:int32(var_3_22))
163 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_9_8C), ldloc:int32(var_3_22))
164 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_9_8C), ldloc:int32(var_3_22))
165 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_9_8C), ldloc:int32(var_3_22))
166 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_9_8C), ldloc:bool[][exp:int32](var_5_2C))
167 stloc:int32(var_11_C6, ldfld:int32(BZip2Compressor::outBlockFillThreshold, ldloc:BZip2Compressor(this)))
168 stfld:int32(BZip2Compressor::last, ldloc:BZip2Compressor(this), ldloc:bool[][exp:int32](var_10_95))
169 stloc:int32(var_12_D6, ldfld:int32(BZip2Compressor::outBlockFillThreshold, ldloc:BZip2Compressor(this)))
170}
171
172 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
173 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
174 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
175 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
176 --- End of inner exception stack trace ---
177 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
178 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
179*/;
180 }

Referenced by Ionic.BZip2.BZip2Compressor.CompressAndWrite(), and Ionic.BZip2.BZip2Compressor.write0().