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
WebRequestStream.cs
Go to the documentation of this file.
1using System;
4using System.IO;
7using System.Text;
10using Cpp2IlInjected;
11
12namespace System.Net
13{
14 // Token: 0x0200028F RID: 655
16 {
17 // Token: 0x0600122B RID: 4651 RVA: 0x00038584 File Offset: 0x00036784
19 : base(connection, operation)
20 {
21 this.InnerStream = stream;
22 bool internalAllowBuffering = operation.<Request>k__BackingField.InternalAllowBuffering;
24 BufferOffsetSize <WriteBuffer>k__BackingField;
25 if (operation.<Request>k__BackingField.sendChunked)
26 {
27 <WriteBuffer>k__BackingField = operation.<WriteBuffer>k__BackingField;
28 }
29 this.sendChunked = <WriteBuffer>k__BackingField != null;
30 if (<WriteBuffer>k__BackingField != null || operation.<WriteBuffer>k__BackingField == null)
31 {
32 }
33 bool keepAlive = this.<Request>k__BackingField.keepAlive;
34 this.KeepAlive = keepAlive;
35 if (tunnel != null)
36 {
37 Version <ProxyVersion>k__BackingField = tunnel.<ProxyVersion>k__BackingField;
38 return;
39 }
40 if (tunnel != null)
41 {
42 Version <ProxyVersion>k__BackingField2 = tunnel.<ProxyVersion>k__BackingField;
43 }
44 if (!keepAlive)
45 {
46 }
47 }
48
49 // Token: 0x17000431 RID: 1073
50 // (get) Token: 0x0600122C RID: 4652 RVA: 0x0003860C File Offset: 0x0003680C
52 {
54 get
55 {
56 return this.<InnerStream>k__BackingField;
57 }
58 }
59
60 // Token: 0x17000432 RID: 1074
61 // (get) Token: 0x0600122D RID: 4653 RVA: 0x00038620 File Offset: 0x00036820
62 public bool KeepAlive
63 {
65 get
66 {
67 return this.<KeepAlive>k__BackingField;
68 }
69 }
70
71 // Token: 0x17000433 RID: 1075
72 // (get) Token: 0x0600122E RID: 4654 RVA: 0x00038634 File Offset: 0x00036834
73 public override bool CanRead
74 {
75 get
76 {
77 }
78 }
79
80 // Token: 0x17000434 RID: 1076
81 // (get) Token: 0x0600122F RID: 4655 RVA: 0x00038644 File Offset: 0x00036844
82 public override bool CanWrite
83 {
84 get
85 {
86 return true;
87 }
88 }
89
90 // Token: 0x17000435 RID: 1077
91 // (get) Token: 0x06001230 RID: 4656 RVA: 0x00038654 File Offset: 0x00036854
92 // (set) Token: 0x06001231 RID: 4657 RVA: 0x00038668 File Offset: 0x00036868
93 internal bool SendChunked
94 {
95 get
96 {
97 return this.sendChunked;
98 }
99 set
100 {
101 }
102 }
103
104 // Token: 0x17000436 RID: 1078
105 // (get) Token: 0x06001232 RID: 4658 RVA: 0x00038678 File Offset: 0x00036878
106 internal bool HasWriteBuffer
107 {
108 get
109 {
110 return this.<Operation>k__BackingField.<WriteBuffer>k__BackingField == null || true;
111 }
112 }
113
114 // Token: 0x17000437 RID: 1079
115 // (get) Token: 0x06001233 RID: 4659 RVA: 0x00038698 File Offset: 0x00036898
116 internal int WriteBufferLength
117 {
118 get
119 {
120 BufferOffsetSize <WriteBuffer>k__BackingField = this.<Operation>k__BackingField.<WriteBuffer>k__BackingField;
121 int size;
122 if (<WriteBuffer>k__BackingField != null)
123 {
124 size = <WriteBuffer>k__BackingField.Size;
125 return size;
126 }
127 if (size != 0)
128 {
129 return size;
130 }
131 return size;
132 }
133 }
134
135 // Token: 0x06001234 RID: 4660 RVA: 0x000386C4 File Offset: 0x000368C4
137 {
138 /*
139An exception occurred when decompiling this method (06001234)
140
141ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.BufferOffsetSize System.Net.WebRequestStream::GetWriteBuffer()
142
143 ---> System.Exception: Basic block has to end with unconditional control flow.
144{
145 Block_2:
146 stloc:MemoryStream(var_1_20, ldfld:MemoryStream(WebRequestStream::writeBuffer, ldloc:WebRequestStream(this)))
147 stloc:MemoryStream(var_2_27, ldfld:MemoryStream(WebRequestStream::writeBuffer, ldloc:WebRequestStream(this)))
148}
149
150 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
151 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
152 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
153 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
154 --- End of inner exception stack trace ---
155 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
156 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
157*/;
158 }
159
160 // Token: 0x06001235 RID: 4661 RVA: 0x000386F8 File Offset: 0x000368F8
161 private Task FinishWriting(CancellationToken cancellationToken)
162 {
163 if (!true)
164 {
165 }
167 Task task;
168 return task;
169 }
170
171 // Token: 0x06001236 RID: 4662 RVA: 0x00038714 File Offset: 0x00036914
172 public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
173 {
174 /*
175An exception occurred when decompiling this method (06001236)
176
177ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Net.WebRequestStream::WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
178
179 ---> System.Exception: Basic block has to end with unconditional control flow.
180{
181 IL_0024:
182 stloc:string(var_5_2E, call:string(SR::GetString, ldstr:string("Cannot re-call BeginGetRequestStream/BeginGetResponse while a previous call is still in progress.")))
183}
184
185 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
186 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
187 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
188 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
189 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
190 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
191 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
192 --- End of inner exception stack trace ---
193 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
194 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
195*/;
196 }
197
198 // Token: 0x06001237 RID: 4663 RVA: 0x00038750 File Offset: 0x00036950
199 private Task WriteAsyncInner(byte[] buffer, int offset, int size, WebCompletionSource completion, CancellationToken cancellationToken)
200 {
201 if (!true)
202 {
203 }
205 Task task;
206 return task;
207 }
208
209 // Token: 0x06001238 RID: 4664 RVA: 0x0003876C File Offset: 0x0003696C
210 private Task ProcessWrite(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
211 {
212 if (!true)
213 {
214 }
216 Task task;
217 return task;
218 }
219
220 // Token: 0x06001239 RID: 4665 RVA: 0x00038788 File Offset: 0x00036988
221 private void CheckWriteOverflow(long contentLength, long totalWritten, long size)
222 {
223 }
224
225 // Token: 0x0600123A RID: 4666 RVA: 0x000387A8 File Offset: 0x000369A8
226 internal Task Initialize(CancellationToken cancellationToken)
227 {
228 if (!true)
229 {
230 }
232 Task task;
233 return task;
234 }
235
236 // Token: 0x0600123B RID: 4667 RVA: 0x000387C4 File Offset: 0x000369C4
237 private Task SetHeadersAsync(bool setInternalLength, CancellationToken cancellationToken)
238 {
239 if (!true)
240 {
241 }
243 Task task;
244 return task;
245 }
246
247 // Token: 0x0600123C RID: 4668 RVA: 0x000387E0 File Offset: 0x000369E0
248 internal Task WriteRequestAsync(CancellationToken cancellationToken)
249 {
250 if (!true)
251 {
252 }
254 Task task;
255 return task;
256 }
257
258 // Token: 0x0600123D RID: 4669 RVA: 0x000387FC File Offset: 0x000369FC
260 {
261 if (!true)
262 {
263 }
265 Task task;
266 return task;
267 }
268
269 // Token: 0x0600123E RID: 4670 RVA: 0x00038818 File Offset: 0x00036A18
271 {
272 if (!true)
273 {
274 }
276 Task task;
277 return task;
278 }
279
280 // Token: 0x0600123F RID: 4671 RVA: 0x00038834 File Offset: 0x00036A34
281 internal void KillBuffer()
282 {
283 }
284
285 // Token: 0x06001240 RID: 4672 RVA: 0x00038844 File Offset: 0x00036A44
286 public override Task<int> ReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
287 {
288 if (!true)
289 {
290 }
291 Task task;
292 return task;
293 }
294
295 // Token: 0x06001241 RID: 4673 RVA: 0x00002050 File Offset: 0x00000250
296 protected override bool TryReadFromBufferedContent(byte[] buffer, int offset, int count, [Out] int result)
297 {
298 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
299 }
300
301 // Token: 0x06001242 RID: 4674 RVA: 0x00038858 File Offset: 0x00036A58
302 protected override void Close_internal(bool disposed)
303 {
304 }
305
306 // Token: 0x06001243 RID: 4675 RVA: 0x000388D8 File Offset: 0x00036AD8
307 // Note: this type is marked as 'beforefieldinit'.
309 {
310 }
311
312 // Token: 0x04000E17 RID: 3607
313 private static byte[] crlf;
314
315 // Token: 0x04000E18 RID: 3608
317
318 // Token: 0x04000E19 RID: 3609
319 private bool requestWritten;
320
321 // Token: 0x04000E1A RID: 3610
322 private bool allowBuffering;
323
324 // Token: 0x04000E1B RID: 3611
325 private bool sendChunked;
326
327 // Token: 0x04000E1C RID: 3612
329
330 // Token: 0x04000E1D RID: 3613
331 private long totalWritten;
332
333 // Token: 0x04000E1E RID: 3614
334 private byte[] headers;
335
336 // Token: 0x04000E1F RID: 3615
337 private bool headersSent;
338
339 // Token: 0x04000E20 RID: 3616
341
342 // Token: 0x04000E21 RID: 3617
344
345 // Token: 0x04000E22 RID: 3618
346 internal readonly string ME;
347
348 // Token: 0x04000E23 RID: 3619
350 private readonly Stream <InnerStream>k__BackingField;
351
352 // Token: 0x04000E24 RID: 3620
354 private readonly bool <KeepAlive>k__BackingField;
355
356 // Token: 0x02000290 RID: 656
358 [StructLayout(3)]
360 {
361 // Token: 0x06001244 RID: 4676 RVA: 0x000388E8 File Offset: 0x00036AE8
362 private void MoveNext()
363 {
365 int num;
366 if (num == 0)
367 {
369 CancellationToken cancellationToken = this.cancellationToken;
370 <Operation>k__BackingField.ThrowIfClosedOrDisposed(cancellationToken);
371 if (webRequestStream.sendChunked)
372 {
373 CancellationToken cancellationToken2 = this.cancellationToken;
374 Task task = webRequestStream.WriteChunkTrailer_inner(cancellationToken2);
375 long num2 = 0L;
377 return;
378 }
380 }
381 }
382
383 // Token: 0x06001245 RID: 4677 RVA: 0x00038994 File Offset: 0x00036B94
388
389 // Token: 0x04000E25 RID: 3621
391
392 // Token: 0x04000E26 RID: 3622
394
395 // Token: 0x04000E27 RID: 3623
397
398 // Token: 0x04000E28 RID: 3624
400
401 // Token: 0x04000E29 RID: 3625
403 }
404
405 // Token: 0x02000291 RID: 657
407 [StructLayout(3)]
409 {
410 // Token: 0x06001246 RID: 4678 RVA: 0x000389A4 File Offset: 0x00036BA4
411 private void MoveNext()
412 {
414 TaskAwaiter taskAwaiter = this.<>u__2;
415 }
416
417 // Token: 0x06001247 RID: 4679 RVA: 0x00038A98 File Offset: 0x00036C98
422
423 // Token: 0x04000E2A RID: 3626
425
426 // Token: 0x04000E2B RID: 3627
428
429 // Token: 0x04000E2C RID: 3628
431
432 // Token: 0x04000E2D RID: 3629
433 public byte[] buffer;
434
435 // Token: 0x04000E2E RID: 3630
436 public int offset;
437
438 // Token: 0x04000E2F RID: 3631
439 public int size;
440
441 // Token: 0x04000E30 RID: 3632
443
444 // Token: 0x04000E31 RID: 3633
446
447 // Token: 0x04000E32 RID: 3634
449
450 // Token: 0x04000E33 RID: 3635
452 }
453
454 // Token: 0x02000292 RID: 658
456 [StructLayout(3)]
458 {
459 // Token: 0x06001248 RID: 4680 RVA: 0x00038AA8 File Offset: 0x00036CA8
460 private void MoveNext()
461 {
463 CancellationToken cancellationToken = this.cancellationToken;
464 webRequestStream.<Operation>k__BackingField.ThrowIfClosedOrDisposed(cancellationToken);
465 if (webRequestStream.sendChunked)
466 {
467 int num = 1;
469 int num2 = this.size;
471 int num3 = this.size;
472 CodePageDataItem dataItem = ascii.dataItem;
474 byte[] array = this.buffer;
475 int num4 = this.offset;
476 int num5 = this.size;
478 if (num3 == 0)
479 {
480 }
482 int num6 = this.size;
483 if (webRequestStream.allowBuffering)
484 {
485 if (webRequestStream.writeBuffer == null)
486 {
487 }
488 byte[] array2 = this.buffer;
489 int num7 = this.offset;
490 int num8 = this.size;
491 }
492 long totalWritten = webRequestStream.totalWritten;
494 string text;
495 this.size = text;
497 CancellationToken cancellationToken2 = this.cancellationToken;
498 return;
499 }
500 HttpWebRequest <Request>k__BackingField = webRequestStream.<Request>k__BackingField;
501 long totalWritten2 = webRequestStream.totalWritten;
502 if (webRequestStream.allowBuffering)
503 {
504 if (webRequestStream.writeBuffer == null)
505 {
506 }
507 byte[] array3 = this.buffer;
508 int num9 = this.offset;
509 int num10 = this.size;
510 long totalWritten3 = webRequestStream.totalWritten;
511 HttpWebRequest <Request>k__BackingField2 = webRequestStream.<Request>k__BackingField;
513 HttpWebRequest <Request>k__BackingField3 = webRequestStream.<Request>k__BackingField;
514 long totalWritten4 = webRequestStream.totalWritten;
516 int num11 = 1;
519 long totalWritten5 = webRequestStream.totalWritten;
520 return;
521 }
522 long totalWritten6 = webRequestStream.totalWritten;
524 byte[] array4 = this.buffer;
525 int num12 = this.offset;
526 }
527
528 // Token: 0x06001249 RID: 4681 RVA: 0x00038C58 File Offset: 0x00036E58
533
534 // Token: 0x04000E34 RID: 3636
536
537 // Token: 0x04000E35 RID: 3637
539
540 // Token: 0x04000E36 RID: 3638
542
543 // Token: 0x04000E37 RID: 3639
545
546 // Token: 0x04000E38 RID: 3640
547 public int size;
548
549 // Token: 0x04000E39 RID: 3641
550 public byte[] buffer;
551
552 // Token: 0x04000E3A RID: 3642
553 public int offset;
554
555 // Token: 0x04000E3B RID: 3643
557 }
558
559 // Token: 0x02000293 RID: 659
561 [StructLayout(3)]
563 {
564 // Token: 0x0600124A RID: 4682 RVA: 0x00038C68 File Offset: 0x00036E68
565 private void MoveNext()
566 {
568 TaskAwaiter taskAwaiter = this.<>u__2;
569 }
570
571 // Token: 0x0600124B RID: 4683 RVA: 0x00038D88 File Offset: 0x00036F88
576
577 // Token: 0x04000E3C RID: 3644
579
580 // Token: 0x04000E3D RID: 3645
582
583 // Token: 0x04000E3E RID: 3646
585
586 // Token: 0x04000E3F RID: 3647
588
589 // Token: 0x04000E40 RID: 3648
591
592 // Token: 0x04000E41 RID: 3649
594 }
595
596 // Token: 0x02000294 RID: 660
598 [StructLayout(3)]
600 {
601 // Token: 0x0600124C RID: 4684 RVA: 0x00038D98 File Offset: 0x00036F98
602 private void MoveNext()
603 {
606 CancellationToken cancellationToken = this.cancellationToken;
607 <Operation>k__BackingField.ThrowIfClosedOrDisposed(cancellationToken);
608 if (webRequestStream.headersSent)
609 {
610 return;
611 }
612 HttpWebRequest <Request>k__BackingField = webRequestStream.<Request>k__BackingField;
614 bool flag = this.setInternalLength;
615 bool <IsNtlmChallenge>k__BackingField = <Operation>k__BackingField2.<IsNtlmChallenge>k__BackingField;
616 if (!flag)
617 {
618 return;
619 }
620 BufferOffsetSize <WriteBuffer>k__BackingField = <Operation>k__BackingField2.<WriteBuffer>k__BackingField;
621 if (<WriteBuffer>k__BackingField != null)
622 {
623 HttpWebRequest <Request>k__BackingField2 = webRequestStream.<Request>k__BackingField;
624 int size = <WriteBuffer>k__BackingField.Size;
625 return;
626 }
627 WebOperation <Operation>k__BackingField3;
628 if (webRequestStream.writeBuffer != null)
629 {
630 HttpWebRequest <Request>k__BackingField3 = webRequestStream.<Request>k__BackingField;
633 }
634 if (<Operation>k__BackingField3.<WriteBuffer>k__BackingField != null || webRequestStream.writeBuffer != null)
635 {
636 HttpWebRequest <Request>k__BackingField4 = webRequestStream.<Request>k__BackingField;
637 bool sendChunked = webRequestStream.sendChunked;
638 HttpWebRequest <Request>k__BackingField5 = webRequestStream.<Request>k__BackingField;
639 int num = 1;
644 CancellationToken cancellationToken2 = this.cancellationToken;
645 return;
646 }
647 }
648
649 // Token: 0x0600124D RID: 4685 RVA: 0x00038EE4 File Offset: 0x000370E4
654
655 // Token: 0x04000E42 RID: 3650
657
658 // Token: 0x04000E43 RID: 3651
660
661 // Token: 0x04000E44 RID: 3652
663
664 // Token: 0x04000E45 RID: 3653
666
667 // Token: 0x04000E46 RID: 3654
668 public bool setInternalLength;
669
670 // Token: 0x04000E47 RID: 3655
672 }
673
674 // Token: 0x02000295 RID: 661
676 [StructLayout(3)]
678 {
679 // Token: 0x0600124E RID: 4686 RVA: 0x00038EF4 File Offset: 0x000370F4
680 private void MoveNext()
681 {
683 TaskAwaiter taskAwaiter = this.<>u__2;
684 }
685
686 // Token: 0x0600124F RID: 4687 RVA: 0x00039094 File Offset: 0x00037294
691
692 // Token: 0x04000E48 RID: 3656
694
695 // Token: 0x04000E49 RID: 3657
697
698 // Token: 0x04000E4A RID: 3658
700
701 // Token: 0x04000E4B RID: 3659
703
704 // Token: 0x04000E4C RID: 3660
705 private BufferOffsetSize <buffer>5__2;
706
707 // Token: 0x04000E4D RID: 3661
709
710 // Token: 0x04000E4E RID: 3662
712 }
713
714 // Token: 0x02000296 RID: 662
716 [StructLayout(3)]
718 {
719 // Token: 0x06001250 RID: 4688 RVA: 0x000390A4 File Offset: 0x000372A4
720 private void MoveNext()
721 {
723 int num;
724 if (num == 0)
725 {
727 CancellationToken cancellationToken = this.cancellationToken;
728 <Operation>k__BackingField.ThrowIfClosedOrDisposed(cancellationToken);
731 CancellationToken cancellationToken2 = this.cancellationToken;
732 CodePageDataItem dataItem = ascii.dataItem;
733 return;
734 }
735 }
736
737 // Token: 0x06001251 RID: 4689 RVA: 0x00039114 File Offset: 0x00037314
742
743 // Token: 0x04000E4F RID: 3663
745
746 // Token: 0x04000E50 RID: 3664
748
749 // Token: 0x04000E51 RID: 3665
751
752 // Token: 0x04000E52 RID: 3666
754
755 // Token: 0x04000E53 RID: 3667
757 }
758
759 // Token: 0x02000297 RID: 663
761 [StructLayout(3)]
763 {
764 // Token: 0x06001252 RID: 4690 RVA: 0x00039124 File Offset: 0x00037324
765 private void MoveNext()
766 {
768 CancellationToken token = this.<cts>5__2.Token;
769 Task task;
770 this.<timeoutTask>5__3 = task;
771 }
772
773 // Token: 0x06001253 RID: 4691 RVA: 0x00039230 File Offset: 0x00037430
778
779 // Token: 0x04000E54 RID: 3668
781
782 // Token: 0x04000E55 RID: 3669
784
785 // Token: 0x04000E56 RID: 3670
787
788 // Token: 0x04000E57 RID: 3671
789 private CancellationTokenSource <cts>5__2;
790
791 // Token: 0x04000E58 RID: 3672
792 private Task <timeoutTask>5__3;
793
794 // Token: 0x04000E59 RID: 3673
796
797 // Token: 0x04000E5A RID: 3674
799 }
800 }
801}
class f__AnonymousType0<< Count > j__TPar
override Task< int > ReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
Task SetHeadersAsync(bool setInternalLength, CancellationToken cancellationToken)
Task FinishWriting(CancellationToken cancellationToken)
Task Initialize(CancellationToken cancellationToken)
void CheckWriteOverflow(long contentLength, long totalWritten, long size)
Task WriteAsyncInner(byte[] buffer, int offset, int size, WebCompletionSource completion, CancellationToken cancellationToken)
BufferOffsetSize GetWriteBuffer()
Task ProcessWrite(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
Task WriteChunkTrailer_inner(CancellationToken cancellationToken)
WebRequestStream(WebConnection connection, WebOperation operation, Stream stream, WebConnectionTunnel tunnel)
readonly Stream< InnerStream > k__BackingField
override void Close_internal(bool disposed)
readonly bool< KeepAlive > k__BackingField
override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
WebCompletionSource pendingWrite
override bool TryReadFromBufferedContent(byte[] buffer, int offset, int count, [Out] int result)
Task WriteRequestAsync(CancellationToken cancellationToken)
static Encoding ASCII
Definition Encoding.cs:348
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__2
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable< Task >.ConfiguredTaskAwaiter u__1