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
FileWebResponse.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace System.Net
6{
7 // Token: 0x0200021D RID: 541
10 {
11 // Token: 0x06000D8B RID: 3467 RVA: 0x0002B994 File Offset: 0x00029B94
12 internal FileWebResponse(FileWebRequest request, global::System.Uri uri, FileAccess access, bool asyncHint)
13 {
14 int num = 1;
15 base..ctor();
16 this.m_fileAccess = access;
17 if (num == 0)
18 {
19 }
20 }
21
22 // Token: 0x06000D8C RID: 3468 RVA: 0x0002B9EC File Offset: 0x00029BEC
23 [Obsolete("Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202")]
25 {
26 int num = 1;
28 if (num == 0)
29 {
30 }
31 object obj;
32 if (obj != null)
33 {
35 return;
36 }
37 Type type;
38 object value = serializationInfo.GetValue("uri", type);
39 if (value != null)
40 {
42 throw new InvalidCastException();
43 }
44 long @int = serializationInfo.GetInt64("contentLength");
46 int int2 = serializationInfo.GetInt32("fileAccess");
48 }
49
50 // Token: 0x06000D8D RID: 3469 RVA: 0x0002BA5C File Offset: 0x00029C5C
54
55 // Token: 0x06000D8E RID: 3470 RVA: 0x0002BA6C File Offset: 0x00029C6C
57 {
58 WebHeaderCollection headers = this.m_headers;
59 if (!true)
60 {
61 }
62 Type type;
63 serializationInfo.AddValue("headers", headers, type);
64 global::System.Uri uri = this.m_uri;
65 Type type2;
66 serializationInfo.AddValue("uri", uri, type2);
67 long contentLength = this.m_contentLength;
68 serializationInfo.AddValue("contentLength", contentLength);
70 base.GetObjectData(serializationInfo, streamingContext);
71 }
72
73 // Token: 0x170002D5 RID: 725
74 // (get) Token: 0x06000D8F RID: 3471 RVA: 0x0002BACC File Offset: 0x00029CCC
75 public override long ContentLength
76 {
77 get
78 {
79 this.CheckDisposed();
80 return this.m_contentLength;
81 }
82 }
83
84 // Token: 0x170002D6 RID: 726
85 // (get) Token: 0x06000D90 RID: 3472 RVA: 0x0002BAE8 File Offset: 0x00029CE8
86 public override string ContentType
87 {
88 get
89 {
90 this.CheckDisposed();
91 return "application/octet-stream";
92 }
93 }
94
95 // Token: 0x170002D7 RID: 727
96 // (get) Token: 0x06000D91 RID: 3473 RVA: 0x0002BB00 File Offset: 0x00029D00
98 {
99 get
100 {
101 this.CheckDisposed();
102 return this.m_headers;
103 }
104 }
105
106 // Token: 0x170002D8 RID: 728
107 // (get) Token: 0x06000D92 RID: 3474 RVA: 0x0002BB1C File Offset: 0x00029D1C
108 public override bool SupportsHeaders
109 {
110 get
111 {
112 return true;
113 }
114 }
115
116 // Token: 0x170002D9 RID: 729
117 // (get) Token: 0x06000D93 RID: 3475 RVA: 0x0002BB2C File Offset: 0x00029D2C
118 public override global::System.Uri ResponseUri
119 {
120 get
121 {
122 this.CheckDisposed();
123 return this.m_uri;
124 }
125 }
126
127 // Token: 0x06000D94 RID: 3476 RVA: 0x0002BB48 File Offset: 0x00029D48
128 private void CheckDisposed()
129 {
130 /*
131An exception occurred when decompiling this method (06000D94)
132
133ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.FileWebResponse::CheckDisposed()
134
135 ---> System.Exception: Basic block has to end with unconditional control flow.
136{
137 IL_0009:
138 stloc:Type(var_0_0F, call:Type(object::GetType, ldloc:FileWebResponse[exp:object](this)))
139}
140
141 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
142 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
143 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
144 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
145 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
146 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
147 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
148 --- End of inner exception stack trace ---
149 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
150 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
151*/;
152 }
153
154 // Token: 0x06000D95 RID: 3477 RVA: 0x0002BB64 File Offset: 0x00029D64
155 public override void Close()
156 {
157 }
158
159 // Token: 0x06000D96 RID: 3478 RVA: 0x0002BB74 File Offset: 0x00029D74
161 {
162 if (!this.m_closed)
163 {
164 Stream stream = this.m_stream;
165 int num = 1;
166 this.m_closed = num != 0;
167 if (stream != null)
168 {
169 if (stream == null)
170 {
171 return;
172 }
173 if (stream == null)
174 {
175 throw new InvalidCastException();
176 }
177 if (stream != null)
178 {
179 return;
180 }
181 throw new InvalidCastException();
182 }
183 }
184 }
185
186 // Token: 0x06000D97 RID: 3479 RVA: 0x0002BBC4 File Offset: 0x00029DC4
187 public override Stream GetResponseStream()
188 {
189 this.CheckDisposed();
190 return this.m_stream;
191 }
192
193 // Token: 0x04000B67 RID: 2919
194 private const int DefaultFileStreamBufferSize = 8192;
195
196 // Token: 0x04000B68 RID: 2920
197 private const string DefaultFileContentType = "application/octet-stream";
198
199 // Token: 0x04000B69 RID: 2921
200 private bool m_closed;
201
202 // Token: 0x04000B6A RID: 2922
203 private long m_contentLength;
204
205 // Token: 0x04000B6B RID: 2923
207
208 // Token: 0x04000B6C RID: 2924
210
211 // Token: 0x04000B6D RID: 2925
213
214 // Token: 0x04000B6E RID: 2926
215 private global::System.Uri m_uri;
216 }
217}
class f__AnonymousType0<< Count > j__TPar
override Stream GetResponseStream()
FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
FileWebResponse(FileWebRequest request, global::System.Uri uri, FileAccess access, bool asyncHint)
override global::System.Uri ResponseUri
WebHeaderCollection m_headers
override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
override WebHeaderCollection Headers
void AddValue(string name, object value, Type type)
void CloseEx(CloseExState closeState)
void GetObjectData(SerializationInfo info, StreamingContext context)