flutter_cpp_bridge 1.0.3
flutter_cpp_bridge: ^1.0.3 copied to clipboard
A Flutter package that simplifies calling C++ code from Dart via FFI. Provides Service, ServicePool, and StandaloneService abstractions around dart:ffi for event-driven, zero-CPU-idle C++ shared-libra [...]
1.0.3 #
- Fix README image URLs to use absolute
raw.githubusercontent.compaths so diagrams render correctly on pub.dev.
1.0.2 #
- Add byte-buffer service support via
FCB_EXPORT_BYTES_SYMBOLSandfcb::BytesQueue, enabling zero-copy FlatBuffers / protobuf message delivery to Dart. - Add ZMQ transport variant: C++ worker subscribes to a ZMQ PUB socket, dispatches messages with a switch-case, and forwards only the relevant payloads to the Dart queue.
- Add architecture and API diagrams to the documentation.
- Fix stale description in
pubspec.yaml(removed reference to polling).
1.0.1 #
- Update README installation instructions now that the package is on pub.dev.
- Remove unused
ffigendev dependency.
1.0.0 #
- First stable release — event-driven delivery is now the default and only delivery mechanism. No breaking changes relative to 0.1.0.
- Published on pub.dev.
0.1.0 #
- Replace the
Timer.periodicpolling loop with an event-driven delivery mechanism usingdart:ffiNativeCallable.listener. Zero CPU consumption at idle. - Each service now requires a fifth mandatory C symbol,
set_message_callback(void (*cb)()). The C++ worker callscbimmediately after pushing a message; Dart processes it on the event loop. ServicePoolno longer owns a periodic timer. The poll interval parameter has been removed.Service.dispose()closes theNativeCallableand stops the service.
0.0.0 #
- Initial release.
Service: base class to wrap a C++ shared library viadart:ffi. Binds four mandatory C functions (start_service,stop_service,get_next_message,free_message) and exposes a broadcast message stream.ServicePool: manages multiple services and polls them at a configurable interval (default 100 ms).StandaloneService: aServicesubclass that starts immediately on construction and exposes adispose()method.