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; }
private static StringComparer GetComparer(HFSKeyCompareType compareType, bool isHFSX) { if (isHFSX) { return(compareType switch { HFSKeyCompareType.CaseFolding => StringComparer.InvariantCultureIgnoreCase, HFSKeyCompareType.BinaryCompare => StringComparer.Ordinal, _ => StringComparer.InvariantCultureIgnoreCase });
private HFSPointerRecord(byte[] key, uint nodeNumber, HFSKeyCompareType compareType, bool isHFSX) : base(key, compareType, isHFSX) { NodeNumber = nodeNumber; }
private HFSDataRecord(byte[] key, byte[] data, HFSKeyCompareType compareType, bool isHFSX) : base(key, compareType, isHFSX) { Data = data; }
protected HFSKeyedRecord(byte[] key, HFSKeyCompareType compareType, bool isHFSX) { Key = key; _compareType = compareType; _isHFSX = isHFSX; }