cake_wallet/cw_haven/lib/api/convert_utf8_to_string.dart
2022-02-21 21:11:18 +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;
}