cake_wallet/cw_monero/lib/api/convert_utf8_to_string.dart

8 lines
191 B
Dart
Raw Permalink Normal View History

import 'dart:ffi';
import 'package:ffi/ffi.dart';
2022-10-12 17:09:57 +00:00
String convertUTF8ToString({required Pointer<Utf8> pointer}) {
final str = pointer.toDartString();
calloc.free(pointer);
return str;
}