cake_wallet/cw_haven/lib/api/convert_utf8_to_string.dart
mkyq 01150ef2a7
Hv (#295)
* hv
* Change build version
2022-03-30 17:57:04 +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;
}