toUint8 method

Pointer<Uint8> toUint8()

Implementation

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