Important: The information in this document is obsolete and should not be used for new development.
Fragment Initialization Block
The Code Fragment Manager passes to your fragment's initialization routine a pointer to a fragment initialization block, which contains information about the fragment. A fragment initialization block is defined by theInitBlockdata type.
struct InitBlock { long contextID; /*context ID*/ long closureID; /*closure ID*/ long connectionID; /*connection ID*/ FragmentLocator fragLocator; /*fragment location*/ Ptr libName; /*pointer to fragment name*/ long reserved4a; /*reserved*/ long reserved4b; /*reserved*/ long reserved4c; /*reserved*/ long reserved4d; /*reserved*/ }; typedef struct InitBlock InitBlock, *InitBlockPtr;
Field Description
contextID- A context ID.
closureID- A closure ID.
connectionID- A connection ID.
fragLocator- A fragment location record that specifies the location of the fragment. See the following section for details about the structure
of a fragment location record.libName- A pointer to the name of the fragment being initialized. The name is a Pascal string (a length byte followed by the name itself).
reserved4a- Reserved for use by Apple Computer.
reserved4b- Reserved for use by Apple Computer.
reserved4c- Reserved for use by Apple Computer.
reserved4d- Reserved for use by Apple Computer.
IMPORTANT
- The fields of a fragment initialization block are aligned in memory in accordance with 680x0 alignment conventions.
![]()