MiniObject.replace

Atomically modifies a pointer to point to a new mini-object. The reference count of olddata is decreased and the reference count of newdata is increased. Either newdata and the value pointed to by olddata may be NULL.

class MiniObject
static
int
replace

Parameters

olddata MiniObject

pointer to a pointer to a mini-object to be replaced. inout[transfer full]

newdata MiniObject

pointer to new mini-object

Return Value

Type: int

TRUE if newdata was different from olddata

Meta