Pointer<T extends NativeType> classfinal
Represents a pointer into the native C memory. Cannot be extended.
Constructors
- Pointer.fromAddress(intptr)
- 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.no setter
- hashCode→int
- The hash code for a Pointer only depends on its address.no setteroverride
- ref↔ T
Available onPointer<
A Dart view of the struct referenced by this pointer.T> , provided by theStructPointer extensiongetter/setter pair- ref↔ T
Available onPointer<
A Dart view of the union referenced by this pointer.T> , provided by theUnionPointer extensiongetter/setter pair- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- value↔int
Available onPointer<
The integer ataddress.T> , provided by theAbiSpecificIntegerPointer extensiongetter/setter pair- value↔bool
Available onPointer<
The bool ataddress.Bool> , provided by theBoolPointer extensiongetter/setter pair- value↔double
Available onPointer<
The double ataddress.Double> , provided by theDoublePointer extensiongetter/setter pair- value↔double
Available onPointer<
The float ataddress.Float> , provided by theFloatPointer extensiongetter/setter pair- value↔int
Available onPointer<
The 8-bit two's complement integer ataddress.Int8> , provided by theInt8Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 16-bit two's complement integer ataddress.Int16> , provided by theInt16Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 32-bit two's complement integer ataddress.Int32> , provided by theInt32Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 64-bit two's complement integer ataddress.Int64> , provided by theInt64Pointer extensiongetter/setter pair- value↔Pointer<
T> Available onPointer<
The pointer ataddress.Pointer< , provided by thePointerPointer extensionT> >getter/setter pair- value↔int
Available onPointer<
The 8-bit unsigned integer ataddress.Uint8> , provided by theUint8Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 16-bit unsigned integer ataddress.Uint16> , provided by theUint16Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 32-bit unsigned integer ataddress.Uint32> , provided by theUint32Pointer extensiongetter/setter pair- value↔int
Available onPointer<
The 64-bit unsigned integer ataddress.Uint64> , provided by theUint64Pointer extensiongetter/setter pair
Methods
- asFunction<
@DartRepresentationOf('NF') DF extendsFunction> ({boolisLeaf =false})→ DF Available onPointer<
Convert to Dart function, automatically marshalling the arguments andreturn value.NativeFunction< , provided by theNativeFunctionPointer extensionNF> >- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Float64List Available onPointer<
Creates a typed list view backed by memory in the address space.Double> , provided by theDoublePointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Float32List Available onPointer<
Creates a typed list view backed by memory in the address space.Float> , provided by theFloatPointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Int8List Available onPointer<
Creates a typed list view backed by memory in the address space.Int8> , provided by theInt8Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Int16List Available onPointer<
Creates a typed list view backed by memory in the address space.Int16> , provided by theInt16Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Int32List Available onPointer<
Creates a typed list view backed by memory in the address space.Int32> , provided by theInt32Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Int64List Available onPointer<
Creates a typed list view backed by memory in the address space.Int64> , provided by theInt64Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Uint8List Available onPointer<
Creates a typed list view backed by memory in the address space.Uint8> , provided by theUint8Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Uint16List Available onPointer<
Creates a typed list view backed by memory in the address space.Uint16> , provided by theUint16Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Uint32List Available onPointer<
Creates a typed list view backed by memory in the address space.Uint32> , provided by theUint32Pointer extension- asTypedList(
intlength, {Pointer< NativeFinalizerFunction> ?finalizer,Pointer<Void> ?token})→Uint64List Available onPointer<
Creates a typed list view backed by memory in the address space.Uint64> , provided by theUint64Pointer extension- cast<
U extendsNativeType> ()→Pointer< U> - Reinterprets the address of this pointer as the address of a
U. - elementAt(
intindex)→Pointer< T> Available onPointer<
Pointer arithmetic (takes element size into account).T> , provided by theAbiSpecificIntegerPointer extension- elementAt(
intindex)→Pointer< Bool> Available onPointer<
Pointer arithmetic (takes element size into account).Bool> , provided by theBoolPointer extension- elementAt(
intindex)→Pointer< Double> Available onPointer<
Pointer arithmetic (takes element size into account).Double> , provided by theDoublePointer extension- elementAt(
intindex)→Pointer< Float> Available onPointer<
Pointer arithmetic (takes element size into account).Float> , provided by theFloatPointer extension- elementAt(
intindex)→Pointer< Int8> Available onPointer<
Pointer arithmetic (takes element size into account).Int8> , provided by theInt8Pointer extension- elementAt(
intindex)→Pointer< Int16> Available onPointer<
Pointer arithmetic (takes element size into account).Int16> , provided by theInt16Pointer extension- elementAt(
intindex)→Pointer< Int32> Available onPointer<
Pointer arithmetic (takes element size into account).Int32> , provided by theInt32Pointer extension- elementAt(
intindex)→Pointer< Int64> Available onPointer<
Pointer arithmetic (takes element size into account).Int64> , provided by theInt64Pointer extension- elementAt(
intindex)→Pointer< Pointer< T> > Available onPointer<
Pointer arithmetic (takes element size into account).Pointer< , provided by thePointerPointer extensionT> >- elementAt(
intindex)→Pointer< T> Available onPointer<
Pointer arithmetic (takes element size into account)T> , provided by theStructPointer extension- elementAt(
intindex)→Pointer< Uint8> Available onPointer<
Pointer arithmetic (takes element size into account).Uint8> , provided by theUint8Pointer extension- elementAt(
intindex)→Pointer< Uint16> Available onPointer<
Pointer arithmetic (takes element size into account).Uint16> , provided by theUint16Pointer extension- elementAt(
intindex)→Pointer< Uint32> Available onPointer<
Pointer arithmetic (takes element size into account).Uint32> , provided by theUint32Pointer extension- elementAt(
intindex)→Pointer< Uint64> Available onPointer<
Pointer arithmetic (takes element size into account).Uint64> , provided by theUint64Pointer extension- elementAt(
intindex)→Pointer< T> Available onPointer<
Pointer arithmetic (takes element size into account).T> , provided by theUnionPointer extension- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- refWithFinalizer(
Pointer< NativeFinalizerFunction> finalizer, {Pointer<Void> ?token})→ T Available onPointer<
A Dart view of the struct referenced by this pointer.T> , provided by theStructPointer extension- refWithFinalizer(
Pointer< NativeFinalizerFunction> finalizer, {Pointer<Void> ?token})→ T Available onPointer<
A Dart view of the union referenced by this pointer.T> , provided by theUnionPointer extension- toString(
)→String - A string representation of this object.inherited
Operators
- operator +(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theUnionPointer extensionoffsetthTafter this one.- operator +(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theAbiSpecificIntegerPointer extensionoffsetthTafter this one.- operator +(
intoffset)→Pointer< Bool> Available onPointer<
A pointer to theBool> , provided by theBoolPointer extensionoffsetthBool after this one.- operator +(
intoffset)→Pointer< Double> Available onPointer<
A pointer to theDouble> , provided by theDoublePointer extensionoffsetthDouble after this one.- operator +(
intoffset)→Pointer< Float> Available onPointer<
A pointer to theFloat> , provided by theFloatPointer extensionoffsetthFloat after this one.- operator +(
intoffset)→Pointer< Int8> Available onPointer<
A pointer to theInt8> , provided by theInt8Pointer extensionoffsetthInt8 after this one.- operator +(
intoffset)→Pointer< Int16> Available onPointer<
A pointer to theInt16> , provided by theInt16Pointer extensionoffsetthInt16 after this one.- operator +(
intoffset)→Pointer< Int32> Available onPointer<
A pointer to theInt32> , provided by theInt32Pointer extensionoffsetthInt32 after this one.- operator +(
intoffset)→Pointer< Int64> Available onPointer<
A pointer to theInt64> , provided by theInt64Pointer extensionoffsetthInt64 after this one.- operator +(
intoffset)→Pointer< Pointer< T> > Available onPointer<
A pointer to thePointer< , provided by thePointerPointer extensionT> >offsetthPointer<T> after this one.- operator +(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theStructPointer extensionoffsetthTafter this one.- operator +(
intoffset)→Pointer< Uint8> Available onPointer<
A pointer to theUint8> , provided by theUint8Pointer extensionoffsetthUint8 after this one.- operator +(
intoffset)→Pointer< Uint16> Available onPointer<
A pointer to theUint16> , provided by theUint16Pointer extensionoffsetthUint16 after this one.- operator +(
intoffset)→Pointer< Uint32> Available onPointer<
A pointer to theUint32> , provided by theUint32Pointer extensionoffsetthUint32 after this one.- operator +(
intoffset)→Pointer< Uint64> Available onPointer<
A pointer to theUint64> , provided by theUint64Pointer extensionoffsetthUint64 after this one.- operator -(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theStructPointer extensionoffsetthTbefore this one.- operator -(
intoffset)→Pointer< Uint32> Available onPointer<
A pointer to theUint32> , provided by theUint32Pointer extensionoffsetthUint32 before this one.- operator -(
intoffset)→Pointer< Uint8> Available onPointer<
A pointer to theUint8> , provided by theUint8Pointer extensionoffsetthUint8 before this one.- operator -(
intoffset)→Pointer< Int16> Available onPointer<
A pointer to theInt16> , provided by theInt16Pointer extensionoffsetthInt16 before this one.- operator -(
intoffset)→Pointer< Int32> Available onPointer<
A pointer to theInt32> , provided by theInt32Pointer extensionoffsetthInt32 before this one.- operator -(
intoffset)→Pointer< Float> Available onPointer<
A pointer to theFloat> , provided by theFloatPointer extensionoffsetthFloat before this one.- operator -(
intoffset)→Pointer< Bool> Available onPointer<
A pointer to theBool> , provided by theBoolPointer extensionoffsetthBool before this one.- operator -(
intoffset)→Pointer< Int64> Available onPointer<
A pointer to theInt64> , provided by theInt64Pointer extensionoffsetthInt64 before this one.- operator -(
intoffset)→Pointer< Pointer< T> > Available onPointer<
A pointer to thePointer< , provided by thePointerPointer extensionT> >offsetthPointer<T> before this one.- operator -(
intoffset)→Pointer< Int8> Available onPointer<
A pointer to theInt8> , provided by theInt8Pointer extensionoffsetthInt8 before this one.- operator -(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theUnionPointer extensionoffsetthTbefore this one.- operator -(
intoffset)→Pointer< T> Available onPointer<
A pointer to theT> , provided by theAbiSpecificIntegerPointer extensionoffsetthTbefore this one.- operator -(
intoffset)→Pointer< Uint64> Available onPointer<
A pointer to theUint64> , provided by theUint64Pointer extensionoffsetthUint64 before this one.- operator -(
intoffset)→Pointer< Uint16> Available onPointer<
A pointer to theUint16> , provided by theUint16Pointer extensionoffsetthUint16 before this one.- operator -(
intoffset)→Pointer< Double> Available onPointer<
A pointer to theDouble> , provided by theDoublePointer extensionoffsetthDouble before this one.- operator ==(
Objectother)→bool - Equality for Pointers only depends on their address.override
- operator [](
intindex)→double Available onPointer<
The float atFloat> , provided by theFloatPointer extensionaddress + sizeOf<Float>() * index.- operator [](
intindex)→bool Available onPointer<
The bool atBool> , provided by theBoolPointer extensionaddress + sizeOf<Bool>() * index.- operator [](
intindex)→int Available onPointer<
The 64-bit two's complement integer atInt64> , provided by theInt64Pointer extensionaddress + sizeOf<Int64>() * index.- operator [](
intindex)→int Available onPointer<
The 16-bit two's complement integer atInt16> , provided by theInt16Pointer extensionaddress + sizeOf<Int16>() * index.- operator [](
intindex)→Pointer< T> Available onPointer<
Load a Dart value from this location offset byPointer< , provided by thePointerPointer extensionT> >index.- operator [](
intindex)→int Available onPointer<
The 32-bit unsigned integer atUint32> , provided by theUint32Pointer extensionaddress + sizeOf<Uint32>() * index.- operator [](
intindex)→double Available onPointer<
The double atDouble> , provided by theDoublePointer extensionaddress + sizeOf<Double>() * index.- operator [](
intindex)→int Available onPointer<
The 8-bit two's complement integer atInt8> , provided by theInt8Pointer extensionaddress + sizeOf<Int8>() * index.- operator [](
intindex)→ T Available onPointer<
Creates a reference to access the fields of this struct backed by nativememory atT> , provided by theStructPointer extensionaddress + sizeOf<T>() * index.- operator [](
intindex)→ T Available onPointer<
Creates a reference to access the fields of this union backed by nativememory atT> , provided by theUnionPointer extensionaddress + sizeOf<T>() * index.- operator [](
intindex)→int Available onPointer<
The 32-bit two's complement integer atInt32> , provided by theInt32Pointer extensionaddress + sizeOf<Int32>() * index.- operator [](
intindex)→int Available onPointer<
The 8-bit unsigned integer atUint8> , provided by theUint8Pointer extensionaddress + sizeOf<Uint8>() * index.- operator [](
intindex)→int Available onPointer<
The integer atT> , provided by theAbiSpecificIntegerPointer extensionaddress + sizeOf<T>() * index.- operator [](
intindex)→int Available onPointer<
The 64-bit unsigned integer atUint64> , provided by theUint64Pointer extensionaddress + sizeOf<Uint64>() * index.- operator [](
intindex)→int Available onPointer<
The 16-bit unsigned integer atUint16> , provided by theUint16Pointer extensionaddress + sizeOf<Uint16>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 16-bit unsigned integer atUint16> , provided by theUint16Pointer extensionaddress + sizeOf<Uint16>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 8-bit unsigned integer atUint8> , provided by theUint8Pointer extensionaddress + sizeOf<Uint8>() * index.- operator []=(
intindex,Tvalue)→ void Available onPointer<
Copies theT> , provided by theStructPointer extensionvaluestruct into native memory, starting ataddress * sizeOf<T>() * index.- operator []=(
intindex,Pointer< T> value)→ void Available onPointer<
Store a Dart value into this location offset byPointer< , provided by thePointerPointer extensionT> >index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 32-bit unsigned integer atUint32> , provided by theUint32Pointer extensionaddress + sizeOf<Uint32>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The integer atT> , provided by theAbiSpecificIntegerPointer extensionaddress + sizeOf<T>() * index.- operator []=(
intindex,doublevalue)→ void Available onPointer<
The double atDouble> , provided by theDoublePointer extensionaddress + sizeOf<Double>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 32-bit two's complement integer atInt32> , provided by theInt32Pointer extensionaddress + sizeOf<Int32>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 64-bit unsigned integer atUint64> , provided by theUint64Pointer extensionaddress + sizeOf<Uint64>() * index.- operator []=(
intindex,doublevalue)→ void Available onPointer<
The float atFloat> , provided by theFloatPointer extensionaddress + sizeOf<Float>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 16-bit two's complement integer atInt16> , provided by theInt16Pointer extensionaddress + sizeOf<Int16>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 8-bit two's complement integer atInt8> , provided by theInt8Pointer extensionaddress + sizeOf<Int8>() * index.- operator []=(
intindex,Tvalue)→ void Available onPointer<
Copies theT> , provided by theUnionPointer extensionvalueunion into native memory, starting ataddress * sizeOf<T>() * index.- operator []=(
intindex,boolvalue)→ void Available onPointer<
The bool atBool> , provided by theBoolPointer extensionaddress + sizeOf<Bool>() * index.- operator []=(
intindex,intvalue)→ void Available onPointer<
The 64-bit two's complement integer atInt64> , provided by theInt64Pointer extensionaddress + sizeOf<Int64>() * index.
Static Methods
- fromFunction<
T extendsFunction> (Functionf, [Object?exceptionalReturn])→Pointer< NativeFunction< T> > - Convert Dart function to a C function pointer, automatically marshallingthe arguments and return value