Public Member Functions | |
Constructor / Destructor | |
CP_CodeFragment (const CP_String &inFragmentName, CP_E_FragOptions inOptions=kUseExistingFragment) | |
Constructor. | |
CP_CodeFragment (const CP_FileSystemSpec &inFragmentSpec, CP_E_FragOptions inOptions=kUseExistingFragment) | |
~CP_CodeFragment () | |
Destructor. | |
Getters | |
CP_String | GetName () const |
CP_OSCodeFragment | GetOSFragment () const |
void * | GetFunction (const CP_String &inFunctionName) const |
Constructor / Destructor | |
CP_CodeFragment (const CP_FileSystemSpec &inFragmentSpec, UInt32 inOffset, UInt32 inBytes, CP_E_FragOptions inOptions=kUseExistingFragment) | |
Constructor. | |
CP_CodeFragment (const CP_String &inFragmentName, const void *inAddress, UInt32 inBytes, CP_E_FragOptions inOptions=kUseExistingFragment) | |
Static Public Member Functions | |
Getters | |
static void * | GetCGFunction (CFStringRef inFunctionName) |
static void * | GetCarbonFunction (CFStringRef inFunctionName) |
static void * | GetHIObjectFunction (CFStringRef inFunctionName) |
Protected Attributes | |
CP_String | fFragmentName |
CP_OSCodeFragment | fFragment |
Ptr | fMainAdr |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Ptr to the code fragment. |
|
Constructor.
|
|
Returns the name of the code fragment.
|
|
Returns the CP_OSCodeFragment which is the underlying OS code fragment.
|
|
Return a pointer to the function from our code fragment. Returns NULL if the function can't be found.
|
|
Return a function pointer for the passed in function name from the CoreGraphics framework.
|
|
Return a function pointer for the passed in function name from the Carbon framework.
|
|
Return a function pointer for the passed in function name from the HIObject framework.
|
|
|
|
Name of code fragment we want. |
|
The OS code fragment. |