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

◆ IsLeadByte() [2/2]

bool System.Text.DecoderDBCS.IsLeadByte ( byte b)
inlineprivate

Definition at line 22 of file DecoderDBCS.cs.

23 {
24 if (b < _leadByteRanges[0])
25 {
26 return false;
27 }
28 for (int i = 0; i < _rangesCount; i += 2)
29 {
30 if (b >= _leadByteRanges[i] && b <= _leadByteRanges[i + 1])
31 {
32 return true;
33 }
34 }
35 return false;
36 }
readonly byte[] _leadByteRanges
Definition DecoderDBCS.cs:9
readonly int _rangesCount

References System.Text.DecoderDBCS._leadByteRanges, and System.Text.DecoderDBCS._rangesCount.