Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:ffi
  3. Pointer<T extendsNativeType> class
Pointer
description

Pointer<T extends NativeType> classfinal

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

Implemented types
Available extensions

Constructors

Pointer.fromAddress(intptr)
Construction from raw integer.
factory

Properties

addressint
Access to the raw pointer value.On 32-bit systems, the upper 32-bits of the result are 0.
no setter
hashCodeint
The hash code for a Pointer only depends on its address.
no setteroverride
ref↔ T

Available onPointer<T>, provided by theStructPointer extension

A Dart view of the struct referenced by this pointer.
getter/setter pair
ref↔ T

Available onPointer<T>, provided by theUnionPointer extension

A Dart view of the union referenced by this pointer.
getter/setter pair
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
valueint

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

The integer ataddress.
getter/setter pair
valuebool

Available onPointer<Bool>, provided by theBoolPointer extension

The bool ataddress.
getter/setter pair
valuedouble

Available onPointer<Double>, provided by theDoublePointer extension

The double ataddress.
getter/setter pair
valuedouble

Available onPointer<Float>, provided by theFloatPointer extension

The float ataddress.
getter/setter pair
valueint

Available onPointer<Int8>, provided by theInt8Pointer extension

The 8-bit two's complement integer ataddress.
getter/setter pair
valueint

Available onPointer<Int16>, provided by theInt16Pointer extension

The 16-bit two's complement integer ataddress.
getter/setter pair
valueint

Available onPointer<Int32>, provided by theInt32Pointer extension

The 32-bit two's complement integer ataddress.
getter/setter pair
valueint

Available onPointer<Int64>, provided by theInt64Pointer extension

The 64-bit two's complement integer ataddress.
getter/setter pair
valuePointer<T>

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

The pointer ataddress.
getter/setter pair
valueint

Available onPointer<Uint8>, provided by theUint8Pointer extension

The 8-bit unsigned integer ataddress.
getter/setter pair
valueint

Available onPointer<Uint16>, provided by theUint16Pointer extension

The 16-bit unsigned integer ataddress.
getter/setter pair
valueint

Available onPointer<Uint32>, provided by theUint32Pointer extension

The 32-bit unsigned integer ataddress.
getter/setter pair
valueint

Available onPointer<Uint64>, provided by theUint64Pointer extension

The 64-bit unsigned integer ataddress.
getter/setter pair

Methods

asFunction<@DartRepresentationOf('NF') DF extendsFunction>({boolisLeaf =false})→ DF

Available onPointer<NativeFunction<NF>>, provided by theNativeFunctionPointer extension

Convert to Dart function, automatically marshalling the arguments andreturn value.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Float64List

Available onPointer<Double>, provided by theDoublePointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Float32List

Available onPointer<Float>, provided by theFloatPointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Int8List

Available onPointer<Int8>, provided by theInt8Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Int16List

Available onPointer<Int16>, provided by theInt16Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Int32List

Available onPointer<Int32>, provided by theInt32Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Int64List

Available onPointer<Int64>, provided by theInt64Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Uint8List

Available onPointer<Uint8>, provided by theUint8Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Uint16List

Available onPointer<Uint16>, provided by theUint16Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Uint32List

Available onPointer<Uint32>, provided by theUint32Pointer extension

Creates a typed list view backed by memory in the address space.
asTypedList(intlength, {Pointer<NativeFinalizerFunction>?finalizer,Pointer<Void>?token})Uint64List

Available onPointer<Uint64>, provided by theUint64Pointer extension

Creates a typed list view backed by memory in the address space.
cast<U extendsNativeType>()Pointer<U>
Reinterprets the address of this pointer as the address of aU.
elementAt(intindex)Pointer<T>

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Bool>

Available onPointer<Bool>, provided by theBoolPointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Double>

Available onPointer<Double>, provided by theDoublePointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Float>

Available onPointer<Float>, provided by theFloatPointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Int8>

Available onPointer<Int8>, provided by theInt8Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Int16>

Available onPointer<Int16>, provided by theInt16Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Int32>

Available onPointer<Int32>, provided by theInt32Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Int64>

Available onPointer<Int64>, provided by theInt64Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Pointer<T>>

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<T>

Available onPointer<T>, provided by theStructPointer extension

Pointer arithmetic (takes element size into account)
elementAt(intindex)Pointer<Uint8>

Available onPointer<Uint8>, provided by theUint8Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Uint16>

Available onPointer<Uint16>, provided by theUint16Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Uint32>

Available onPointer<Uint32>, provided by theUint32Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<Uint64>

Available onPointer<Uint64>, provided by theUint64Pointer extension

Pointer arithmetic (takes element size into account).
elementAt(intindex)Pointer<T>

Available onPointer<T>, provided by theUnionPointer extension

Pointer arithmetic (takes element size into account).
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refWithFinalizer(Pointer<NativeFinalizerFunction>finalizer, {Pointer<Void>?token})→ T

Available onPointer<T>, provided by theStructPointer extension

A Dart view of the struct referenced by this pointer.
refWithFinalizer(Pointer<NativeFinalizerFunction>finalizer, {Pointer<Void>?token})→ T

Available onPointer<T>, provided by theUnionPointer extension

A Dart view of the union referenced by this pointer.
toString()String
A string representation of this object.
inherited

Operators

operator +(intoffset)Pointer<T>

Available onPointer<T>, provided by theUnionPointer extension

A pointer to theoffsetthT after this one.
operator +(intoffset)Pointer<T>

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

A pointer to theoffsetthT after this one.
operator +(intoffset)Pointer<Bool>

Available onPointer<Bool>, provided by theBoolPointer extension

A pointer to theoffsetthBool after this one.
operator +(intoffset)Pointer<Double>

Available onPointer<Double>, provided by theDoublePointer extension

A pointer to theoffsetthDouble after this one.
operator +(intoffset)Pointer<Float>

Available onPointer<Float>, provided by theFloatPointer extension

A pointer to theoffsetthFloat after this one.
operator +(intoffset)Pointer<Int8>

Available onPointer<Int8>, provided by theInt8Pointer extension

A pointer to theoffsetthInt8 after this one.
operator +(intoffset)Pointer<Int16>

Available onPointer<Int16>, provided by theInt16Pointer extension

A pointer to theoffsetthInt16 after this one.
operator +(intoffset)Pointer<Int32>

Available onPointer<Int32>, provided by theInt32Pointer extension

A pointer to theoffsetthInt32 after this one.
operator +(intoffset)Pointer<Int64>

Available onPointer<Int64>, provided by theInt64Pointer extension

A pointer to theoffsetthInt64 after this one.
operator +(intoffset)Pointer<Pointer<T>>

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

A pointer to theoffsetthPointer<T> after this one.
operator +(intoffset)Pointer<T>

Available onPointer<T>, provided by theStructPointer extension

A pointer to theoffsetthT after this one.
operator +(intoffset)Pointer<Uint8>

Available onPointer<Uint8>, provided by theUint8Pointer extension

A pointer to theoffsetthUint8 after this one.
operator +(intoffset)Pointer<Uint16>

Available onPointer<Uint16>, provided by theUint16Pointer extension

A pointer to theoffsetthUint16 after this one.
operator +(intoffset)Pointer<Uint32>

Available onPointer<Uint32>, provided by theUint32Pointer extension

A pointer to theoffsetthUint32 after this one.
operator +(intoffset)Pointer<Uint64>

Available onPointer<Uint64>, provided by theUint64Pointer extension

A pointer to theoffsetthUint64 after this one.
operator -(intoffset)Pointer<T>

Available onPointer<T>, provided by theStructPointer extension

A pointer to theoffsetthT before this one.
operator -(intoffset)Pointer<Uint32>

Available onPointer<Uint32>, provided by theUint32Pointer extension

A pointer to theoffsetthUint32 before this one.
operator -(intoffset)Pointer<Uint8>

Available onPointer<Uint8>, provided by theUint8Pointer extension

A pointer to theoffsetthUint8 before this one.
operator -(intoffset)Pointer<Int16>

Available onPointer<Int16>, provided by theInt16Pointer extension

A pointer to theoffsetthInt16 before this one.
operator -(intoffset)Pointer<Int32>

Available onPointer<Int32>, provided by theInt32Pointer extension

A pointer to theoffsetthInt32 before this one.
operator -(intoffset)Pointer<Float>

Available onPointer<Float>, provided by theFloatPointer extension

A pointer to theoffsetthFloat before this one.
operator -(intoffset)Pointer<Bool>

Available onPointer<Bool>, provided by theBoolPointer extension

A pointer to theoffsetthBool before this one.
operator -(intoffset)Pointer<Int64>

Available onPointer<Int64>, provided by theInt64Pointer extension

A pointer to theoffsetthInt64 before this one.
operator -(intoffset)Pointer<Pointer<T>>

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

A pointer to theoffsetthPointer<T> before this one.
operator -(intoffset)Pointer<Int8>

Available onPointer<Int8>, provided by theInt8Pointer extension

A pointer to theoffsetthInt8 before this one.
operator -(intoffset)Pointer<T>

Available onPointer<T>, provided by theUnionPointer extension

A pointer to theoffsetthT before this one.
operator -(intoffset)Pointer<T>

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

A pointer to theoffsetthT before this one.
operator -(intoffset)Pointer<Uint64>

Available onPointer<Uint64>, provided by theUint64Pointer extension

A pointer to theoffsetthUint64 before this one.
operator -(intoffset)Pointer<Uint16>

Available onPointer<Uint16>, provided by theUint16Pointer extension

A pointer to theoffsetthUint16 before this one.
operator -(intoffset)Pointer<Double>

Available onPointer<Double>, provided by theDoublePointer extension

A pointer to theoffsetthDouble before this one.
operator ==(Objectother)bool
Equality for Pointers only depends on their address.
override
operator [](intindex)double

Available onPointer<Float>, provided by theFloatPointer extension

The float ataddress + sizeOf<Float>() * index.
operator [](intindex)bool

Available onPointer<Bool>, provided by theBoolPointer extension

The bool ataddress + sizeOf<Bool>() * index.
operator [](intindex)int

Available onPointer<Int64>, provided by theInt64Pointer extension

The 64-bit two's complement integer ataddress + sizeOf<Int64>() * index.
operator [](intindex)int

Available onPointer<Int16>, provided by theInt16Pointer extension

The 16-bit two's complement integer ataddress + sizeOf<Int16>() * index.
operator [](intindex)Pointer<T>

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

Load a Dart value from this location offset byindex.
operator [](intindex)int

Available onPointer<Uint32>, provided by theUint32Pointer extension

The 32-bit unsigned integer ataddress + sizeOf<Uint32>() * index.
operator [](intindex)double

Available onPointer<Double>, provided by theDoublePointer extension

The double ataddress + sizeOf<Double>() * index.
operator [](intindex)int

Available onPointer<Int8>, provided by theInt8Pointer extension

The 8-bit two's complement integer ataddress + sizeOf<Int8>() * index.
operator [](intindex)→ T

Available onPointer<T>, provided by theStructPointer extension

Creates a reference to access the fields of this struct backed by nativememory ataddress + sizeOf<T>() * index.
operator [](intindex)→ T

Available onPointer<T>, provided by theUnionPointer extension

Creates a reference to access the fields of this union backed by nativememory ataddress + sizeOf<T>() * index.
operator [](intindex)int

Available onPointer<Int32>, provided by theInt32Pointer extension

The 32-bit two's complement integer ataddress + sizeOf<Int32>() * index.
operator [](intindex)int

Available onPointer<Uint8>, provided by theUint8Pointer extension

The 8-bit unsigned integer ataddress + sizeOf<Uint8>() * index.
operator [](intindex)int

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

The integer ataddress + sizeOf<T>() * index.
operator [](intindex)int

Available onPointer<Uint64>, provided by theUint64Pointer extension

The 64-bit unsigned integer ataddress + sizeOf<Uint64>() * index.
operator [](intindex)int

Available onPointer<Uint16>, provided by theUint16Pointer extension

The 16-bit unsigned integer ataddress + sizeOf<Uint16>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Uint16>, provided by theUint16Pointer extension

The 16-bit unsigned integer ataddress + sizeOf<Uint16>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Uint8>, provided by theUint8Pointer extension

The 8-bit unsigned integer ataddress + sizeOf<Uint8>() * index.
operator []=(intindex,Tvalue)→ void

Available onPointer<T>, provided by theStructPointer extension

Copies thevalue struct into native memory, starting ataddress * sizeOf<T>() * index.
operator []=(intindex,Pointer<T>value)→ void

Available onPointer<Pointer<T>>, provided by thePointerPointer extension

Store a Dart value into this location offset byindex.
operator []=(intindex,intvalue)→ void

Available onPointer<Uint32>, provided by theUint32Pointer extension

The 32-bit unsigned integer ataddress + sizeOf<Uint32>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<T>, provided by theAbiSpecificIntegerPointer extension

The integer ataddress + sizeOf<T>() * index.
operator []=(intindex,doublevalue)→ void

Available onPointer<Double>, provided by theDoublePointer extension

The double ataddress + sizeOf<Double>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Int32>, provided by theInt32Pointer extension

The 32-bit two's complement integer ataddress + sizeOf<Int32>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Uint64>, provided by theUint64Pointer extension

The 64-bit unsigned integer ataddress + sizeOf<Uint64>() * index.
operator []=(intindex,doublevalue)→ void

Available onPointer<Float>, provided by theFloatPointer extension

The float ataddress + sizeOf<Float>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Int16>, provided by theInt16Pointer extension

The 16-bit two's complement integer ataddress + sizeOf<Int16>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Int8>, provided by theInt8Pointer extension

The 8-bit two's complement integer ataddress + sizeOf<Int8>() * index.
operator []=(intindex,Tvalue)→ void

Available onPointer<T>, provided by theUnionPointer extension

Copies thevalue union into native memory, starting ataddress * sizeOf<T>() * index.
operator []=(intindex,boolvalue)→ void

Available onPointer<Bool>, provided by theBoolPointer extension

The bool ataddress + sizeOf<Bool>() * index.
operator []=(intindex,intvalue)→ void

Available onPointer<Int64>, provided by theInt64Pointer extension

The 64-bit two's complement integer ataddress + 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
  1. Dart
  2. dart:ffi
  3. Pointer<T extendsNativeType> class
dart:ffi library

[8]ページ先頭

©2009-2025 Movatter.jp