|Home > Generic function call interface > IrisC interface > Memory and interface ownership|
Function pointers and context pointers that are passed to an IrisC function are owned by the instance that originated them and must stay valid for the lifetime of the instance.
All other memory that is passed to an IrisC function, for example a
U64JSON-encoded message that is passed as a
uint64_t pointer, is owned by the caller and must
not be accessed by the callee after the call has returned. The
callee must make a copy of memory if it needs to access it