Array class - dart:ffi library (original) (raw)
Array<T extends NativeType> class final
A fixed-sized array of T
s.
Implemented types
Available extensions
- AbiSpecificIntegerArray
- ArrayAddress
- ArrayArray
- BoolArray
- DoubleArray
- FloatArray
- Int8Array
- Int16Array
- Int32Array
- Int64Array
- PointerArray
- StructArray
- Uint8Array
- Uint16Array
- Uint32Array
- Uint64Array
- UnionArray
Annotations
- @Since('2.13')
Constructors
Array(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
Available on Array<T>, provided by the ArrayAddress extension
The memory address of the underlying data.
no setter
The hash code for this object.
no setterinherited
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
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
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
operator [](int index)→ double
Available on Array<Double>, provided by the DoubleArray extension
operator [](int index)→ double
Available on Array<Float>, provided by the FloatArray extension
operator [](int index)→ int
Available on Array<Int8>, provided by the Int8Array extension
operator [](int index)→ int
Available on Array<Int16>, provided by the Int16Array extension
operator [](int index)→ int
Available on Array<Int32>, provided by the Int32Array extension
operator [](int index)→ int
Available on Array<Int64>, provided by the Int64Array extension
operator [](int index)→ Pointer<T>
Available on Array<Pointer<T>>, provided by the PointerArray extension
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
operator [](int index)→ int
Available on Array<Uint16>, provided by the Uint16Array extension
operator [](int index)→ int
Available on Array<Uint32>, provided by the Uint32Array extension
operator [](int index)→ int
Available on Array<Uint64>, provided by the Uint64Array extension
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
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
operator []=(int index, double value)→ void
Available on Array<Double>, provided by the DoubleArray extension
operator []=(int index, double value)→ void
Available on Array<Float>, provided by the FloatArray extension
operator []=(int index, int value)→ void
Available on Array<Int8>, provided by the Int8Array extension
operator []=(int index, int value)→ void
Available on Array<Int16>, provided by the Int16Array extension
operator []=(int index, int value)→ void
Available on Array<Int32>, provided by the Int32Array extension
operator []=(int index, int value)→ void
Available on Array<Int64>, provided by the Int64Array extension
operator []=(int index, Pointer<T> value)→ void
Available on Array<Pointer<T>>, provided by the PointerArray extension
operator []=(int index, int value)→ void
Available on Array<Uint8>, provided by the Uint8Array extension
operator []=(int index, int value)→ void
Available on Array<Uint16>, provided by the Uint16Array extension
operator []=(int index, int value)→ void
Available on Array<Uint32>, provided by the Uint32Array extension
operator []=(int index, int value)→ void
Available on Array<Uint64>, provided by the Uint64Array extension