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

◆ FillFromBuffer()

int System.Net.RequestStream.FillFromBuffer ( byte[] buffer,
int off,
int count )
inlineprivate

Definition at line 95 of file RequestStream.cs.

96 {
97 if (buffer != null)
98 {
99 long num = this.remaining_body;
100 if (num != 0L)
101 {
102 int num2 = this.length;
103 if (num2 != 0)
104 {
105 if (num == 0L)
106 {
107 }
108 int num3 = Math.Min(num2, count);
109 long num4 = this.remaining_body;
110 if (num == 0L)
111 {
112 }
113 byte[] array = this.buffer;
114 int num5 = this.offset;
115 long num7;
116 int num6 = Math.Min((int)num7, (int)num4);
117 if (num6 != 0)
118 {
119 byte[] array2 = this.buffer;
120 int num8 = this.offset;
122 int num9 = this.offset;
123 long num10 = this.remaining_body;
124 long num11 = this.remaining_body;
128 }
129 }
130 }
131 }
132 return "offset";
133 }
class f__AnonymousType0<< Count > j__TPar
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
static byte Min(byte val1, byte val2)
Definition Math.cs:152

References System.array, System.Buffer.BlockCopy(), System.Net.RequestStream.buffer, System.count, j__TPar, System.L, System.Net.RequestStream.length, System.Math.Min(), System.Net.RequestStream.offset, and System.Net.RequestStream.remaining_body.