mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
8 lines
175 B
Dart
8 lines
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;
|
||
|
}
|