cake_wallet/cw_zano/lib/api/convert_utf8_to_string.dart

8 lines
191 B
Dart
Raw Normal View History

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