An object which has been rooted will not be collected by the GC even if it has no other references. Rooted objects can also be used to safely pass managed objects into unmanaged code.
Static methods
staticfromVoidPointer(ptr:Pointer<Void>):RootHandle
Reinterpret the provided void* as a rooted object.
If ptr is not a rooted object the behaviour is undefined.