mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +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;
|
||
|
}
|