Lines Matching defs:searchKey
760 int32_t CompareExtentKeys( const HFSExtentKey *searchKey, const HFSExtentKey *trialKey )
765 if (searchKey->keyLength != kHFSExtentKeyMaximumLength)
771 result = -1; // assume searchKey < trialKey
773 if (searchKey->fileID == trialKey->fileID) {
777 if (searchKey->forkType == trialKey->forkType) {
781 if (searchKey->startBlock == trialKey->startBlock) {
791 if (searchKey->startBlock > trialKey->startBlock)
799 if (searchKey->forkType > trialKey->forkType)
807 if (searchKey->fileID > trialKey->fileID)
824 int32_t CompareExtentKeysPlus( const HFSPlusExtentKey *searchKey, const HFSPlusExtentKey *trialKey )
829 if (searchKey->keyLength != kHFSPlusExtentKeyMaximumLength)
835 result = -1; // assume searchKey < trialKey
837 if (searchKey->fileID == trialKey->fileID) {
841 if (searchKey->forkType == trialKey->forkType) {
845 if (searchKey->startBlock == trialKey->startBlock) {
855 if (searchKey->startBlock > trialKey->startBlock)
863 if (searchKey->forkType > trialKey->forkType)
871 if (searchKey->fileID > trialKey->fileID)