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

◆ OpenFileInternal()

void System.Net.WebClient.OpenFileInternal ( bool needsHeaderAndBoundary,
string fileName,
FileStream fs,
byte[] buffer,
byte[] formHeaderBytes,
byte[] boundaryBytes )
inlineprivate

Definition at line 979 of file WebClient.cs.

980 {
981 if (!true)
982 {
983 }
984 string fullPath = Path.GetFullPath(fileName);
985 if (this.Headers["Content-Type"] != null)
986 {
987 }
988 string method = this._method;
989 long ticks = DateTime.Now.Ticks;
991 string text2;
992 string text = "---------------------" + text2;
993 string text3 = "multipart/form-data; boundary=" + text;
994 string text4;
995 if (("--" == null || "--" != null) && (text == null || text != null) && ("\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" == null || "\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" != null) && (text4 == null || text4 != null) && ("\"\r\nContent-Type: " == null || "\"\r\nContent-Type: " != null) && ("application/octet-stream" == null || "application/octet-stream" != null) && ("\r\n\r\n" == null || "\r\n\r\n" != null))
996 {
1000 string text5 = "\r\n--" + text + "--\r\n";
1001 return;
1002 }
1003 throw new ArrayTypeMismatchException();
1004 }
class f__AnonymousType0<< Count > j__TPar
static string GetFullPath(string path)
Definition Path.cs:170
WebHeaderCollection Headers
Definition WebClient.cs:546
static Encoding UTF8
Definition Encoding.cs:828
static Encoding ASCII
Definition Encoding.cs:348
static DateTime Now
Definition DateTime.cs:530

References System.Net.WebClient._method, System.Text.Encoding.ASCII, System.IO.Path.GetFullPath(), System.Net.WebClient.Headers, System.Globalization.NumberFormatInfo.InvariantInfo, j__TPar, System.DateTime.Now, System.text, System.DateTime.Ticks, and System.Text.Encoding.UTF8.