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
Base64Stream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6
7namespace System.Net
8{
9 // Token: 0x02000134 RID: 308
10 internal sealed class Base64Stream : DelegatedStream, global::System.Net.Mime.IEncodableStream
11 {
12 // Token: 0x0600073B RID: 1851 RVA: 0x0001A28C File Offset: 0x0001848C
13 internal Base64Stream(Stream stream, global::System.Net.Mime.Base64WriteStateInfo writeStateInfo)
14 : base(stream)
15 {
16 int maxLineLength = writeStateInfo._maxLineLength;
18 }
19
20 // Token: 0x0600073C RID: 1852 RVA: 0x0001A2B0 File Offset: 0x000184B0
21 internal Base64Stream(global::System.Net.Mime.Base64WriteStateInfo writeStateInfo)
22 {
23 int maxLineLength = writeStateInfo._maxLineLength;
26 }
27
28 // Token: 0x17000184 RID: 388
29 // (get) Token: 0x0600073D RID: 1853 RVA: 0x0001A2D4 File Offset: 0x000184D4
31 {
32 get
33 {
34 /*
35An exception occurred when decompiling this method (0600073D)
36
37ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.Base64Stream/ReadStateInfo System.Net.Base64Stream::get_ReadState()
38
39 ---> System.Exception: Basic block has to end with unconditional control flow.
40{
41 IL_0000:
42 brtrue(IL_0000, ldfld:ReadStateInfo[exp:bool](Base64Stream::_readState, ldloc:Base64Stream(this)))
43}
44
45 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
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 1878
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 1846
49 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
50 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
51 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
52 --- End of inner exception stack trace ---
53 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
54 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
55*/;
56 }
57 }
58
59 // Token: 0x17000185 RID: 389
60 // (get) Token: 0x0600073E RID: 1854 RVA: 0x0001A2E8 File Offset: 0x000184E8
61 internal global::System.Net.Mime.Base64WriteStateInfo WriteState
62 {
63 get
64 {
65 return this._writeState;
66 }
67 }
68
69 // Token: 0x0600073F RID: 1855 RVA: 0x0001A2FC File Offset: 0x000184FC
70 public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
71 {
72 while (buffer == null)
73 {
74 }
75 return "offset";
76 }
77
78 // Token: 0x06000740 RID: 1856 RVA: 0x0001A318 File Offset: 0x00018518
79 public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
80 {
81 while (buffer == null)
82 {
83 }
84 return "offset";
85 }
86
87 // Token: 0x06000741 RID: 1857 RVA: 0x0001A334 File Offset: 0x00018534
88 public override void Close()
89 {
90 global::System.Net.Mime.Base64WriteStateInfo writeState = this._writeState;
91 if (writeState != null)
92 {
93 int currentBufferUsed = writeState._currentBufferUsed;
94 if (writeState.<Padding>k__BackingField == 0)
95 {
96 }
97 byte <LastBits>k__BackingField = this._writeState.<LastBits>k__BackingField;
98 return;
99 }
100 Stream stream = this._stream;
101 }
102
103 // Token: 0x06000742 RID: 1858 RVA: 0x0001A390 File Offset: 0x00018590
104 public int DecodeBytes(byte[] buffer, int offset, int count)
105 {
106 /*
107An exception occurred when decompiling this method (06000742)
108
109ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Net.Base64Stream::DecodeBytes(System.Byte[],System.Int32,System.Int32)
110
111 ---> System.Exception: Basic block has to end with unconditional control flow.
112{
113 IL_0008:
114 stloc:uint8(var_1_13, ldfld:uint8(ReadStateInfo::<Pos>k__BackingField, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this))))
115 stloc:ReadStateInfo(var_2_1A, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this)))
116 stloc:uint8(var_3_26, ldfld:uint8(ReadStateInfo::<Val>k__BackingField, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this))))
117 stloc:ReadStateInfo(var_4_2D, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this)))
118 stloc:uint8(var_5_3A, ldfld:uint8(ReadStateInfo::<Val>k__BackingField, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this))))
119 stfld:uint8(ReadStateInfo::<Val>k__BackingField, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this)), ldloc:uint8(var_5_3A))
120 stloc:ReadStateInfo(var_6_4F, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this)))
121 stloc:uint8(var_7_58, ldfld:uint8(ReadStateInfo::<Pos>k__BackingField, ldloc:ReadStateInfo(var_6_4F)))
122 stfld:uint8(ReadStateInfo::<Pos>k__BackingField, ldloc:ReadStateInfo(var_6_4F), ldloc:uint8(var_7_58))
123 stloc:uint8(var_8_6E, ldfld:uint8(ReadStateInfo::<Val>k__BackingField, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this))))
124 stloc:ReadStateInfo(var_9_76, callgetter:ReadStateInfo(Base64Stream::get_ReadState, ldloc:Base64Stream(this)))
125}
126
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136
137 // Token: 0x06000743 RID: 1859 RVA: 0x0001A414 File Offset: 0x00018614
138 public int EncodeBytes(byte[] buffer, int offset, int count)
139 {
140 return this.EncodeBytes(buffer, offset, count, true, true);
141 }
142
143 // Token: 0x06000744 RID: 1860 RVA: 0x0001A42C File Offset: 0x0001862C
144 internal int EncodeBytes(byte[] buffer, int offset, int count, bool dontDeferFinalBytes, bool shouldAppendSpaceToCRLF)
145 {
146 int num = 1;
147 global::System.Net.Mime.Base64WriteStateInfo writeState = this._writeState;
148 writeState.AppendHeader();
149 if (num != 0)
150 {
151 }
152 return 1;
153 }
154
155 // Token: 0x06000745 RID: 1861 RVA: 0x00002050 File Offset: 0x00000250
157 {
158 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
159 }
160
161 // Token: 0x06000746 RID: 1862 RVA: 0x0001A4B8 File Offset: 0x000186B8
162 public string GetEncodedString()
163 {
164 /*
165An exception occurred when decompiling this method (06000746)
166
167ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.Base64Stream::GetEncodedString()
168
169 ---> System.Exception: Basic block has to end with unconditional control flow.
170{
171 Block_0:
172 stloc:Encoding(var_1_07, callgetter:Encoding(Encoding::get_ASCII))
173 stloc:Base64WriteStateInfo(var_2_0E, ldfld:Base64WriteStateInfo(Base64Stream::_writeState, ldloc:Base64Stream(this)))
174 stloc:uint8[](var_3_15, ldfld:uint8[](WriteStateInfoBase::_buffer, ldloc:Base64WriteStateInfo[exp:WriteStateInfoBase](var_2_0E)))
175 stloc:int32(var_4_1C, ldfld:int32(WriteStateInfoBase::_currentBufferUsed, ldloc:Base64WriteStateInfo[exp:WriteStateInfoBase](var_2_0E)))
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.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
180 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
181 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
182 --- End of inner exception stack trace ---
183 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
184 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
185*/;
186 }
187
188 // Token: 0x06000747 RID: 1863 RVA: 0x0001A4E4 File Offset: 0x000186E4
189 public override int EndRead(IAsyncResult asyncResult)
190 {
191 while (asyncResult == null)
192 {
193 }
194 return Base64Stream.ReadAsyncResult.End(asyncResult);
195 }
196
197 // Token: 0x06000748 RID: 1864 RVA: 0x0001A4FC File Offset: 0x000186FC
198 public override void EndWrite(IAsyncResult asyncResult)
199 {
200 while (asyncResult == null)
201 {
202 }
203 Base64Stream.WriteAsyncResult.End(asyncResult);
204 }
205
206 // Token: 0x06000749 RID: 1865 RVA: 0x0001A514 File Offset: 0x00018714
207 public override void Flush()
208 {
209 global::System.Net.Mime.Base64WriteStateInfo writeState = this._writeState;
210 if (writeState != null)
211 {
212 int currentBufferUsed = writeState._currentBufferUsed;
213 this.FlushInternal();
214 }
215 Stream stream = this._stream;
216 }
217
218 // Token: 0x0600074A RID: 1866 RVA: 0x0001A540 File Offset: 0x00018740
219 private void FlushInternal()
220 {
221 global::System.Net.Mime.Base64WriteStateInfo writeState = this._writeState;
222 long num = 0L;
223 byte[] buffer = writeState._buffer;
224 int currentBufferUsed = writeState._currentBufferUsed;
225 base.Write(buffer, (int)num, currentBufferUsed);
226 this._writeState.Reset();
227 }
228
229 // Token: 0x0600074B RID: 1867 RVA: 0x0001A578 File Offset: 0x00018778
230 public override int Read(byte[] buffer, int offset, int count)
231 {
232 int num;
233 for (;;)
234 {
235 if (buffer != null)
236 {
237 num = base.Read(buffer, offset, count);
238 if (num != 0)
239 {
240 break;
241 }
242 }
243 }
244 return this.DecodeBytes(buffer, offset, num);
245 }
246
247 // Token: 0x0600074C RID: 1868 RVA: 0x0001A5A4 File Offset: 0x000187A4
248 public override void Write(byte[] buffer, int offset, int count)
249 {
250 if (buffer != null)
251 {
252 long num = 0L;
253 long num2 = 0L;
254 int num3 = this.EncodeBytes(buffer, offset, count, num != 0L, num2 != 0L);
255 this.FlushInternal();
256 long num4 = 0L;
257 long num5 = 0L;
258 int num6 = this.EncodeBytes(buffer, offset, count, num4 != 0L, num5 != 0L);
259 return;
260 }
261 }
262
263 // Token: 0x0600074D RID: 1869 RVA: 0x0001A5E0 File Offset: 0x000187E0
264 // Note: this type is marked as 'beforefieldinit'.
266 {
267 }
268
269 // Token: 0x040005D4 RID: 1492
270 private static readonly byte[] s_base64DecodeMap;
271
272 // Token: 0x040005D5 RID: 1493
273 private static readonly byte[] s_base64EncodeMap;
274
275 // Token: 0x040005D6 RID: 1494
277
278 // Token: 0x040005D7 RID: 1495
279 private readonly global::System.Net.Mime.Base64WriteStateInfo _writeState;
280
281 // Token: 0x040005D8 RID: 1496
283
284 // Token: 0x040005D9 RID: 1497
285 private const int SizeOfBase64EncodedChar = 4;
286
287 // Token: 0x040005DA RID: 1498
288 private const byte InvalidBase64Value = 255;
289
290 // Token: 0x02000135 RID: 309
291 private sealed class ReadAsyncResult : LazyAsyncResult
292 {
293 // Token: 0x0600074E RID: 1870 RVA: 0x0001A5F0 File Offset: 0x000187F0
294 internal ReadAsyncResult(Base64Stream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)
295 {
296 long num = 0L;
297 base..ctor(num, state, callback);
298 this._parent = parent;
299 this._buffer = buffer;
302 }
303
304 // Token: 0x0600074F RID: 1871 RVA: 0x0001A628 File Offset: 0x00018828
305 private bool CompleteRead(IAsyncResult result)
306 {
307 Stream stream = this._parent._stream;
308 this._read = stream;
309 if (stream != null)
310 {
311 Base64Stream parent = this._parent;
312 byte[] buffer = this._buffer;
313 int offset = this._offset;
314 int num;
315 this._read = num;
316 }
317 base.InvokeCallback();
318 return true;
319 }
320
321 // Token: 0x06000750 RID: 1872 RVA: 0x0001A674 File Offset: 0x00018874
322 internal void Read()
323 {
324 Base64Stream parent = this._parent;
325 byte[] buffer = this._buffer;
326 int offset = this._offset;
327 int read = this._read;
328 Stream stream = parent._stream;
329 if (parent == null)
330 {
331 }
332 }
333
334 // Token: 0x06000751 RID: 1873 RVA: 0x0001A6AC File Offset: 0x000188AC
335 private static void OnRead(IAsyncResult result)
336 {
337 }
338
339 // Token: 0x06000752 RID: 1874 RVA: 0x0001A6D0 File Offset: 0x000188D0
340 internal static int End(IAsyncResult result)
341 {
342 throw new InvalidCastException();
343 }
344
345 // Token: 0x06000753 RID: 1875 RVA: 0x0001A6E4 File Offset: 0x000188E4
346 // Note: this type is marked as 'beforefieldinit'.
348 {
349 }
350
351 // Token: 0x040005DB RID: 1499
353
354 // Token: 0x040005DC RID: 1500
355 private readonly byte[] _buffer;
356
357 // Token: 0x040005DD RID: 1501
358 private readonly int _offset;
359
360 // Token: 0x040005DE RID: 1502
361 private readonly int _count;
362
363 // Token: 0x040005DF RID: 1503
364 private int _read;
365
366 // Token: 0x040005E0 RID: 1504
368 }
369
370 // Token: 0x02000136 RID: 310
371 private sealed class WriteAsyncResult : LazyAsyncResult
372 {
373 // Token: 0x06000754 RID: 1876 RVA: 0x0001A6F4 File Offset: 0x000188F4
374 internal WriteAsyncResult(Base64Stream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)
375 {
376 long num = 0L;
377 base..ctor(num, state, callback);
378 this._parent = parent;
379 this._buffer = buffer;
382 }
383
384 // Token: 0x06000755 RID: 1877 RVA: 0x0001A72C File Offset: 0x0001892C
385 internal void Write()
386 {
387 int count = this._count;
388 int offset = this._offset;
389 Base64Stream parent = this._parent;
390 byte[] buffer = this._buffer;
391 int count2 = this._count;
394 global::System.Net.Mime.Base64WriteStateInfo writeState = parent2._writeState;
395 Stream stream = parent2._stream;
396 byte[] buffer2 = writeState._buffer;
397 int currentBufferUsed = writeState._currentBufferUsed;
398 if (parent2 == null)
399 {
400 }
401 }
402
403 // Token: 0x06000756 RID: 1878 RVA: 0x0001A7BC File Offset: 0x000189BC
404 private void CompleteWrite(IAsyncResult result)
405 {
406 Stream stream = this._parent._stream;
407 this._parent._writeState.Reset();
408 }
409
410 // Token: 0x06000757 RID: 1879 RVA: 0x0001A7E8 File Offset: 0x000189E8
411 private static void OnWrite(IAsyncResult result)
412 {
413 }
414
415 // Token: 0x06000758 RID: 1880 RVA: 0x0001A80C File Offset: 0x00018A0C
416 internal static void End(IAsyncResult result)
417 {
418 if (result != null)
419 {
420 }
421 }
422
423 // Token: 0x06000759 RID: 1881 RVA: 0x0001A824 File Offset: 0x00018A24
424 // Note: this type is marked as 'beforefieldinit'.
426 {
427 }
428
429 // Token: 0x040005E1 RID: 1505
431
432 // Token: 0x040005E2 RID: 1506
434
435 // Token: 0x040005E3 RID: 1507
436 private readonly byte[] _buffer;
437
438 // Token: 0x040005E4 RID: 1508
439 private readonly int _offset;
440
441 // Token: 0x040005E5 RID: 1509
442 private readonly int _count;
443
444 // Token: 0x040005E6 RID: 1510
445 private int _written;
446 }
447
448 // Token: 0x02000137 RID: 311
449 private sealed class ReadStateInfo
450 {
451 // Token: 0x17000186 RID: 390
452 // (get) Token: 0x0600075A RID: 1882 RVA: 0x0001A834 File Offset: 0x00018A34
453 // (set) Token: 0x0600075B RID: 1883 RVA: 0x0001A848 File Offset: 0x00018A48
454 internal byte Val
455 {
457 get
458 {
459 return this.<Val>k__BackingField;
460 }
462 set
463 {
464 this.<Val>k__BackingField = value;
465 }
466 }
467
468 // Token: 0x17000187 RID: 391
469 // (get) Token: 0x0600075C RID: 1884 RVA: 0x0001A85C File Offset: 0x00018A5C
470 // (set) Token: 0x0600075D RID: 1885 RVA: 0x0001A870 File Offset: 0x00018A70
471 internal byte Pos
472 {
474 get
475 {
476 return this.<Pos>k__BackingField;
477 }
479 set
480 {
481 this.<Pos>k__BackingField = value;
482 }
483 }
484
485 // Token: 0x0600075E RID: 1886 RVA: 0x0001A884 File Offset: 0x00018A84
487 {
488 }
489
490 // Token: 0x040005E7 RID: 1511
492 private byte <Val>k__BackingField;
493
494 // Token: 0x040005E8 RID: 1512
496 private byte <Pos>k__BackingField;
497 }
498 }
499}
class f__AnonymousType0<< Count > j__TPar
bool CompleteRead(IAsyncResult result)
static int End(IAsyncResult result)
static readonly AsyncCallback s_onRead
ReadAsyncResult(Base64Stream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)
static void OnRead(IAsyncResult result)
static readonly AsyncCallback s_onWrite
void CompleteWrite(IAsyncResult result)
WriteAsyncResult(Base64Stream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)
static void OnWrite(IAsyncResult result)
static void End(IAsyncResult result)
static readonly byte[] s_base64DecodeMap
override int Read(byte[] buffer, int offset, int count)
override void Write(byte[] buffer, int offset, int count)
Base64Stream(Stream stream, global::System.Net.Mime.Base64WriteStateInfo writeStateInfo)
Base64Stream.ReadStateInfo _readState
int EncodeBytes(byte[] buffer, int offset, int count)
Base64Stream(global::System.Net.Mime.Base64WriteStateInfo writeStateInfo)
static readonly byte[] s_base64EncodeMap
global::System.Net.Mime.Base64WriteStateInfo WriteState
override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
override void Flush()
override void Close()
readonly global::System.Net.Mime.Base64WriteStateInfo _writeState
int DecodeBytes(byte[] buffer, int offset, int count)
override int EndRead(IAsyncResult asyncResult)
override void EndWrite(IAsyncResult asyncResult)
const int SizeOfBase64EncodedChar
int EncodeBytes(byte[] buffer, int offset, int count, bool dontDeferFinalBytes, bool shouldAppendSpaceToCRLF)
override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)