Fork Data Structure
Description
HFS Plus maintains
information about the contents of a file using the C struct
[TXT]
struct HFSPlusForkData { UInt64 logicalSize; UInt32 clumpSize; UInt32 totalBlocks; HFSPlusExtentRecord extents; }; typedef struct HFSPlusForkData HFSPlusForkData; typedef HFSPlusExtentDescriptor HFSPlusExtentRecord[8];
struct HFSPlusExtentDescriptor { UInt32 startBlock; UInt32 blockCount; }; typedef struct HFSPlusExtentDescriptor HFSPlusExtentDescriptor;
Fields of the fork data structure
description: The size, in bytes, of the valid data in the
fork. description: For description: The total number of allocation blocks used
by all the extents in this fork. description: An array of extent descriptors for the fork.
This array holds the first eight extent descriptors. If more extent
descriptors are required, they are stored in the extents overflow file. description: The first allocation block in the extent. description: The length, in allocation blocks, of the
extent. ©2004 - 2008 [ |