allocatePointer method

Pointer<Uint8> allocatePointer()

Allocates a pointer filled with the Uint8List data.

Implementation

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