UntypedViewArray extension
Static methods for constructing an Array with an untyped view (see dart:typed_data
).
Shouldn't be used for application code, but for type safe wrappers,
for example in the form of static extension methods.
- on
-
- Array<
NativeType>
- Array<
Static Methods
-
allocate<
T extends NativeType> (int length, List< int> getView(Pointer<T> ,int ) ) → Array< NativeType> -
Allocates Array of
length
.get_View
returns the typed list ofPointer<T>
-
fromList<
T extends NativeType> (List< int> list,List< int> getView(Pointer<T> ,int ) ) → Array< NativeType> -
fromPtr(
Pointer< NativeType> ptr,List< int> view) → Array< NativeType>