toUint8 method

Pointer<Uint8> toUint8()

Implementation

Pointer<Uint8> toUint8() {
  final ptr = calloc<Uint8>(length);
  for (int i = 0; i < length; i++) {
    ptr[i] = this[i];
  }
  return ptr;
}