Lines Matching refs:searchKey
746 int32_t CompareExtentKeys( const HFSExtentKey *searchKey, const HFSExtentKey *trialKey )
751 if (searchKey->keyLength != kHFSExtentKeyMaximumLength)
757 result = -1; // assume searchKey < trialKey
759 if (searchKey->fileID == trialKey->fileID) {
763 if (searchKey->forkType == trialKey->forkType) {
767 if (searchKey->startBlock == trialKey->startBlock) {
777 if (searchKey->startBlock > trialKey->startBlock)
785 if (searchKey->forkType > trialKey->forkType)
793 if (searchKey->fileID > trialKey->fileID)
810 int32_t CompareExtentKeysPlus( const HFSPlusExtentKey *searchKey, const HFSPlusExtentKey *trialKey )
815 if (searchKey->keyLength != kHFSPlusExtentKeyMaximumLength)
821 result = -1; // assume searchKey < trialKey
823 if (searchKey->fileID == trialKey->fileID) {
827 if (searchKey->forkType == trialKey->forkType) {
831 if (searchKey->startBlock == trialKey->startBlock) {
841 if (searchKey->startBlock > trialKey->startBlock)
849 if (searchKey->forkType > trialKey->forkType)
857 if (searchKey->fileID > trialKey->fileID)