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
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