dart:ffi
Pointer<T extends NativeType> class
Represents a pointer into the native C memory. Cannot be extended.
- Inheritance
-
- Available Extensions
Constructors
- Pointer.fromAddress(int ptr)
factory
- Construction from raw integer.
Properties
- address → int
read-only
- Access to the raw pointer value. On 32-bit systems, the upper 32-bits of the result are 0.
- hashCode → int
read-only, override
- The hash code for a Pointer only depends on its address.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- cast<U extends NativeType>() → Pointer<U>
- Cast Pointer to a Pointer.
- elementAt(int index) → Pointer<T>
- Pointer arithmetic (takes element size into account).
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
override
- Equality for Pointers only depends on their address.
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