MCPcopy Create free account
hub / github.com/FastLED/FastLED / bind

Method bind

src/fl/remote/rpc/rpc.h:234–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 /// Use get() to retrieve a callable if you need to invoke the method from C++ code.
233 template<typename Callable>
234 void bind(const Config<Callable>& config) {
235 using Sig = typename callable_traits<typename decay<Callable>::type>::signature;
236 RpcFn<Sig> wrapped(config.fn);
237 registerMethod<Sig>(config.name.c_str(), wrapped, config.params, config.description, config.tags, config.mode);
238 }
239
240 /// Convenience overload: bind method by name, function, and optional mode
241 template<typename Callable>

Callers 15

run_fastled_web_compilerFunction · 0.45
createWorkerMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
_find_free_portFunction · 0.45
_find_free_portFunction · 0.45
_find_free_portFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45

Calls 2

bindFunction · 0.50
c_strMethod · 0.45

Tested by 3

_find_free_portFunction · 0.36
_find_free_portFunction · 0.36
_find_free_portFunction · 0.36