コード例 #1
0
 private HFSTreeHeaderRecord(
     ushort treeDepth,
     uint rootNode,
     uint leafRecords,
     uint firstLeafNode,
     uint lastLeafNode,
     ushort nodeSize,
     ushort maxKeyLength,
     uint totalNodes,
     uint freeNodes,
     uint clumpSize,
     HFSTreeType treeType,
     HFSKeyCompareType keyCompareType,
     HFSTreeAttributes attributes)
 {
     TreeDepth      = treeDepth;
     RootNode       = rootNode;
     LeafRecords    = leafRecords;
     FirstLeafNode  = firstLeafNode;
     LastLeafNode   = lastLeafNode;
     NodeSize       = nodeSize;
     MaxKeyLength   = maxKeyLength;
     TotalNodes     = totalNodes;
     FreeNodes      = freeNodes;
     ClumpSize      = clumpSize;
     TreeType       = treeType;
     KeyCompareType = keyCompareType;
     Attributes     = attributes;
 }
コード例 #2
0
 private static StringComparer GetComparer(HFSKeyCompareType compareType, bool isHFSX)
 {
     if (isHFSX)
     {
         return(compareType switch
         {
             HFSKeyCompareType.CaseFolding => StringComparer.InvariantCultureIgnoreCase,
             HFSKeyCompareType.BinaryCompare => StringComparer.Ordinal,
             _ => StringComparer.InvariantCultureIgnoreCase
         });
コード例 #3
0
 private HFSPointerRecord(byte[] key, uint nodeNumber, HFSKeyCompareType compareType, bool isHFSX)
     : base(key, compareType, isHFSX)
 {
     NodeNumber = nodeNumber;
 }
コード例 #4
0
 private HFSDataRecord(byte[] key, byte[] data, HFSKeyCompareType compareType, bool isHFSX)
     : base(key, compareType, isHFSX)
 {
     Data = data;
 }
コード例 #5
0
 protected HFSKeyedRecord(byte[] key, HFSKeyCompareType compareType, bool isHFSX)
 {
     Key          = key;
     _compareType = compareType;
     _isHFSX      = isHFSX;
 }