InlineFloat32Array class final
A destination for an fp32 array field.
storage holds the raw 32-bit patterns, so a signaling or payload NaN
survives bit-for-bit (ยง4.6) โ as long as it is read back through a typed
list, not widened element by element into a Dart double.
Constructors
- InlineFloat32Array(int capacity)
-
Storage for
capacityelements, empty. -
InlineFloat32Array.of(List<
double> values) -
A copy of
values, length set to match.
Properties
- byteView → Uint8List
-
storage as bytes โ the view the codec copies the wire payload into,
built once per storage rather than once per array (a typed-data view
costs ~200 instructions under AOT).
no setter
- capacity → int
-
How many elements storage holds.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- length ↔ int
-
The number of elements in use.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage ↔ Float32List
-
The elements; the first length are in use.
getter/setter pair
Methods
-
assign(
List< double> values) → void -
Replaces the contents with
values, growing storage if it must. -
ensureCapacity(
int n) → void -
Grows storage to hold at least
nelements, keeping the first length bit-exact. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
) → List< double> - The elements in use, widened into a new growable list (a NaN's payload is not preserved by the widening โ read storage for that).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int i) → double -
operator []=(
int i, double value) → void