| 770 | } |
| 771 | |
| 772 | std::optional<int> CSnapshotBuilder::FindItemIndexByKey(int Key) |
| 773 | { |
| 774 | for(int i = 0; i < m_NumItems; i++) |
| 775 | { |
| 776 | CSnapshotItem *pItem = GetItem(i); |
| 777 | if(pItem->Key() == Key) |
| 778 | { |
| 779 | return i; |
| 780 | } |
| 781 | } |
| 782 | return std::nullopt; |
| 783 | } |
| 784 | |
| 785 | int CSnapshotBuilder::Finish(void *pSnapData) |
| 786 | { |