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
ChunkedInputStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5
6namespace System.Net
7{
8 // Token: 0x02000232 RID: 562
10 {
11 // Token: 0x06000E1A RID: 3610 RVA: 0x0002CED4 File Offset: 0x0002B0D4
14 {
16 if (context.request.headers != null)
17 {
18 }
19 }
20
21 // Token: 0x170002F1 RID: 753
22 // (get) Token: 0x06000E1B RID: 3611 RVA: 0x0002CF08 File Offset: 0x0002B108
23 // (set) Token: 0x06000E1C RID: 3612 RVA: 0x0002CF1C File Offset: 0x0002B11C
25 {
26 get
27 {
28 return this.decoder;
29 }
30 set
31 {
33 }
34 }
35
36 // Token: 0x06000E1D RID: 3613 RVA: 0x00002050 File Offset: 0x00000250
37 public override int Read([In] [Out] byte[] buffer, int offset, int count)
38 {
39 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
40 }
41
42 // Token: 0x06000E1E RID: 3614 RVA: 0x0002CF30 File Offset: 0x0002B130
43 public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback cback, object state)
44 {
45 while (this.disposed || buffer == null)
46 {
47 }
48 if (!this.no_more_data)
49 {
50 int num = this.decoder.Read(buffer, offset, count);
51 bool wantMore = this.decoder.WantMore;
52 IAsyncResult asyncResult;
53 return asyncResult;
54 }
55 return "offset exceeds the size of buffer";
56 }
57
58 // Token: 0x06000E1F RID: 3615 RVA: 0x0002CF78 File Offset: 0x0002B178
60 {
61 }
62
63 // Token: 0x06000E20 RID: 3616 RVA: 0x0002D008 File Offset: 0x0002B208
64 public override int EndRead(IAsyncResult ares)
65 {
66 long num;
67 if (!this.disposed)
68 {
69 if (ares == null)
70 {
71 return;
72 }
73 num = 0L;
74 if (ares != null)
75 {
76 return;
77 }
78 }
79 Type type = num.GetType();
80 }
81
82 // Token: 0x06000E21 RID: 3617 RVA: 0x0002D034 File Offset: 0x0002B234
83 public override void Close()
84 {
85 if (this.disposed)
86 {
87 return;
88 }
89 this.disposed = true;
90 base.Close();
91 }
92
93 // Token: 0x04000BBB RID: 3003
94 private bool disposed;
95
96 // Token: 0x04000BBC RID: 3004
98
99 // Token: 0x04000BBD RID: 3005
101
102 // Token: 0x04000BBE RID: 3006
103 private bool no_more_data;
104
105 // Token: 0x02000233 RID: 563
106 private class ReadBufferState
107 {
108 // Token: 0x06000E22 RID: 3618 RVA: 0x0002D058 File Offset: 0x0002B258
117
118 // Token: 0x04000BBF RID: 3007
119 public byte[] Buffer;
120
121 // Token: 0x04000BC0 RID: 3008
122 public int Offset;
123
124 // Token: 0x04000BC1 RID: 3009
125 public int Count;
126
127 // Token: 0x04000BC2 RID: 3010
128 public int InitialCount;
129
130 // Token: 0x04000BC3 RID: 3011
132 }
133 }
134}
class f__AnonymousType0<< Count > j__TPar
ReadBufferState(byte[] buffer, int offset, int count, HttpStreamAsyncResult ares)
void OnRead(IAsyncResult base_ares)
ChunkedInputStream(HttpListenerContext context, Stream stream, byte[] buffer, int offset, int length)
override int Read([In][Out] byte[] buffer, int offset, int count)
override int EndRead(IAsyncResult ares)
override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback cback, object state)
int Read(byte[] buffer, int offset, int size)