dumpAsync method

Future<String> dumpAsync()

Implementation

Future<String> dumpAsync() async {
  final rval = cvRunAsync<String>(
    (callback) => cffi.Net_Dump_Async(ref, callback),
    (c, p) {
      final rval = p.cast<ffi.Pointer<ffi.Char>>().value.toDartString();
      calloc.free(p);
      return c.complete(rval);
    },
  );
  return rval;
}