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
FixedSizeReadStream.cs
Go to the documentation of this file.
1using System;
3using System.IO;
8
9namespace System.Net
10{
11 // Token: 0x02000244 RID: 580
13 {
14 // Token: 0x17000306 RID: 774
15 // (get) Token: 0x06000EA6 RID: 3750 RVA: 0x0002E9D0 File Offset: 0x0002CBD0
16 public long ContentLength
17 {
19 get
20 {
21 return this.<ContentLength>k__BackingField;
22 }
23 }
24
25 // Token: 0x06000EA7 RID: 3751 RVA: 0x0002E9E4 File Offset: 0x0002CBE4
26 public FixedSizeReadStream(WebOperation operation, Stream innerStream, long contentLength)
27 : base(operation, innerStream)
28 {
29 this.ContentLength = contentLength;
30 }
31
32 // Token: 0x06000EA8 RID: 3752 RVA: 0x0002EA00 File Offset: 0x0002CC00
33 protected override Task<int> ProcessReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
34 {
35 /*
36An exception occurred when decompiling this method (06000EA8)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Int32> System.Net.FixedSizeReadStream::ProcessReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 IL_0000:
43 brtrue(IL_0000, ldc.i4:bool(1))
44}
45
46 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
47 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
49 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58
59 // Token: 0x04000BE9 RID: 3049
61 private readonly long <ContentLength>k__BackingField;
62
63 // Token: 0x04000BEA RID: 3050
64 private long position;
65
66 // Token: 0x02000245 RID: 581
68 [StructLayout(3)]
70 {
71 // Token: 0x06000EA9 RID: 3753 RVA: 0x0002EA10 File Offset: 0x0002CC10
72 private void MoveNext()
73 {
76 long position = fixedSizeReadStream.position;
78 byte[] array = this.buffer;
79 int num = this.offset;
80 CancellationToken cancellationToken = this.cancellationToken;
81 }
82
83 // Token: 0x06000EAA RID: 3754 RVA: 0x0002EA74 File Offset: 0x0002CC74
88
89 // Token: 0x04000BEB RID: 3051
91
92 // Token: 0x04000BEC RID: 3052
94
95 // Token: 0x04000BED RID: 3053
97
98 // Token: 0x04000BEE RID: 3054
100
101 // Token: 0x04000BEF RID: 3055
102 public int size;
103
104 // Token: 0x04000BF0 RID: 3056
105 public byte[] buffer;
106
107 // Token: 0x04000BF1 RID: 3057
108 public int offset;
109
110 // Token: 0x04000BF2 RID: 3058
112 }
113 }
114}
class f__AnonymousType0<< Count > j__TPar
override Task< int > ProcessReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
readonly long< ContentLength > k__BackingField
FixedSizeReadStream(WebOperation operation, Stream innerStream, long contentLength)
AsyncTaskMethodBuilder< int ><> t__builder
ConfiguredTaskAwaitable< int >.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)