Injecting RTPointers

Category |  Purpose |  Intended Audience |  Applicable to |  Description |  Limitations |  See also


Category:

Top

Toolset


Purpose:

Top

To instruct users on how to inject RTPointer objects to a C++ actor from a message inject window or an RPL actor


Intended Audience:

Top

ObjecTime C++ developers


Applicable to:

Top

ObjecTime 4.4 and on


Description:

Top

The following is one way to inject an RTPointer object with a specific value PROVIDED THAT YOU KNOW THE NUMERICAL VALUE OF THE POINTER THAT YOU WANT TO INJECT (this can be determined, for example, by creating an RTPointer with the desired pointer as the argument to the constructor and then dumping out the printString () result on that object to a log):

An RTPointer in RPL is a byte array with four bytes. An RTPointer instance can be created as follows:

    RTPointer value: anInteger

The size in bytes of of the RTPointer object is a multiple of two (minimum four), depending on the size of the integer. It is the responsibility of the user to create pointers which are within the range of the target platform address domain.


Limitations:

Top

None


See also:

Top

Description of RTPointer in the C++ and RPL guide.


 

Copyright © 1999, ObjecTime Limited.