コード例 #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
ファイル: CatalogKey.cs プロジェクト: Lukas0610/ndiscutils
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as CatalogKey));
 }
コード例 #4
0
 public override int CompareTo(BTreeKey other)
 {
     return(CompareTo(other as AttributeKey));
 }