Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetContentFollowing()

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetContentFollowing ( ref XPathNode[] pageCurrent,
ref int idxCurrent,
XPathNode[] pageEnd,
int idxEnd,
XPathNodeType typ )
inlinestatic

Definition at line 355 of file XPathNodeHelper.cs.

356 {
357 XPathNode[] array = pageCurrent;
358 int num = idxCurrent;
359 int contentKindMask = XPathNavigator.GetContentKindMask(typ);
360 num++;
361 while (true)
362 {
363 if (array == pageEnd && num <= idxEnd)
364 {
365 for (; num != idxEnd; num++)
366 {
367 if (((1 << (int)array[num].NodeType) & contentKindMask) != 0)
368 {
369 goto end_IL_0012;
370 }
371 }
372 }
373 else
374 {
375 for (; num < array[0].PageInfo.NodeCount; num++)
376 {
377 if (((1 << (int)array[num].NodeType) & contentKindMask) != 0)
378 {
379 goto end_IL_0012;
380 }
381 }
382 array = array[0].PageInfo.NextPage;
383 num = 1;
384 if (array != null)
385 {
386 continue;
387 }
388 }
389 return false;
390 continue;
391 end_IL_0012:
392 break;
393 }
394 pageCurrent = array;
395 idxCurrent = num;
396 return true;
397 }
static int GetContentKindMask(XPathNodeType type)

References System.Xml.XPath.XPathNavigator.GetContentKindMask().

Referenced by MS.Internal.Xml.Cache.XPathDocumentNavigator.MoveToFollowing().