terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
ChunkedInputStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6
7namespace System.Net
8{
9 [global::Cpp2ILInjected.Token(Token = "0x2000232")]
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x6000E1A")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1F3F38C", Offset = "0x1F3F38C", Length = "0xF4")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "GetRequestStream", MemberParameters = new object[]
16 {
17 typeof(bool),
18 typeof(long)
19 }, ReturnType = typeof(RequestStream))]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = ".ctor", MemberParameters = new object[]
22 {
24 typeof(byte[]),
25 typeof(int),
26 typeof(int)
27 }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = ".ctor", MemberParameters = new object[] { typeof(WebHeaderCollection) }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
31 {
32 throw null;
33 }
34
35 [global::Cpp2ILInjected.Token(Token = "0x170002F1")]
37 {
38 [global::Cpp2ILInjected.Token(Token = "0x6000E1B")]
39 [global::Cpp2ILInjected.Address(RVA = "0x1F3F480", Offset = "0x1F3F480", Length = "0x8")]
40 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
41 get
42 {
43 throw null;
44 }
45 [global::Cpp2ILInjected.Token(Token = "0x6000E1C")]
46 [global::Cpp2ILInjected.Address(RVA = "0x1F3F488", Offset = "0x1F3F488", Length = "0x8")]
47 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
48 set
49 {
50 throw null;
51 }
52 }
53
54 [global::Cpp2ILInjected.Token(Token = "0x6000E1D")]
55 [global::Cpp2ILInjected.Address(RVA = "0x1F3F490", Offset = "0x1F3F490", Length = "0x3C")]
56 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
57 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
58 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
59 public override int Read([In] [Out] byte[] buffer, int offset, int count)
60 {
61 throw null;
62 }
63
64 [global::Cpp2ILInjected.Token(Token = "0x6000E1E")]
65 [global::Cpp2ILInjected.Address(RVA = "0x1F3F4CC", Offset = "0x1F3F4CC", Length = "0x2D8")]
66 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
67 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpStreamAsyncResult), Member = ".ctor", ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "Read", MemberParameters = new object[]
70 {
71 typeof(byte[]),
72 typeof(int),
73 typeof(int)
74 }, ReturnType = typeof(int))]
75 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "get_WantMore", ReturnType = typeof(bool))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncCallback), Member = ".ctor", MemberParameters = new object[]
78 {
79 typeof(object),
81 }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = "BeginRead", MemberParameters = new object[]
83 {
84 typeof(byte[]),
85 typeof(int),
86 typeof(int),
87 typeof(AsyncCallback),
88 typeof(object)
89 }, ReturnType = typeof(IAsyncResult))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpStreamAsyncResult), Member = "Complete", ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = "GetType", ReturnType = typeof(Type))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ObjectDisposedException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 23)]
96 public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback cback, object state)
97 {
98 throw null;
99 }
100
101 [global::Cpp2ILInjected.Token(Token = "0x6000E1F")]
102 [global::Cpp2ILInjected.Address(RVA = "0x1F3F94C", Offset = "0x1F3F94C", Length = "0x33C")]
103 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = "EndRead", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(int))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "Write", MemberParameters = new object[]
107 {
108 typeof(byte[]),
109 typeof(int),
110 typeof(int)
111 }, ReturnType = typeof(void))]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "Read", MemberParameters = new object[]
113 {
114 typeof(byte[]),
115 typeof(int),
116 typeof(int)
117 }, ReturnType = typeof(int))]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "get_WantMore", ReturnType = typeof(bool))]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MonoChunkParser), Member = "get_ChunkLeft", ReturnType = typeof(int))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
121 {
122 typeof(int),
123 typeof(int)
124 }, ReturnType = typeof(int))]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncCallback), Member = ".ctor", MemberParameters = new object[]
126 {
127 typeof(object),
129 }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = "BeginRead", MemberParameters = new object[]
131 {
132 typeof(byte[]),
133 typeof(int),
134 typeof(int),
135 typeof(AsyncCallback),
136 typeof(object)
137 }, ReturnType = typeof(IAsyncResult))]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpStreamAsyncResult), Member = "Complete", ReturnType = typeof(void))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "SendError", MemberParameters = new object[]
140 {
141 typeof(string),
142 typeof(int)
143 }, ReturnType = typeof(void))]
144 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
146 {
147 throw null;
148 }
149
150 [global::Cpp2ILInjected.Token(Token = "0x6000E20")]
151 [global::Cpp2ILInjected.Address(RVA = "0x1F3FE30", Offset = "0x1F3FE30", Length = "0x268")]
152 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
153 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = "GetType", ReturnType = typeof(Type))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ObjectDisposedException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[]
157 {
158 typeof(string),
159 typeof(string)
160 }, ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
162 {
163 typeof(string),
164 typeof(string)
165 }, ReturnType = typeof(string))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerException), Member = ".ctor", MemberParameters = new object[]
167 {
168 typeof(int),
169 typeof(string)
170 }, ReturnType = typeof(void))]
171 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
172 public override int EndRead(IAsyncResult ares)
173 {
174 throw null;
175 }
176
177 [global::Cpp2ILInjected.Token(Token = "0x6000E21")]
178 [global::Cpp2ILInjected.Address(RVA = "0x1F40098", Offset = "0x1F40098", Length = "0x1C")]
179 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = "Close", ReturnType = typeof(void))]
181 public override void Close()
182 {
183 throw null;
184 }
185
186 [global::Cpp2ILInjected.Token(Token = "0x4000BBB")]
187 [global::Cpp2ILInjected.FieldOffset(Offset = "0x50")]
188 private bool disposed;
189
190 [global::Cpp2ILInjected.Token(Token = "0x4000BBC")]
191 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
193
194 [global::Cpp2ILInjected.Token(Token = "0x4000BBD")]
195 [global::Cpp2ILInjected.FieldOffset(Offset = "0x60")]
197
198 [global::Cpp2ILInjected.Token(Token = "0x4000BBE")]
199 [global::Cpp2ILInjected.FieldOffset(Offset = "0x68")]
200 private bool no_more_data;
201
202 [global::Cpp2ILInjected.Token(Token = "0x2000233")]
203 private class ReadBufferState
204 {
205 [global::Cpp2ILInjected.Token(Token = "0x6000E22")]
206 [global::Cpp2ILInjected.Address(RVA = "0x1F3F904", Offset = "0x1F3F904", Length = "0x48")]
207 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
208 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
210 {
211 throw null;
212 }
213
214 [global::Cpp2ILInjected.Token(Token = "0x4000BBF")]
215 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
216 public byte[] Buffer;
217
218 [global::Cpp2ILInjected.Token(Token = "0x4000BC0")]
219 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
220 public int Offset;
221
222 [global::Cpp2ILInjected.Token(Token = "0x4000BC1")]
223 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
224 public int Count;
225
226 [global::Cpp2ILInjected.Token(Token = "0x4000BC2")]
227 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
228 public int InitialCount;
229
230 [global::Cpp2ILInjected.Token(Token = "0x4000BC3")]
231 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
233 }
234 }
235}
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)
RequestStream(Stream stream, byte[] buffer, int offset, int length)