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

◆ CallGetCalendarInfoEx() [2/2]

static unsafe bool System.Globalization.CalendarData.CallGetCalendarInfoEx ( string localeName,
CalendarId calendar,
uint calType,
out string data )
inlinestaticprivate

Definition at line 726 of file CalendarData.cs.

727 {
728 char* ptr = stackalloc char[80];
729 int num = Interop.Kernel32.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType, (IntPtr)ptr, 80, IntPtr.Zero);
730 if (num > 0)
731 {
732 if (ptr[num - 1] == '\0')
733 {
734 num--;
735 }
736 data = new string(ptr, 0, num);
737 return true;
738 }
739 data = "";
740 return false;
741 }
static int GetCalendarInfoEx(string lpLocaleName, uint Calendar, IntPtr lpReserved, uint CalType, IntPtr lpCalData, int cchData, out int lpValue)

References Interop.Kernel32.GetCalendarInfoEx(), and System.IntPtr.Zero.