Provide Float32List, Float64List and Float32x4List constructors with List<num> or List<double> input. #9736
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @ahmetaa
Float32List, Float64List and Float32x4List constructors with List<num> or List<double> input. It seems fairly common to initialize those objects with List<> input. Currently I need to use methods like
Float32x4List toFloat32x4List(List<double> list)
or
Float32List toFloat32List(List<double> input)
Reverse methods are also needed. Such as
List<double> toDoubleList(Float32x4List lst)
If there is a more generic solution to this, (some kind of List->ByteBuffer transformation) of course that would be more preferable.
The text was updated successfully, but these errors were encountered: