dart-ffi Questions
11
Executing dart run ffigen got the following error:
Unhandled exception:
Invalid argument(s): Failed to load dynamic library '/Users/bruce/homebrew/opt/llvm/lib/libclang.dylib': dlopen(/Users/bruce/...
9
Solved
Read carefully before reporting.
My flutter web project was working perfectly fine. A few hours later, it started complaining about 'dart:ffi: which i didn't even import. I saw similar questions bu...
1
Flutter can binding to native code using dart:ffi. In other words, Dart can call C ++ methods, but can C ++ call Dart methods?
as follows:
2
Solved
I am developing a package in C++ to be used in a Flutter app (and therefore in Dart), using dart::ffi and I was wondering if there was a better way to debug (step by step, variable watch, that sort...
1
Solved
I am making a flutter application where I have my backend as C++. Through dart ffi I am signalling a load call when user enters a certain screen. My problem is Im loading audio in C++ but I want to...
1
Solved
I'm trying to make my code a little more robust when allocating memory for ffi.
I've written the following function:
void withMemory<T extends NativeType>(
int size, void Function(Pointer<...
1
Before I start my question I want to point out that it's not similar this question.
Difference between writing platform specific code vs dart:ffi code. Here the questioner is asking the actual diff...
Marcmarcano asked 4/6, 2020 at 17:18
2
I am working on exposing an audio library (C library) for Dart. To trigger the audio engine, it requires a few initializations steps (non blocking for UI), then audio processing is triggered with a...
Purusha asked 19/4, 2020 at 18:24
1
Solved
I have a flutter app which uses Dart ffi to connect to my custom C++ audio backend. There I allocate around 10MB of total memory for my audio buffers. Each buffer has 10MB / 84 of memory. I use 84 ...
2
Solved
My app's backend is written in C++ and the frontend in Dart/flutter.
I'd love to have the backend notify frontend whenever data is ready.
This requires implementing an async callback scheme between...
1
Solved
What is difference between writing code using dart:ffi in flutter or writing code with the method chanel in flutter.
1
Solved
Trying to print to console when running my Flutter app (on Android) from the following C++ code I am running through dart:ffi:
#include <iostream>
std::cout << "Hello, World!";
Does...
1
Solved
Hello I am using dart:ffi to build an interface with my native c/c++ library.
and I needed a way to get a callback from c to dart as an example in sqlite:
int sqlite3_exec(
sqlite3*, /* An open d...
1
Solved
I am learning Dart now and I playing with Dart's Interoperability with C. I am able to use a C method with two int params. Code below:
hello.dart
import 'dart:ffi' as ffi;
typedef sum_func = ffi...
0
The documentation is very unclear about how to use a static library that is provided through an archive file (library.a)
First-party library A first-party native library can be included
either ...
1
Solved
I've the Dart type as:
typedef dart_func = String Function(String x);
And want to map it with Dart FFi, but their could not find neither String, nor Utf8, I tried
typedef ffi_func = ffi.Pointer...
1
© 2022 - 2024 — McMap. All rights reserved.