예제 #1
0
        public override int CompareTo(BTreeKey other)
        {
            var attributeKey = other as AttributeKey;

            if (attributeKey == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            if (this.FileId != attributeKey.FileId)
            {
                return(this.FileId < attributeKey.FileId ? -1 : 1);
            }

            return(HfsPlusUtilities.FastUnicodeCompare(this.Name, attributeKey.Name));
        }
예제 #2
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as ExtentKey));
 }
예제 #3
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as CatalogKey));
 }
예제 #4
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as AttributeKey));
 }