Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC System Software /
Chapter 3 - Code Fragment Manager / Code Fragment Manager Reference
Data Structures


Segment Location Record

For fragments located in the resource fork of a file on disk, the inSegs 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 the SegmentedFragment 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996