getPointer method

Pointer<Uint8> getPointer()

Implementation

Pointer<Uint8> getPointer() {
  final ptr = malloc.allocate<Uint8>(length);
  final typedList = ptr.asTypedList(length);
  typedList.setAll(0, this);
  return ptr.cast();
}