cake_wallet/cw_nano/lib/api/convert_utf8_to_string.dart
2023-07-24 16:23:09 -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;
}