VecUChar.generate constructor
Implementation
factory VecUChar.generate(int length, int Function(int i) generator) {
final pp = calloc<cvg.VecUChar>()..ref.length = length;
pp.ref.ptr = calloc<ffi.UnsignedChar>(length);
for (var i = 0; i < length; i++) {
pp.ref.ptr[i] = generator(i);
}
return VecUChar.fromPointer(pp);
}