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
CryptoStream.cs
Go to the documentation of this file.
1using System;
3using System.IO;
9
11{
12 // Token: 0x020002B5 RID: 693
14 {
15 // Token: 0x06001782 RID: 6018 RVA: 0x00032638 File Offset: 0x00030838
17 {
18 }
19
20 // Token: 0x06001783 RID: 6019 RVA: 0x00032648 File Offset: 0x00030848
21 public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, bool leaveOpen)
22 {
23 if (!true)
24 {
25 }
26 base..ctor();
28 this._stream = stream;
29 this._transform = transform;
30 if (mode == CryptoStreamMode.Read)
31 {
32 if (!true)
33 {
34 }
35 this._canRead = true;
36 return;
37 }
38 }
39
40 // Token: 0x17000266 RID: 614
41 // (get) Token: 0x06001784 RID: 6020 RVA: 0x000326A4 File Offset: 0x000308A4
42 public override bool CanRead
43 {
44 get
45 {
46 return this._canRead;
47 }
48 }
49
50 // Token: 0x17000267 RID: 615
51 // (get) Token: 0x06001785 RID: 6021 RVA: 0x000326B8 File Offset: 0x000308B8
52 public override bool CanSeek
53 {
54 get
55 {
56 }
57 }
58
59 // Token: 0x17000268 RID: 616
60 // (get) Token: 0x06001786 RID: 6022 RVA: 0x000326C8 File Offset: 0x000308C8
61 public override bool CanWrite
62 {
63 get
64 {
65 return this._canWrite;
66 }
67 }
68
69 // Token: 0x17000269 RID: 617
70 // (get) Token: 0x06001787 RID: 6023 RVA: 0x0000207A File Offset: 0x0000027A
71 public override long Length
72 {
73 get
74 {
75 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
76 }
77 }
78
79 // Token: 0x1700026A RID: 618
80 // (get) Token: 0x06001788 RID: 6024 RVA: 0x0000207A File Offset: 0x0000027A
81 // (set) Token: 0x06001789 RID: 6025 RVA: 0x0000207A File Offset: 0x0000027A
82 public override long Position
83 {
84 get
85 {
86 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
87 }
88 set
89 {
90 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92 }
93
94 // Token: 0x1700026B RID: 619
95 // (get) Token: 0x0600178A RID: 6026 RVA: 0x000326DC File Offset: 0x000308DC
97 {
98 get
99 {
100 return this._finalBlockTransformed;
101 }
102 }
103
104 // Token: 0x0600178B RID: 6027 RVA: 0x000326F0 File Offset: 0x000308F0
105 public void FlushFinalBlock()
106 {
107 while (this._finalBlockTransformed)
108 {
109 }
110 ICryptoTransform transform = this._transform;
111 byte[] inputBuffer = this._inputBuffer;
113 }
114
115 // Token: 0x0600178C RID: 6028 RVA: 0x0003279C File Offset: 0x0003099C
116 public override void Flush()
117 {
118 }
119
120 // Token: 0x0600178D RID: 6029 RVA: 0x000327AC File Offset: 0x000309AC
121 public override Task FlushAsync(CancellationToken cancellationToken)
122 {
123 Type type;
124 bool flag = base.GetType() != type;
125 return base.FlushAsync(cancellationToken);
126 }
127
128 // Token: 0x0600178E RID: 6030 RVA: 0x0000207A File Offset: 0x0000027A
129 public override long Seek(long offset, SeekOrigin origin)
130 {
131 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
132 }
133
134 // Token: 0x0600178F RID: 6031 RVA: 0x0000207A File Offset: 0x0000027A
135 public override void SetLength(long value)
136 {
137 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
138 }
139
140 // Token: 0x06001790 RID: 6032 RVA: 0x000327D4 File Offset: 0x000309D4
141 public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
142 {
143 this.CheckReadArguments(buffer, offset, count);
144 return this.ReadAsyncInternal(buffer, offset, count, cancellationToken);
145 }
146
147 // Token: 0x06001791 RID: 6033 RVA: 0x000327F8 File Offset: 0x000309F8
148 public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
149 {
150 if (!true)
151 {
152 }
154 IAsyncResult asyncResult;
155 return asyncResult;
156 }
157
158 // Token: 0x06001792 RID: 6034 RVA: 0x00032814 File Offset: 0x00030A14
159 public override int EndRead(IAsyncResult asyncResult)
160 {
161 return TaskToApm.End<int>(asyncResult);
162 }
163
164 // Token: 0x06001793 RID: 6035 RVA: 0x00032828 File Offset: 0x00030A28
165 private Task<int> ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
166 {
167 /*
168An exception occurred when decompiling this method (06001793)
169
170ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Int32> System.Security.Cryptography.CryptoStream::ReadAsyncInternal(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
171
172 ---> System.Exception: Basic block has to end with unconditional control flow.
173{
174 IL_0000:
175 brtrue(IL_0000, ldc.i4:bool(1))
176}
177
178 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
179 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
180 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
181 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
182 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
183 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
184 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
185 --- End of inner exception stack trace ---
186 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
187 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
188*/;
189 }
190
191 // Token: 0x06001794 RID: 6036 RVA: 0x00032838 File Offset: 0x00030A38
192 public override int ReadByte()
193 {
195 byte[] outputBuffer = this._outputBuffer;
198 return base.ReadByte();
199 }
200
201 // Token: 0x06001795 RID: 6037 RVA: 0x00032868 File Offset: 0x00030A68
202 public override void WriteByte(byte value)
203 {
205 byte[] outputBuffer = this._outputBuffer;
206 byte[] inputBuffer = this._inputBuffer;
207 }
208
209 // Token: 0x06001796 RID: 6038 RVA: 0x00032894 File Offset: 0x00030A94
210 public override int Read(byte[] buffer, int offset, int count)
211 {
212 /*
213An exception occurred when decompiling this method (06001796)
214
215ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Security.Cryptography.CryptoStream::Read(System.Byte[],System.Int32,System.Int32)
216
217 ---> System.Exception: Basic block has to end with unconditional control flow.
218{
219 Block_0:
220 call:void(CryptoStream::CheckReadArguments, ldloc:CryptoStream(this), ldloc:uint8[](buffer), ldloc:int32(offset), ldloc:int32(count))
221}
222
223 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
224 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
225 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
226 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
227 --- End of inner exception stack trace ---
228 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
229 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
230*/;
231 }
232
233 // Token: 0x06001797 RID: 6039 RVA: 0x000328AC File Offset: 0x00030AAC
234 private void CheckReadArguments(byte[] buffer, int offset, int count)
235 {
236 }
237
238 // Token: 0x06001798 RID: 6040 RVA: 0x000328BC File Offset: 0x00030ABC
239 private Task<int> ReadAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync)
240 {
241 /*
242An exception occurred when decompiling this method (06001798)
243
244ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Int32> System.Security.Cryptography.CryptoStream::ReadAsyncCore(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken,System.Boolean)
245
246 ---> System.Exception: Basic block has to end with unconditional control flow.
247{
248 IL_0000:
249 brtrue(IL_0000, ldc.i4:bool(1))
250}
251
252 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
253 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
254 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
255 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
256 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
257 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
258 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
259 --- End of inner exception stack trace ---
260 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
261 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
262*/;
263 }
264
265 // Token: 0x06001799 RID: 6041 RVA: 0x000328CC File Offset: 0x00030ACC
266 public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
267 {
268 this.CheckWriteArguments(buffer, offset, count);
269 return this.WriteAsyncInternal(buffer, offset, count, cancellationToken);
270 }
271
272 // Token: 0x0600179A RID: 6042 RVA: 0x000328F0 File Offset: 0x00030AF0
273 public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
274 {
275 if (!true)
276 {
277 }
279 IAsyncResult asyncResult;
280 return asyncResult;
281 }
282
283 // Token: 0x0600179B RID: 6043 RVA: 0x0003290C File Offset: 0x00030B0C
284 public override void EndWrite(IAsyncResult asyncResult)
285 {
286 TaskToApm.End(asyncResult);
287 }
288
289 // Token: 0x0600179C RID: 6044 RVA: 0x00032920 File Offset: 0x00030B20
290 private Task WriteAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
291 {
292 if (!true)
293 {
294 }
296 Task task;
297 return task;
298 }
299
300 // Token: 0x0600179D RID: 6045 RVA: 0x00032938 File Offset: 0x00030B38
301 public override void Write(byte[] buffer, int offset, int count)
302 {
303 this.CheckWriteArguments(buffer, offset, count);
304 Task task;
306 }
307
308 // Token: 0x0600179E RID: 6046 RVA: 0x0003295C File Offset: 0x00030B5C
309 private void CheckWriteArguments(byte[] buffer, int offset, int count)
310 {
311 }
312
313 // Token: 0x0600179F RID: 6047 RVA: 0x0003296C File Offset: 0x00030B6C
314 private Task WriteAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync)
315 {
316 if (!true)
317 {
318 }
320 Task task;
321 return task;
322 }
323
324 // Token: 0x060017A0 RID: 6048 RVA: 0x00032988 File Offset: 0x00030B88
325 public void Clear()
326 {
327 }
328
329 // Token: 0x060017A1 RID: 6049 RVA: 0x00032998 File Offset: 0x00030B98
330 protected override void Dispose(bool disposing)
331 {
332 if (!this._finalBlockTransformed)
333 {
334 this.FlushFinalBlock();
335 }
336 if (!this._leaveOpen)
337 {
338 Stream stream = this._stream;
339 stream.Dispose();
340 }
341 }
342
343 // Token: 0x060017A2 RID: 6050 RVA: 0x000329CC File Offset: 0x00030BCC
344 private void InitializeBuffer()
345 {
346 ICryptoTransform transform = this._transform;
347 if (transform != null)
348 {
349 return;
350 }
351 }
352
353 // Token: 0x1700026C RID: 620
354 // (get) Token: 0x060017A3 RID: 6051 RVA: 0x000329FC File Offset: 0x00030BFC
356 {
357 get
358 {
359 int num = 1;
360 if (num == 0)
361 {
362 }
363 if (num == 0)
364 {
365 }
367 return semaphoreSlim;
368 }
369 }
370
371 // Token: 0x04000C1D RID: 3101
373
374 // Token: 0x04000C1E RID: 3102
376
377 // Token: 0x04000C1F RID: 3103
379
380 // Token: 0x04000C20 RID: 3104
381 private byte[] _inputBuffer;
382
383 // Token: 0x04000C21 RID: 3105
384 private int _inputBufferIndex;
385
386 // Token: 0x04000C22 RID: 3106
387 private int _inputBlockSize;
388
389 // Token: 0x04000C23 RID: 3107
390 private byte[] _outputBuffer;
391
392 // Token: 0x04000C24 RID: 3108
394
395 // Token: 0x04000C25 RID: 3109
396 private int _outputBlockSize;
397
398 // Token: 0x04000C26 RID: 3110
399 private bool _canRead;
400
401 // Token: 0x04000C27 RID: 3111
402 private bool _canWrite;
403
404 // Token: 0x04000C28 RID: 3112
406
407 // Token: 0x04000C29 RID: 3113
409
410 // Token: 0x04000C2A RID: 3114
411 private readonly bool _leaveOpen;
412
413 // Token: 0x020002B6 RID: 694
415 [StructLayout(3)]
417 {
418 // Token: 0x060017A4 RID: 6052 RVA: 0x00032A14 File Offset: 0x00030C14
419 private void MoveNext()
420 {
422 TaskAwaiter<int> taskAwaiter = this.<>u__2;
423 }
424
425 // Token: 0x060017A5 RID: 6053 RVA: 0x00032AF4 File Offset: 0x00030CF4
430
431 // Token: 0x04000C2B RID: 3115
433
434 // Token: 0x04000C2C RID: 3116
436
437 // Token: 0x04000C2D RID: 3117
439
440 // Token: 0x04000C2E RID: 3118
441 public byte[] buffer;
442
443 // Token: 0x04000C2F RID: 3119
444 public int offset;
445
446 // Token: 0x04000C30 RID: 3120
447 public int count;
448
449 // Token: 0x04000C31 RID: 3121
451
452 // Token: 0x04000C32 RID: 3122
453 private SemaphoreSlim <semaphore>5__2;
454
455 // Token: 0x04000C33 RID: 3123
457
458 // Token: 0x04000C34 RID: 3124
460 }
461
462 // Token: 0x020002B7 RID: 695
464 [StructLayout(3)]
466 {
467 // Token: 0x060017A6 RID: 6054 RVA: 0x00032B04 File Offset: 0x00030D04
468 private void MoveNext()
469 {
471 }
472
473 // Token: 0x060017A7 RID: 6055 RVA: 0x00032EB4 File Offset: 0x000310B4
478
479 // Token: 0x04000C35 RID: 3125
481
482 // Token: 0x04000C36 RID: 3126
484
485 // Token: 0x04000C37 RID: 3127
486 public int count;
487
488 // Token: 0x04000C38 RID: 3128
489 public int offset;
490
491 // Token: 0x04000C39 RID: 3129
493
494 // Token: 0x04000C3A RID: 3130
495 public byte[] buffer;
496
497 // Token: 0x04000C3B RID: 3131
498 public bool useAsync;
499
500 // Token: 0x04000C3C RID: 3132
502
503 // Token: 0x04000C3D RID: 3133
504 private int <bytesToDeliver>5__2;
505
506 // Token: 0x04000C3E RID: 3134
507 private int <currentOutputIndex>5__3;
508
509 // Token: 0x04000C3F RID: 3135
510 private int <numWholeBlocksInBytes>5__4;
511
512 // Token: 0x04000C40 RID: 3136
513 private byte[] <tempInputBuffer>5__5;
514
515 // Token: 0x04000C41 RID: 3137
516 private byte[] <tempOutputBuffer>5__6;
517
518 // Token: 0x04000C42 RID: 3138
520 }
521
522 // Token: 0x020002B8 RID: 696
524 [StructLayout(3)]
526 {
527 // Token: 0x060017A8 RID: 6056 RVA: 0x00032EC4 File Offset: 0x000310C4
528 private void MoveNext()
529 {
531 TaskAwaiter taskAwaiter = this.<>u__2;
532 }
533
534 // Token: 0x060017A9 RID: 6057 RVA: 0x00032FB4 File Offset: 0x000311B4
539
540 // Token: 0x04000C43 RID: 3139
542
543 // Token: 0x04000C44 RID: 3140
545
546 // Token: 0x04000C45 RID: 3141
548
549 // Token: 0x04000C46 RID: 3142
550 public byte[] buffer;
551
552 // Token: 0x04000C47 RID: 3143
553 public int offset;
554
555 // Token: 0x04000C48 RID: 3144
556 public int count;
557
558 // Token: 0x04000C49 RID: 3145
560
561 // Token: 0x04000C4A RID: 3146
562 private SemaphoreSlim <semaphore>5__2;
563
564 // Token: 0x04000C4B RID: 3147
566
567 // Token: 0x04000C4C RID: 3148
569 }
570
571 // Token: 0x020002B9 RID: 697
573 [StructLayout(3)]
575 {
576 // Token: 0x060017AA RID: 6058 RVA: 0x00032FC4 File Offset: 0x000311C4
577 private void MoveNext()
578 {
580 }
581
582 // Token: 0x060017AB RID: 6059 RVA: 0x00033264 File Offset: 0x00031464
587
588 // Token: 0x04000C4D RID: 3149
590
591 // Token: 0x04000C4E RID: 3150
593
594 // Token: 0x04000C4F RID: 3151
595 public int count;
596
597 // Token: 0x04000C50 RID: 3152
598 public int offset;
599
600 // Token: 0x04000C51 RID: 3153
602
603 // Token: 0x04000C52 RID: 3154
604 public byte[] buffer;
605
606 // Token: 0x04000C53 RID: 3155
607 public bool useAsync;
608
609 // Token: 0x04000C54 RID: 3156
611
612 // Token: 0x04000C55 RID: 3157
613 private int <bytesToWrite>5__2;
614
615 // Token: 0x04000C56 RID: 3158
616 private int <currentInputIndex>5__3;
617
618 // Token: 0x04000C57 RID: 3159
619 private int <numOutputBytes>5__4;
620
621 // Token: 0x04000C58 RID: 3160
623
624 // Token: 0x04000C59 RID: 3161
625 private int <numWholeBlocksInBytes>5__5;
626
627 // Token: 0x04000C5A RID: 3162
628 private byte[] <tempOutputBuffer>5__6;
629 }
630
631 // Token: 0x020002BA RID: 698
633 [Serializable]
634 private sealed class <>c
635 {
636 // Token: 0x060017AC RID: 6060 RVA: 0x00033274 File Offset: 0x00031474
637 // Note: this type is marked as 'beforefieldinit'.
638 static <>c()
639 {
640 }
641
642 // Token: 0x060017AD RID: 6061 RVA: 0x00033284 File Offset: 0x00031484
643 public <>c()
644 {
645 }
646
647 // Token: 0x060017AE RID: 6062 RVA: 0x0000207A File Offset: 0x0000027A
649 {
650 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
651 }
652
653 // Token: 0x04000C5B RID: 3163
654 public static readonly CryptoStream.<>c <>9;
655
656 // Token: 0x04000C5C RID: 3164
657 public static Func<SemaphoreSlim> <>9__54_0;
658 }
659 }
660}
class f__AnonymousType0<< Count > j__TPar
void Dispose()
Definition Stream.cs:125
Task< int > ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
readonly CryptoStreamMode _transformMode
override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
override void Write(byte[] buffer, int offset, int count)
override Task< int > ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, bool leaveOpen)
override Task FlushAsync(CancellationToken cancellationToken)
override int Read(byte[] buffer, int offset, int count)
override long Seek(long offset, SeekOrigin origin)
void CheckReadArguments(byte[] buffer, int offset, int count)
Task WriteAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
void CheckWriteArguments(byte[] buffer, int offset, int count)
Task< int > ReadAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync)
override void EndWrite(IAsyncResult asyncResult)
override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
override int EndRead(IAsyncResult asyncResult)
Task WriteAsyncCore(byte[] buffer, int offset, int count, CancellationToken cancellationToken, bool useAsync)
override void Dispose(bool disposing)
static void End(IAsyncResult asyncResult)
Definition TaskToApm.cs:38
TaskAwaiter GetAwaiter()
Definition Task.2.cs:1221
new Type GetType()
Definition Type.cs:287
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncTaskMethodBuilder< int ><> t__builder
byte[]< tempInputBuffer > byte[]< tempOutputBuffer > ValueTaskAwaiter< int ><> u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncTaskMethodBuilder< int ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
void SetStateMachine(IAsyncStateMachine stateMachine)