mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
8 lines
191 B
Dart
8 lines
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;
|
|
} |