mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-29 15:09:23 +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;
|
||
|
}
|