Spec-Zone.ru › Dart 2

dart:ffi

Pointer<T extends NativeType> class

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

Inheritance
  • Object
  • NativeType
  • Pointer
Available Extensions
  • AbiSpecificIntegerPointer
  • BoolPointer
  • DoublePointer
  • FloatPointer
  • Int8Pointer
  • Int16Pointer
  • Int32Pointer
  • Int64Pointer
  • NativeFunctionPointer
  • PointerPointer
  • StructPointer
  • Uint8Pointer
  • Uint16Pointer
  • Uint32Pointer
  • Uint64Pointer
  • UnionPointer

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-onlyoverride
The hash code for a Pointer only depends on its address.
runtimeType → Type
read-onlyinherited
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 BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-ffi/Pointer-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API