SafePointer<T extends NativeType> class

Memory safety wrapper for struct pointers

Constructors

SafePointer.new(Pointer<T> _pointer, {void disposeFunc(Pointer<T>)?, String debugName = 'Unnamed'})
Constructs a SafePointer with the given pointer and optional dispose function.

Properties

hashCode int
The hash code for this object.
no setterinherited
pointer Pointer<T>
Returns the managed pointer.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the managed pointer.
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