com.neva
Interface CoroutineComplexParameter


public interface CoroutineComplexParameter

This interface facilitates passing of complex objects to external functions.


Method Summary
 int asCoroutineParameter()
          Answers an integer that represents a pointer to object's bytes.
 void discard()
          Frees external memory allocated for object's bytes.
 void fromPointer()
          Restores the object's instance data from a pointer to an external memory.
 

Method Detail

asCoroutineParameter

public int asCoroutineParameter()
Answers an integer that represents a pointer to object's bytes. Object must store a pointer inside itself so the subsequent call to fromPointer will be able to restore object's instance data.


discard

public void discard()
Frees external memory allocated for object's bytes.


fromPointer

public void fromPointer()
Restores the object's instance data from a pointer to an external memory.