Lines Matching defs:searchKey
727 int32_t CompareExtentKeys( const HFSExtentKey *searchKey, const HFSExtentKey *trialKey )
732 if (searchKey->keyLength != kHFSExtentKeyMaximumLength)
738 result = -1; // assume searchKey < trialKey
740 if (searchKey->fileID == trialKey->fileID) {
744 if (searchKey->forkType == trialKey->forkType) {
748 if (searchKey->startBlock == trialKey->startBlock) {
758 if (searchKey->startBlock > trialKey->startBlock)
766 if (searchKey->forkType > trialKey->forkType)
774 if (searchKey->fileID > trialKey->fileID)
791 int32_t CompareExtentKeysPlus( const HFSPlusExtentKey *searchKey, const HFSPlusExtentKey *trialKey )
796 if (searchKey->keyLength != kHFSPlusExtentKeyMaximumLength)
802 result = -1; // assume searchKey < trialKey
804 if (searchKey->fileID == trialKey->fileID) {
808 if (searchKey->forkType == trialKey->forkType) {
812 if (searchKey->startBlock == trialKey->startBlock) {
822 if (searchKey->startBlock > trialKey->startBlock)
830 if (searchKey->forkType > trialKey->forkType)
838 if (searchKey->fileID > trialKey->fileID)