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