readArray<T> method

Future<void> readArray<T>(
  1. Array<T> a,
  2. int n
)

Implementation

Future<void> readArray<T>(Array<T> a, int n) async {
  final data = await readData<T>(n);
  a.toData().setAll(0, data);
}