Pointer<T extends NativeType> class final

Represents a pointer into the native C memory. Cannot be extended.

Inheritance
Available Extensions

Constructors

Pointer.fromAddress(int ptr)
Construction from raw integer.
factory

Properties

address int
Access to the raw pointer value. On 32-bit systems, the upper 32-bits of the result are 0.
read-only
hashCode int
The hash code for a Pointer only depends on its address.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

cast<U extends NativeType>() Pointer<U>
Cast Pointer to a 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
Equality for Pointers only depends on their address.
override

Static Methods

fromFunction<T extends Function>(Function f, [Object? exceptionalReturn]) Pointer<NativeFunction<T>>
Convert Dart function to a C function pointer, automatically marshalling the arguments and return value