Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as ExtentKey));
 }
Ejemplo n.º 3
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as CatalogKey));
 }
Ejemplo n.º 4
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as AttributeKey));
 }