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

◆ FindNodeByKeyRecord()

int System.Data.Index.FindNodeByKeyRecord ( int record)
inlineprivate

Definition at line 516 of file Index.cs.

517 {
518 int num = _records.root;
519 if (num != 0)
520 {
521 num = _records.root;
522 while (num != 0)
523 {
525 if (num2 == 0)
526 {
527 break;
528 }
529 num = ((num2 <= 0) ? _records.Right(num) : _records.Left(num));
530 }
531 }
532 return num;
533 }
int CompareRecords(int record1, int record2)
Definition Index.cs:264
IndexTree _records
Definition Index.cs:42
K Key(int nodeId)
Definition RBTree.cs:1407
int Right(int nodeId)
Definition RBTree.cs:1377
int Left(int nodeId)
Definition RBTree.cs:1382

References System.Data.Index._records, System.Data.Index.CompareRecords(), System.Data.RBTree< K >.Key(), System.Data.RBTree< K >.Left(), System.Data.RBTree< K >.Right(), and System.Data.RBTree< K >.root.

Referenced by System.Data.Index.IsKeyRecordInIndex().