Array class - dart:ffi library (original) (raw)

Array<T extends NativeType> class final

A fixed-sized array of Ts.

Implemented types

Available extensions

Annotations

Constructors

Array.new(int dimension1, [int dimension2, int dimension3, int dimension4, int dimension5])

Annotation to specify Array dimensions in Structs.

const

factory

Array.multi(List<int> dimensions)

Annotation to specify Array dimensions in Structs.

const

factory

Array.variable([int dimension2, int dimension3, int dimension4, int dimension5])

Annotation to specify a variable length Array in Structs.

const

factory

Array.variableMulti(List<int> dimensions, {@Since('3.7') int variableDimension})

Annotation to a variable length Array in Structs.

const

factory

Array.variableWithVariableDimension([int dimension1, int dimension2, int dimension3, int dimension4, int dimension5])

Annotation to specify a variable length Array with a configurable variable dimension (dimension1) in Structs.

const

factory

Properties

addressPointer<T>

Available on Array<T>, provided by the ArrayAddress extension

The memory address of the underlying data.

no setter

elementsList<int>

Available on Array<T>, provided by the AbiSpecificIntegerArray extension

A list view of the bytes of this array.

no setter

elementsList<Array<T>>

Available on Array<Array<T>>, provided by the ArrayArray extension

A list view of the bytes of this array.

no setter

elementsList<bool>

Available on Array<Bool>, provided by the BoolArray extension

A list view of the bytes of this array.

no setter

elementsFloat64List

Available on Array<Double>, provided by the DoubleArray extension

A list view of the bytes of this array.

no setter

elementsFloat32List

Available on Array<Float>, provided by the FloatArray extension

A list view of the bytes of this array.

no setter

elementsInt8List

Available on Array<Int8>, provided by the Int8Array extension

A list view of the bytes of this array.

no setter

elementsInt16List

Available on Array<Int16>, provided by the Int16Array extension

A list view of the bytes of this array.

no setter

elementsInt32List

Available on Array<Int32>, provided by the Int32Array extension

A list view of the bytes of this array.

no setter

elementsInt64List

Available on Array<Int64>, provided by the Int64Array extension

A list view of the bytes of this array.

no setter

elementsList<Pointer<T>>

Available on Array<Pointer<T>>, provided by the PointerArray extension

A list view of the bytes of this array.

no setter

elementsList<T>

Available on Array<T>, provided by the StructArray extension

A list view of the bytes of this array.

no setter

elementsUint8List

Available on Array<Uint8>, provided by the Uint8Array extension

A list view of the bytes of this array.

no setter

elementsUint16List

Available on Array<Uint16>, provided by the Uint16Array extension

A list view of the bytes of this array.

no setter

elementsUint32List

Available on Array<Uint32>, provided by the Uint32Array extension

A list view of the bytes of this array.

no setter

elementsUint64List

Available on Array<Uint64>, provided by the Uint64Array extension

A list view of the bytes of this array.

no setter

elementsList<T>

Available on Array<T>, provided by the UnionArray extension

A list view of the bytes of this array.

no setter

hashCodeint

The hash code for this object.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

operator [](int index)→ int

Available on Array<T>, provided by the AbiSpecificIntegerArray extension

Loads a Dart value from this array at index.

operator [](int index)→ Array<T>

Available on Array<Array<T>>, provided by the ArrayArray extension

operator [](int index)→ bool

Available on Array<Bool>, provided by the BoolArray extension

Loads a Dart value from this array at index.

operator [](int index)→ double

Available on Array<Double>, provided by the DoubleArray extension

Loads a Dart value from this array at index.

operator [](int index)→ double

Available on Array<Float>, provided by the FloatArray extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Int8>, provided by the Int8Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Int16>, provided by the Int16Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Int32>, provided by the Int32Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Int64>, provided by the Int64Array extension

Loads a Dart value from this array at index.

operator [](int index)→ Pointer<T>

Available on Array<Pointer<T>>, provided by the PointerArray extension

Loads a Dart value from this array at index.

operator [](int index)→ T

Available on Array<T>, provided by the StructArray extension

This extension method must be invoked on a receiver of type Pointer<T>where T is a compile-time constant type.

operator [](int index)→ int

Available on Array<Uint8>, provided by the Uint8Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Uint16>, provided by the Uint16Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Uint32>, provided by the Uint32Array extension

Loads a Dart value from this array at index.

operator [](int index)→ int

Available on Array<Uint64>, provided by the Uint64Array extension

Loads a Dart value from this array at index.

operator [](int index)→ T

Available on Array<T>, provided by the UnionArray extension

This extension method must be invoked on a receiver of type Pointer<T>where T is a compile-time constant type.

operator []=(int index, int value)→ void

Available on Array<T>, provided by the AbiSpecificIntegerArray extension

Stores a Dart value in this array at index.

operator []=(int index, Array<T> value)→ void

Available on Array<Array<T>>, provided by the ArrayArray extension

operator []=(int index, bool value)→ void

Available on Array<Bool>, provided by the BoolArray extension

Stores a Dart value in this array at index.

operator []=(int index, double value)→ void

Available on Array<Double>, provided by the DoubleArray extension

Stores a Dart value in this array at index.

operator []=(int index, double value)→ void

Available on Array<Float>, provided by the FloatArray extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Int8>, provided by the Int8Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Int16>, provided by the Int16Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Int32>, provided by the Int32Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Int64>, provided by the Int64Array extension

Stores a Dart value in this array at index.

operator []=(int index, Pointer<T> value)→ void

Available on Array<Pointer<T>>, provided by the PointerArray extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Uint8>, provided by the Uint8Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Uint16>, provided by the Uint16Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Uint32>, provided by the Uint32Array extension

Stores a Dart value in this array at index.

operator []=(int index, int value)→ void

Available on Array<Uint64>, provided by the Uint64Array extension

Stores a Dart value in this array at index.