cake_wallet/cw_haven/lib/api/convert_utf8_to_string.dart
2022-10-12 13:09:57 -04:00

8 lines
No EOL
191 B
Dart

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