Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetTempPath() [2/2]

static void System.IO.Path.GetTempPath ( ref ValueStringBuilder builder)
inlinestaticprivate

Definition at line 952 of file Path.cs.

953 {
954 uint tempPathW;
955 while ((tempPathW = Interop.Kernel32.GetTempPathW(builder.Capacity, ref builder.GetPinnableReference())) > builder.Capacity)
956 {
957 builder.EnsureCapacity(checked((int)tempPathW));
958 }
959 if (tempPathW == 0)
960 {
961 throw Win32Marshal.GetExceptionForLastWin32Error();
962 }
963 builder.Length = (int)tempPathW;
964 }
static uint GetTempPathW(int bufferLen, ref char buffer)

References System.IO.Win32Marshal.GetExceptionForLastWin32Error(), and Interop.Kernel32.GetTempPathW().