cake_wallet/cw_monero/lib/convert_utf8_to_string.dart
2020-01-04 21:31:52 +02:00

8 lines
No EOL
175 B
Dart

import 'dart:ffi';
import 'package:ffi/ffi.dart';
String convertUTF8ToString({Pointer<Utf8> pointer}) {
final str = Utf8.fromUtf8(pointer);
free(pointer);
return str;
}