Important: The information in this document is obsolete and should not be used for new development.
Segment Location Record
For fragments located in the resource fork of a file on disk, theinSegs
field of a fragment location record contains a segment location record, which specifies the location of the fragment. A segment location record is defined by theSegmentedFragment
data type.
struct SegmentedFragment { FSSpecPtr fileSpec; /*pointer to FSSpec*/ OSType rsrcType; /*resource type*/ short rsrcID; /*resource ID*/ }; typedef struct SegmentedFragment SegmentedFragment;
Field Description
fileSpec
- A pointer to a file specification record (a data structure of type
FSSpec
) for the resource fork of a file. This pointer is valid only while the initialization routine is executing. If you need to access the information in the file specification record at any later time, you must make a copy of that record.- rsrcType
- The resource type of the resource containing the fragment.
- rsrcID
- The resource ID of the resource containing the fragment.
- IMPORTANT
- The fields of a segment location record are aligned in memory in accordance with 680x0 alignment conventions.