allocatePointer method

Pointer<Uint8> allocatePointer()

Allocates a pointer filled with the Uint8List data.

Implementation

Pointer<Uint8> allocatePointer() {
  final blob = calloc<Uint8>(length);
  blob.asTypedList(length).setAll(0, this);
  return blob;
}