MemoryDebug class final

Debug-time diagnostics for MemoryPointer misuse.

Currently limited to reporting accesses on freed pointers; not related to MemoryTrace (which observes live reads/writes, not error paths).

Not instantiatable, use as a static namespace.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

verbose ↔ bool
When true, checkPointer throws a StateError naming the method and arguments that were attempted on the freed pointer. When false, it throws a generic "has been freed" error instead.
getter/setter pair

Static Methods

checkPointer(MemoryPointer<RType> ptr, String method, [Object? arg1, Object? arg2]) → void
Verifies ptr hasn't been freed before method operates on it.