js-util

Home > rc-js-util > ReferenceCountedPtr

ReferenceCountedPtr class

Wrapper of wasm object.

Signature:

export declare class ReferenceCountedPtr extends AReferenceCounted implements IReferenceCountedPtr, IOnFree 

Extends: AReferenceCounted

Implements: IReferenceCountedPtr, IOnFree

Constructors

Constructor Modifiers Description
(constructor)(isStatic, wasmPtr, owner, listenerObj)   Constructs a new instance of the ReferenceCountedPtr class

Properties

Property Modifiers Type Description
isStatic   boolean  
listenerObj?   IOnFree | undefined (Optional)
owner   IEmscriptenWrapper<object>  
wasmPtr   number  

Methods

Method Modifiers Description
bindLifecycle(referenceCountedObject)    
getPtr()    
getWrappedReferences(ptr) static  
onFree()    
registerOnFreeListener(callback)    
takeOwnership(referenceCountedObject)    
unbindLifecycle(referenceCountedObject)    
unbindLifecycles(referenceCountedObjects)