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
BufferedReadStream.cs
Go to the documentation of this file.
1using System;
3using System.IO;
10
11namespace System.Net
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000230")]
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x6000E15")]
17 [global::Cpp2ILInjected.Address(RVA = "0x1F3EECC", Offset = "0x1F3EECC", Length = "0x28")]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebResponseStream.<ReadAllAsync>d__48", Member = "MoveNext", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WebResponseStream), Member = "Initialize", MemberParameters = new object[] { typeof(BufferOffsetSize) }, ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WebReadStream), Member = ".ctor", MemberParameters = new object[]
22 {
25 }, ReturnType = typeof(void))]
27 {
28 throw null;
29 }
30
31 [global::Cpp2ILInjected.Token(Token = "0x6000E16")]
32 [global::Cpp2ILInjected.Address(RVA = "0x1F3EEF4", Offset = "0x1F3EEF4", Length = "0x128")]
33 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
34 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "Create", ReturnType = "System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult>")]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "Start", MemberTypeParameters = new object[] { typeof(BufferedReadStream.<ProcessReadAsync>d__2) }, MemberParameters = new object[] { typeof(ref BufferedReadStream.<ProcessReadAsync>d__2) }, ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "get_Task", ReturnType = "System.Threading.Tasks.Task`1<TResult>")]
38 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
39 protected override Task<int> ProcessReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x6000E17")]
45 [global::Cpp2ILInjected.Address(RVA = "0x1F3F01C", Offset = "0x1F3F01C", Length = "0x88")]
46 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WebResponseStream), Member = "TryReadFromBufferedContent", MemberParameters = new object[]
48 {
49 typeof(byte[]),
50 typeof(int),
51 typeof(int),
52 typeof(ref int)
53 }, ReturnType = typeof(bool))]
54 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
56 {
58 typeof(int),
60 typeof(int),
61 typeof(int)
62 }, ReturnType = typeof(void))]
63 internal bool TryReadFromBuffer(byte[] buffer, int offset, int size, out int result)
64 {
65 throw null;
66 }
67
68 [global::Cpp2ILInjected.Token(Token = "0x4000BB2")]
69 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
71
73 [global::Cpp2ILInjected.Token(Token = "0x2000231")]
74 [StructLayout(3)]
76 {
77 [global::Cpp2ILInjected.Token(Token = "0x6000E18")]
78 [global::Cpp2ILInjected.Address(RVA = "0x1F3F0A4", Offset = "0x1F3F0A4", Length = "0x290")]
79 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
80 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
81 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CancellationToken), Member = "ThrowIfCancellationRequested", ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
83 {
85 typeof(int),
87 typeof(int),
88 typeof(int)
89 }, ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Task<int>), Member = "ConfigureAwait", MemberParameters = new object[] { typeof(bool) }, ReturnType = "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1<TResult>")]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConfiguredTaskAwaitable<int>.ConfiguredTaskAwaiter), Member = "get_IsCompleted", ReturnType = typeof(bool))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "AwaitUnsafeOnCompleted", MemberTypeParameters = new object[]
93 {
94 typeof(ConfiguredTaskAwaitable<int>.ConfiguredTaskAwaiter),
96 }, MemberParameters = new object[]
97 {
98 typeof(ref ConfiguredTaskAwaitable<int>.ConfiguredTaskAwaiter),
100 }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConfiguredTaskAwaitable<int>.ConfiguredTaskAwaiter), Member = "GetResult", ReturnType = "TResult")]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "SetResult", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "SetException", MemberParameters = new object[] { typeof(Exception) }, ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
105 private void MoveNext()
106 {
107 throw null;
108 }
109
111 [global::Cpp2ILInjected.Token(Token = "0x6000E19")]
112 [global::Cpp2ILInjected.Address(RVA = "0x1F3F334", Offset = "0x1F3F334", Length = "0x58")]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncTaskMethodBuilder<int>), Member = "SetStateMachine", MemberParameters = new object[] { typeof(IAsyncStateMachine) }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
117 {
118 throw null;
119 }
120
121 [global::Cpp2ILInjected.Token(Token = "0x4000BB3")]
122 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
124
125 [global::Cpp2ILInjected.Token(Token = "0x4000BB4")]
126 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
128
129 [global::Cpp2ILInjected.Token(Token = "0x4000BB5")]
130 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
132
133 [global::Cpp2ILInjected.Token(Token = "0x4000BB6")]
134 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
136
137 [global::Cpp2ILInjected.Token(Token = "0x4000BB7")]
138 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
139 public int size;
140
141 [global::Cpp2ILInjected.Token(Token = "0x4000BB8")]
142 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
143 public byte[] buffer;
144
145 [global::Cpp2ILInjected.Token(Token = "0x4000BB9")]
146 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
147 public int offset;
148
149 [global::Cpp2ILInjected.Token(Token = "0x4000BBA")]
150 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
152 }
153 }
154}
class f__AnonymousType0<< Count > j__TPar
readonly BufferOffsetSize readBuffer
override Task< int > ProcessReadAsync(byte[] buffer, int offset, int size, CancellationToken cancellationToken)
BufferedReadStream(WebOperation operation, Stream innerStream, BufferOffsetSize readBuffer)
bool TryReadFromBuffer(byte[] buffer, int offset, int size, out int result)
ConfiguredTaskAwaitable< int >.ConfiguredTaskAwaiter u__1
AsyncTaskMethodBuilder< int ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)