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

addressint
read-only
Access to the raw pointer value. On 32-bit systems, the upper 32-bits of the result are 0.
hashCodeint
read-only, override
The hash code for a Pointer only depends on its address.
runtimeTypeType
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 [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/Pointer-class.html