dartiHello function

String dartiHello()

Prints a hello message to verify FFI linkage.

Implementation

String dartiHello() {
  final Pointer<Char> hello = _bindings.darti_hello();
  final there = hello.cast<Utf8>().toDartString();
  calloc.free(hello);
  _bindings.darti_free_string(hello);
  return there;
}