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
)
inline
static
package
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
}
Interop.Kernel32.GetCPInfoExW
static unsafe BOOL GetCPInfoExW(uint CodePage, uint dwFlags, CPINFOEXW *lpCPInfoEx)
System.Runtime.CompilerServices.Unsafe
Definition
Unsafe.cs:6
System.Text.RegularExpressions.ExceptionArgument.i
@ i
References
Interop.Kernel32.GetCPInfoExW()
.
Interop
Kernel32
Generated by
1.10.0