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

◆ IsLastByteALeadByte() [2/2]

unsafe bool System.Text.DecoderDBCS.IsLastByteALeadByte ( byte * bytes,
int count )
inlineprivate

Definition at line 276 of file DecoderDBCS.cs.

277 {
278 if (!IsLeadByte(bytes[count - 1]))
279 {
280 return false;
281 }
282 int i = 0;
283 if (_leftOverLeadByte != 0)
284 {
285 i++;
286 }
287 for (; i < count; i++)
288 {
289 if (IsLeadByte(bytes[i]))
290 {
291 i++;
292 if (i >= count)
293 {
294 return true;
295 }
296 }
297 }
298 return false;
299 }
bool IsLeadByte(byte b)

References System.Text.DecoderDBCS._leftOverLeadByte, System.bytes, System.count, and System.Text.DecoderDBCS.IsLeadByte().