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

◆ GetSystemMaxDBCSCharSize()

static unsafe int System.Runtime.InteropServices.Marshal.GetSystemMaxDBCSCharSize ( )
inlinestaticprivate

Definition at line 1592 of file Marshal.cs.

1593 {
1595 if (Interop.Kernel32.GetCPInfo(0u, &cPINFO) == Interop.BOOL.FALSE)
1596 {
1597 return 2;
1598 }
1599 return cPINFO.MaxCharSize;
1600 }
static unsafe BOOL GetCPInfo(uint codePage, CPINFO *lpCpInfo)

References Interop.Kernel32.GetCPInfo(), and Interop.Kernel32.CPINFO.MaxCharSize.