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

◆ ReadTrailer()

MonoChunkParser.State System.Net.MonoChunkParser.ReadTrailer ( byte[] buffer,
int offset,
int size )
inlineprivate

Definition at line 212 of file MonoChunkParser.cs.

213 {
214 /*
215An exception occurred when decompiling this method (06001087)
216
217ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.MonoChunkParser/State System.Net.MonoChunkParser::ReadTrailer(System.Byte[],System.Int32,System.Int32)
218
219 ---> System.Exception: Basic block has to end with unconditional control flow.
220{
221 IL_001A:
222 stloc:int32(var_4_20, ldfld:int32(MonoChunkParser::trailerState, ldloc:MonoChunkParser(this)))
223 stloc:StringBuilder(var_6_35, call:StringBuilder(StringBuilder::Append, ldfld:StringBuilder(MonoChunkParser::saved, ldloc:MonoChunkParser(this)), ldloc:int64[exp:char](var_2_0F)))
224 stloc:int32(var_7_42, callgetter:int32(StringBuilder::get_Length, ldfld:StringBuilder(MonoChunkParser::saved, ldloc:MonoChunkParser(this))))
225 call:void(MonoChunkParser::ThrowProtocolViolation, ldstr:string("Error reading trailer (too long)."))
226 stloc:StringBuilder(var_9_57, ldfld:StringBuilder(MonoChunkParser::saved, ldloc:MonoChunkParser(this)))
227 stloc:WebHeaderCollection(var_11_5F, ldfld:WebHeaderCollection(MonoChunkParser::headers, ldloc:MonoChunkParser(this)))
228 call:void(MonoChunkParser::ThrowProtocolViolation, ldstr:string("Error reading trailer."))
229}
230
231 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
232 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
233 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
234 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
235 --- End of inner exception stack trace ---
236 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
237 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
238*/;
239 }

Referenced by System.Net.MonoChunkParser.InternalWrite().