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

◆ GetLeadByteRanges() [2/2]

static unsafe int Interop.Kernel32.GetLeadByteRanges ( int codePage,
byte[] leadByteRanges )
inlinestaticpackage

Definition at line 304 of file Interop.cs.

305 {
306 int num = 0;
307 Unsafe.SkipInit(out CPINFOEXW cPINFOEXW);
308 if (GetCPInfoExW((uint)codePage, 0u, &cPINFOEXW) != 0)
309 {
310 for (int i = 0; i < 10 && leadByteRanges[i] != 0; i += 2)
311 {
312 leadByteRanges[i] = cPINFOEXW.LeadByte[i];
313 leadByteRanges[i + 1] = cPINFOEXW.LeadByte[i + 1];
314 num++;
315 }
316 }
317 return num;
318 }
static unsafe BOOL GetCPInfoExW(uint CodePage, uint dwFlags, CPINFOEXW *lpCPInfoEx)

References Interop.Kernel32.GetCPInfoExW().