When a method implemented in native compiled code is called from a object-oriented program, the parameters associated with that method are marshaled to convert them from the format of the object- oriented code into one which is appropriate for the compiled code. The marshaling of parameters is carried out in dependence upon the particular type of object with which the parameters are associated. When an aggregate object is marshaled, a pointer to the object is adjusted to point directly to variables for an instance of that object. When an array is marshaled, the pointer is adjusted to point to its individual elements.
展开▼