VecU16.fromList constructor

VecU16.fromList(
  1. List<int> pts
)

Implementation

factory VecU16.fromList(List<int> pts) {
  final length = pts.length;
  final p = ccore.std_VecU16_new(length);
  final pdata = ccore.std_VecU16_data(p);
  pdata.asTypedList(length).setAll(0, pts);
  return VecU16.fromPointer(p);
}