ReferenceCounter class
Reference counting for shared pointers
Constructors
-
ReferenceCounter.new(Pointer<
NativeType> _pointer, {void disposeFunc(Pointer<NativeType> )?, String debugName = 'Unnamed'}) - Constructs a ReferenceCounter for the given pointer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pointer
→ Pointer<
NativeType> -
Returns the managed pointer.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrement(
) → void - Decrements the reference count and disposes the pointer if the count reaches zero.
-
increment(
) → void - Increments the reference count.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited