toPointer method

Pointer<Uint8> toPointer({
  1. int? size,
})

Implementation

Pointer<Uint8> toPointer({int? size}) {
  final p = calloc<Uint8>(size ?? length);
  p.asTypedList(size ?? length).setAll(0, this);
  return p;
}